Skip to content

Commit

Permalink
JDBC FDW 0.1.0 release
Browse files Browse the repository at this point in the history
JDBC FDW 0.1.0 newly released.  

We have just newly released Foreign Data Wrapper for databases with JDBC interface.  

This release can work with PostgreSQL 13 and 14.
  • Loading branch information
weiting1lee authored Dec 23, 2021
2 parents ef20f0e + 6fd3574 commit d20b583
Show file tree
Hide file tree
Showing 230 changed files with 183,656 additions and 1 deletion.
54 changes: 54 additions & 0 deletions JDBCDriverLoader.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/*-------------------------------------------------------------------------
*
* foreign-data wrapper for JDBC
*
* Copyright (c) 2012, PostgreSQL Global Development Group
*
* This software is released under the PostgreSQL Licence
*
* Author: Atri Sharma <[email protected]>
*
* IDENTIFICATION
* jdbc_fdw/JDBCDriverLoader.java
*
*-------------------------------------------------------------------------
*/

import java.io.*;
import java.net.URL;
import java.net.URLClassLoader;
import java.net.MalformedURLException;

public class JDBCDriverLoader extends URLClassLoader
{

/*
* JDBCDriverLoader
* Constructor of JDBCDriverLoader class.
*/
public
JDBCDriverLoader(URL[] path)
{
super(path);
}

/*
* addPath
* Adds a path to the path of the loader.
*/
public void
addPath(String path) throws MalformedURLException
{
addURL(new URL (path));
}

/*
* CheckIfClassIsLoaded
* Checks if a class of given classname has been loaded by the loader or not.
*/
public Class
CheckIfClassIsLoaded(String ClassName)
{
return findLoadedClass(ClassName);
}
}
Loading

0 comments on commit d20b583

Please sign in to comment.