java.lang.Object
net.anwiba.commons.jdbc.database.DatabaseFacade
- All Implemented Interfaces:
IDatabaseFacade
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCapabilities(ICanceler canceler, Connection connection) getClientProperties(ICanceler canceler, Connection connection) getColumnPrivileges(Connection connection, IDatabaseTableName name, String column) getConstraintMetadata(ICanceler canceler, Connection connection, IDatabaseTableName table, IDatabaseConstraintName name) getConstraints(ICanceler canceler, Connection connection, IDatabaseTableName name) getDatabaseProperties(ICanceler canceler, Connection connection) getDataTypes(ICanceler canceler, Connection connection) getIndexMetadata(ICanceler canceler, Connection connection, IDatabaseIndexName name) getIndicies(ICanceler canceler, Connection connection, IDatabaseTableName name) getMetaData(Connection connection) getSchemaNames(ICanceler canceler, Connection connection, String catalog) getSequenceMetadata(ICanceler canceler, Connection connection, IDatabaseSequenceName name) getSequences(ICanceler canceler, Connection connection, IDatabaseSchemaName name) getTableColumnMetadata(ICanceler canceler, Connection connection, IDatabaseColumnName name) getTableColumns(ICanceler canceler, Connection connection, IDatabaseTableName name) getTableMetadata(ICanceler canceler, Connection connection, IDatabaseTableName name) getTablePrivileges(Connection connection, IDatabaseTableName name) getTables(ICanceler canceler, Connection connection, IDatabaseSchemaName name) getTableStatement(ICanceler canceler, Connection connection, IDatabaseTableName tableName) getTriggerMetadata(ICanceler canceler, Connection connection, IDatabaseTriggerName name) getTriggers(ICanceler canceler, Connection connection, IDatabaseTableName name) getTriggerStatement(ICanceler canceler, Connection connection, IDatabaseTriggerName name) getViewColumns(ICanceler canceler, Connection connection, IDatabaseViewName name) getViews(ICanceler canceler, Connection connection, IDatabaseSchemaName name) booleanisTable(IDatabaseTableName name) booleanisView(IDatabaseTableName name) quoted(IDatabaseTableName name) protected StringbooleanbooleanbooleanbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.anwiba.commons.jdbc.database.IDatabaseFacade
getTimeZone, isInformationSchema
-
Constructor Details
-
DatabaseFacade
public DatabaseFacade()
-
-
Method Details
-
quoted
- Specified by:
quotedin interfaceIDatabaseFacade
-
quoted
- Specified by:
quotedin interfaceIDatabaseFacade
-
quotedCharacter
-
getSchemaNames
public List<IDatabaseSchemaName> getSchemaNames(ICanceler canceler, Connection connection, String catalog) throws SQLException - Specified by:
getSchemaNamesin interfaceIDatabaseFacade- Throws:
SQLException
-
getTables
public List<IDatabaseTableName> getTables(ICanceler canceler, Connection connection, IDatabaseSchemaName name) throws SQLException - Specified by:
getTablesin interfaceIDatabaseFacade- Throws:
SQLException
-
supportsSequences
public boolean supportsSequences()- Specified by:
supportsSequencesin interfaceIDatabaseFacade
-
getSequences
public List<IDatabaseSequenceName> getSequences(ICanceler canceler, Connection connection, IDatabaseSchemaName name) throws SQLException - Specified by:
getSequencesin interfaceIDatabaseFacade- Throws:
SQLException
-
getSequenceMetadata
public ResultSet getSequenceMetadata(ICanceler canceler, Connection connection, IDatabaseSequenceName name) throws SQLException - Specified by:
getSequenceMetadatain interfaceIDatabaseFacade- Throws:
SQLException
-
getIndexMetadata
public ResultSet getIndexMetadata(ICanceler canceler, Connection connection, IDatabaseIndexName name) throws SQLException - Specified by:
getIndexMetadatain interfaceIDatabaseFacade- Throws:
SQLException
-
getTriggerMetadata
public ResultSet getTriggerMetadata(ICanceler canceler, Connection connection, IDatabaseTriggerName name) throws SQLException - Specified by:
getTriggerMetadatain interfaceIDatabaseFacade- Throws:
SQLException
-
getTriggerStatement
public String getTriggerStatement(ICanceler canceler, Connection connection, IDatabaseTriggerName name) throws SQLException - Specified by:
getTriggerStatementin interfaceIDatabaseFacade- Throws:
SQLException
-
getIndicies
public List<IDatabaseIndexName> getIndicies(ICanceler canceler, Connection connection, IDatabaseTableName name) throws SQLException - Specified by:
getIndiciesin interfaceIDatabaseFacade- Throws:
SQLException
-
supportsTrigger
public boolean supportsTrigger()- Specified by:
supportsTriggerin interfaceIDatabaseFacade
-
getTriggers
public List<IDatabaseTriggerName> getTriggers(ICanceler canceler, Connection connection, IDatabaseTableName name) throws SQLException - Specified by:
getTriggersin interfaceIDatabaseFacade- Throws:
SQLException
-
supportsConstaints
public boolean supportsConstaints()- Specified by:
supportsConstaintsin interfaceIDatabaseFacade
-
getConstraints
public List<IDatabaseConstraintName> getConstraints(ICanceler canceler, Connection connection, IDatabaseTableName name) throws SQLException - Specified by:
getConstraintsin interfaceIDatabaseFacade- Throws:
SQLException
-
getConstraintMetadata
public ResultSet getConstraintMetadata(ICanceler canceler, Connection connection, IDatabaseTableName table, IDatabaseConstraintName name) throws SQLException - Specified by:
getConstraintMetadatain interfaceIDatabaseFacade- Throws:
SQLException
-
getTableMetadata
public ResultSet getTableMetadata(ICanceler canceler, Connection connection, IDatabaseTableName name) throws CanceledException, SQLException - Specified by:
getTableMetadatain interfaceIDatabaseFacade- Throws:
CanceledExceptionSQLException
-
getDataTypes
public ResultSet getDataTypes(ICanceler canceler, Connection connection) throws CanceledException, SQLException - Specified by:
getDataTypesin interfaceIDatabaseFacade- Throws:
CanceledExceptionSQLException
-
getCapabilities
public List<Property> getCapabilities(ICanceler canceler, Connection connection) throws CanceledException, SQLException - Specified by:
getCapabilitiesin interfaceIDatabaseFacade- Throws:
CanceledExceptionSQLException
-
getDatabaseProperties
public List<Property> getDatabaseProperties(ICanceler canceler, Connection connection) throws CanceledException, SQLException - Specified by:
getDatabasePropertiesin interfaceIDatabaseFacade- Throws:
CanceledExceptionSQLException
-
getClientProperties
public List<Property> getClientProperties(ICanceler canceler, Connection connection) throws CanceledException, SQLException - Specified by:
getClientPropertiesin interfaceIDatabaseFacade- Throws:
CanceledExceptionSQLException
-
supportsTableStatement
public boolean supportsTableStatement()- Specified by:
supportsTableStatementin interfaceIDatabaseFacade
-
getTableStatement
public String getTableStatement(ICanceler canceler, Connection connection, IDatabaseTableName tableName) throws SQLException - Specified by:
getTableStatementin interfaceIDatabaseFacade- Throws:
SQLException
-
isTable
- Specified by:
isTablein interfaceIDatabaseFacade
-
getTableFilters
- Specified by:
getTableFiltersin interfaceIDatabaseFacade
-
getTableColumns
public List<IDatabaseColumnName> getTableColumns(ICanceler canceler, Connection connection, IDatabaseTableName name) throws SQLException - Specified by:
getTableColumnsin interfaceIDatabaseFacade- Throws:
SQLException
-
getViews
public List<IDatabaseViewName> getViews(ICanceler canceler, Connection connection, IDatabaseSchemaName name) throws SQLException - Specified by:
getViewsin interfaceIDatabaseFacade- Throws:
SQLException
-
isView
- Specified by:
isViewin interfaceIDatabaseFacade
-
getViewColumns
public List<IDatabaseColumnName> getViewColumns(ICanceler canceler, Connection connection, IDatabaseViewName name) throws SQLException - Specified by:
getViewColumnsin interfaceIDatabaseFacade- Throws:
SQLException
-
getMetaData
- Specified by:
getMetaDatain interfaceIDatabaseFacade- Throws:
SQLException
-
getTableColumnMetadata
public ResultSet getTableColumnMetadata(ICanceler canceler, Connection connection, IDatabaseColumnName name) throws CanceledException, SQLException - Specified by:
getTableColumnMetadatain interfaceIDatabaseFacade- Throws:
CanceledExceptionSQLException
-
getColumnPrivileges
public ResultSet getColumnPrivileges(Connection connection, IDatabaseTableName name, String column) throws SQLException - Specified by:
getColumnPrivilegesin interfaceIDatabaseFacade- Throws:
SQLException
-
getTablePrivileges
public ResultSet getTablePrivileges(Connection connection, IDatabaseTableName name) throws SQLException - Specified by:
getTablePrivilegesin interfaceIDatabaseFacade- Throws:
SQLException
-