Package xal.plugin.postgres
Class PostgresDatabaseAdaptor
java.lang.Object
xal.tools.database.DatabaseAdaptor
xal.plugin.postgres.PostgresDatabaseAdaptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArray(String type, Connection connection, Object array) Get an SQL Array given an SQL array type, connection and a primitive arraygetConnection(String urlSpec, String user, String password) Get a new database connectiongetConnection(ConnectionDictionary dictionary) Get a new database connectionMethods inherited from class xal.tools.database.DatabaseAdaptor
fetchAllSchemas, fetchNontrivialSchemas, fetchPrimaryKeys, fetchTables, getColumnsResultSet, getInstance, getPrimaryKeysResultSet, getTablesResultSet, newBlob
-
Constructor Details
-
PostgresDatabaseAdaptor
public PostgresDatabaseAdaptor()
-
-
Method Details
-
getArray
Get an SQL Array given an SQL array type, connection and a primitive array- Specified by:
getArrayin classDatabaseAdaptor- Parameters:
type- An SQL array type identifying the type of arrayconnection- An SQL connectionarray- The primitive Java array- Returns:
- the SQL array which wraps the primitive array
- Throws:
DatabaseException- if a database exception is thrown
-
getConnection
public Connection getConnection(String urlSpec, String user, String password) throws DatabaseException Description copied from class:DatabaseAdaptorGet a new database connection- Overrides:
getConnectionin classDatabaseAdaptor- Parameters:
urlSpec- The URL to which to connectuser- The user login into the databasepassword- the user's password- Throws:
DatabaseException- if a database exception is thrown
-
getConnection
Description copied from class:DatabaseAdaptorGet a new database connection- Overrides:
getConnectionin classDatabaseAdaptor- Parameters:
dictionary- A connection dictionary- Throws:
DatabaseException- if a database exception is thrown
-