|
jxDBCon 0.9z | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sourceforge.jxdbcon.AbstractDatabaseMetaData | +--org.sourceforge.jxdbcon.postgresql.PGDatabaseMetaData
PGDatabaseMetaData returns the MetaData specific to PostgreSQL.
Field Summary | |
private static String[][] |
dataTableTypes
The supported table types. |
static int |
MAX_NAME
|
static String |
nonSQL92Keywords
|
static String[] |
nonSQL92KeywordsArray
In the last line are not real PostgreSQL keywords, but JDBC CTS is assuming that names of types are reserved keywords and in PostgreSQL they aren't. |
private static ArrayList |
prefTypes
|
protected boolean |
strictSchema
|
(package private) static String |
tablesInfix
|
(package private) static String[] |
tablesPostfix
|
(package private) static String |
tablesPrefix
|
(package private) static String[] |
tableTypes
|
(package private) Object[] |
version
|
Fields inherited from interface org.sourceforge.jxdbcon.postgresql.PGConstants |
AUTH_REQ_CRYPT, AUTH_REQ_KRB4, AUTH_REQ_KRB5, AUTH_REQ_MD5, AUTH_REQ_OK, AUTH_REQ_PASSWORD, AUTH_REQ_SCM, NUMERIC_DSCALE_MASK, NUMERIC_NAN, NUMERIC_NEG, NUMERIC_POS, NUMERIC_SIGN_MASK, PG_VERSION_STR, PG_VERSION_STR1, TRIGGER_TYPE_BEFORE, TRIGGER_TYPE_DELETE, TRIGGER_TYPE_INSERT, TRIGGER_TYPE_ROW, TRIGGER_TYPE_UPDATE |
Constructor Summary | |
protected |
PGDatabaseMetaData(String url,
AbstractConnection connection,
Object[] version)
|
Method Summary | |
boolean |
allProceduresAreCallable()
No acls on procedures. |
ResultSet |
getBestRowIdentifier(String catalog,
String schema,
String table,
int scope,
boolean nullable)
Return oid as the best column to identify rows. |
abstract ResultSet |
getCatalogs()
|
String |
getCatalogTerm()
Catalogs are both called 'database' and 'catalog' internally. |
ResultSet |
getColumns(String catalog,
String schemaPattern,
String tableNamePattern,
String columnNamePattern)
|
(package private) PGConnection |
getConn(String catalog)
Return a connection to the given catalog. |
int |
getDatabaseMajorVersion()
|
int |
getDatabaseMinorVersion()
|
String |
getDatabaseProductName()
|
String |
getDatabaseProductVersion()
|
int |
getDefaultTransactionIsolation()
Default and currently only is READ_COMMITTED. |
ResultSet |
getIndexInfo(String catalog,
String schemaPattern,
String table,
boolean unique,
boolean approximate)
|
int |
getMaxCatalogNameLength()
A catalog is a system identifier, return 31. |
int |
getMaxProcedureNameLength()
Return MAX_NAME. |
String |
getNumericFunctions()
|
ResultSet |
getPrimaryKeys(String catalog,
String schemaPattern,
String table)
Get the primary keys of _a_ table. |
ResultSet |
getProcedureColumns(String catalog,
String schemaPattern,
String procedureNamePattern,
String columnNamePattern)
|
ResultSet |
getProcedures(String catalog,
String schemaPattern,
String procedureNamePattern)
|
String |
getProcedureTerm()
Under PostgreSQL everything is a function. |
String |
getSchemaTerm()
PostgreSQL does not support schemas. |
String |
getSQLKeywords()
|
String |
getStringFunctions()
|
ResultSet |
getTablePrivileges(String catalog,
String schemaPattern,
String tableNamePattern)
|
ResultSet |
getTables(String catalog,
String schemaPattern,
String tableNamePattern,
String[] types)
Return the tables matching the passed criteria. |
ResultSet |
getTableTypes()
Return SEQUENCE, SYSTEM SEQUENCS, SYSTEM TABLE, TABLE and VIEW. |
String |
getTimeDateFunctions()
|
ResultSet |
getTypeInfo()
|
boolean |
storesLowerCaseIdentifiers()
|
boolean |
storesUpperCaseIdentifiers()
|
boolean |
supportsAlterTableWithAddColumn()
PostgreSQL supports ALTER TABLE table ADD COLUMN. |
boolean |
supportsBatchUpdates()
The driver supports batch updates. |
boolean |
supportsColumnAliasing()
|
boolean |
supportsDataDefinitionAndDataManipulationTransactions()
|
boolean |
supportsDataManipulationTransactionsOnly()
|
boolean |
supportsGroupBy()
|
boolean |
supportsLikeEscapeClause()
... |
boolean |
supportsMultipleResultSets()
MultipleResultSets. |
boolean |
supportsMultipleTransactions()
Multiple transactions on different connections are supported. |
boolean |
supportsOpenCursorsAcrossCommit()
|
boolean |
supportsOpenCursorsAcrossRollback()
|
boolean |
supportsOpenStatementsAcrossCommit()
|
boolean |
supportsOpenStatementsAcrossRollback()
|
boolean |
supportsResultSetType(int type)
Support scrollable ResultSets. |
boolean |
supportsStoredProcedures()
There are procedures/functions in PostgreSQL. |
boolean |
supportsTransactionIsolationLevel(int level)
Currently only READ_COMMITTED is supported. |
boolean |
supportsTransactions()
Transactions are supported. |
boolean |
supportsUnion()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String[][] dataTableTypes
public static final int MAX_NAME
public static final String nonSQL92Keywords
public static final String[] nonSQL92KeywordsArray
private static final ArrayList prefTypes
protected boolean strictSchema
static final String tablesInfix
static final String[] tablesPostfix
static final String tablesPrefix
static final String[] tableTypes
final Object[] version
Constructor Detail |
protected PGDatabaseMetaData(String url, AbstractConnection connection, Object[] version)
Method Detail |
public boolean allProceduresAreCallable() throws SQLException
allProceduresAreCallable
in interface DatabaseMetaData
allProceduresAreCallable
in class AbstractDatabaseMetaData
SQLException
public ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException
getBestRowIdentifier
in interface DatabaseMetaData
getBestRowIdentifier
in class AbstractDatabaseMetaData
SQLException
public abstract ResultSet getCatalogs() throws SQLException
getCatalogs
in interface DatabaseMetaData
getCatalogs
in class AbstractDatabaseMetaData
SQLException
public String getCatalogTerm()
getCatalogTerm
in interface DatabaseMetaData
getCatalogTerm
in class AbstractDatabaseMetaData
public ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException
getColumns
in interface DatabaseMetaData
getColumns
in class AbstractDatabaseMetaData
SQLException
PGConnection getConn(String catalog) throws SQLException
SQLException
public final int getDatabaseMajorVersion()
getDatabaseMajorVersion
in interface DatabaseMetaData
public final int getDatabaseMinorVersion()
getDatabaseMinorVersion
in interface DatabaseMetaData
public final String getDatabaseProductName()
getDatabaseProductName
in interface DatabaseMetaData
public final String getDatabaseProductVersion()
getDatabaseProductVersion
in interface DatabaseMetaData
public int getDefaultTransactionIsolation() throws SQLException
getDefaultTransactionIsolation
in interface DatabaseMetaData
getDefaultTransactionIsolation
in class AbstractDatabaseMetaData
SQLException
public ResultSet getIndexInfo(String catalog, String schemaPattern, String table, boolean unique, boolean approximate) throws SQLException
getIndexInfo
in interface DatabaseMetaData
getIndexInfo
in class AbstractDatabaseMetaData
SQLException
public int getMaxCatalogNameLength()
getMaxCatalogNameLength
in interface DatabaseMetaData
getMaxCatalogNameLength
in class AbstractDatabaseMetaData
public int getMaxProcedureNameLength() throws SQLException
getMaxProcedureNameLength
in interface DatabaseMetaData
getMaxProcedureNameLength
in class AbstractDatabaseMetaData
SQLException
public String getNumericFunctions()
getNumericFunctions
in interface DatabaseMetaData
getNumericFunctions
in class AbstractDatabaseMetaData
public ResultSet getPrimaryKeys(String catalog, String schemaPattern, String table) throws SQLException
AbstractDatabaseMetaData
getPrimaryKeys
in interface DatabaseMetaData
getPrimaryKeys
in class AbstractDatabaseMetaData
SQLException
public ResultSet getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) throws SQLException
getProcedureColumns
in interface DatabaseMetaData
getProcedureColumns
in class AbstractDatabaseMetaData
SQLException
public ResultSet getProcedures(String catalog, String schemaPattern, String procedureNamePattern) throws SQLException
getProcedures
in interface DatabaseMetaData
getProcedures
in class AbstractDatabaseMetaData
SQLException
public String getProcedureTerm() throws SQLException
getProcedureTerm
in interface DatabaseMetaData
getProcedureTerm
in class AbstractDatabaseMetaData
SQLException
public String getSchemaTerm()
getSchemaTerm
in interface DatabaseMetaData
getSchemaTerm
in class AbstractDatabaseMetaData
public String getSQLKeywords()
getSQLKeywords
in interface DatabaseMetaData
getSQLKeywords
in class AbstractDatabaseMetaData
public String getStringFunctions()
getStringFunctions
in interface DatabaseMetaData
getStringFunctions
in class AbstractDatabaseMetaData
public ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) throws SQLException
getTablePrivileges
in interface DatabaseMetaData
getTablePrivileges
in class AbstractDatabaseMetaData
SQLException
public ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types) throws SQLException
getTables
in interface DatabaseMetaData
getTables
in class AbstractDatabaseMetaData
SQLException
public ResultSet getTableTypes() throws SQLException
getTableTypes
in interface DatabaseMetaData
getTableTypes
in class AbstractDatabaseMetaData
SQLException
public String getTimeDateFunctions()
getTimeDateFunctions
in interface DatabaseMetaData
getTimeDateFunctions
in class AbstractDatabaseMetaData
public ResultSet getTypeInfo() throws SQLException
getTypeInfo
in interface DatabaseMetaData
getTypeInfo
in class AbstractDatabaseMetaData
SQLException
public boolean storesLowerCaseIdentifiers()
storesLowerCaseIdentifiers
in interface DatabaseMetaData
storesLowerCaseIdentifiers
in class AbstractDatabaseMetaData
public boolean storesUpperCaseIdentifiers()
storesUpperCaseIdentifiers
in interface DatabaseMetaData
storesUpperCaseIdentifiers
in class AbstractDatabaseMetaData
public boolean supportsAlterTableWithAddColumn()
supportsAlterTableWithAddColumn
in interface DatabaseMetaData
supportsAlterTableWithAddColumn
in class AbstractDatabaseMetaData
public boolean supportsBatchUpdates() throws SQLException
supportsBatchUpdates
in interface DatabaseMetaData
supportsBatchUpdates
in class AbstractDatabaseMetaData
SQLException
public boolean supportsColumnAliasing()
supportsColumnAliasing
in interface DatabaseMetaData
supportsColumnAliasing
in class AbstractDatabaseMetaData
public boolean supportsDataDefinitionAndDataManipulationTransactions()
supportsDataDefinitionAndDataManipulationTransactions
in interface DatabaseMetaData
supportsDataDefinitionAndDataManipulationTransactions
in class AbstractDatabaseMetaData
public boolean supportsDataManipulationTransactionsOnly()
supportsDataManipulationTransactionsOnly
in interface DatabaseMetaData
supportsDataManipulationTransactionsOnly
in class AbstractDatabaseMetaData
public boolean supportsGroupBy()
supportsGroupBy
in interface DatabaseMetaData
supportsGroupBy
in class AbstractDatabaseMetaData
public boolean supportsLikeEscapeClause()
supportsLikeEscapeClause
in interface DatabaseMetaData
supportsLikeEscapeClause
in class AbstractDatabaseMetaData
public boolean supportsMultipleResultSets()
supportsMultipleResultSets
in interface DatabaseMetaData
supportsMultipleResultSets
in class AbstractDatabaseMetaData
public boolean supportsMultipleTransactions()
supportsMultipleTransactions
in interface DatabaseMetaData
supportsMultipleTransactions
in class AbstractDatabaseMetaData
public boolean supportsOpenCursorsAcrossCommit() throws SQLException
supportsOpenCursorsAcrossCommit
in interface DatabaseMetaData
supportsOpenCursorsAcrossCommit
in class AbstractDatabaseMetaData
SQLException
public boolean supportsOpenCursorsAcrossRollback() throws SQLException
supportsOpenCursorsAcrossRollback
in interface DatabaseMetaData
supportsOpenCursorsAcrossRollback
in class AbstractDatabaseMetaData
SQLException
public boolean supportsOpenStatementsAcrossCommit() throws SQLException
supportsOpenStatementsAcrossCommit
in interface DatabaseMetaData
supportsOpenStatementsAcrossCommit
in class AbstractDatabaseMetaData
SQLException
public boolean supportsOpenStatementsAcrossRollback() throws SQLException
supportsOpenStatementsAcrossRollback
in interface DatabaseMetaData
supportsOpenStatementsAcrossRollback
in class AbstractDatabaseMetaData
SQLException
public boolean supportsResultSetType(int type) throws SQLException
supportsResultSetType
in interface DatabaseMetaData
supportsResultSetType
in class AbstractDatabaseMetaData
SQLException
public boolean supportsStoredProcedures() throws SQLException
supportsStoredProcedures
in interface DatabaseMetaData
supportsStoredProcedures
in class AbstractDatabaseMetaData
SQLException
public boolean supportsTransactionIsolationLevel(int level) throws SQLException
supportsTransactionIsolationLevel
in interface DatabaseMetaData
supportsTransactionIsolationLevel
in class AbstractDatabaseMetaData
SQLException
public boolean supportsTransactions()
supportsTransactions
in interface DatabaseMetaData
supportsTransactions
in class AbstractDatabaseMetaData
public boolean supportsUnion()
supportsUnion
in interface DatabaseMetaData
supportsUnion
in class AbstractDatabaseMetaData
|
jxDBCon 0.9z | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |