CallMetaDataProvider interface.
This class can be extended to provide database specific behavior.
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| protected static final Log | logger
Logger available to subclasses. |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private final String |
| Access | Constructor and Description |
|---|---|
| protected | GenericCallMetaDataProvider(DatabaseMetaData
meta-data to be used databaseMetaData)Constructor used to initialize with provided database meta-data. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | byPassReturnParameter(String parameterName)
Implements org. Should we bypass the return parameter with the specified name? |
| public String | catalogNameToUse(String catalogName)
Implements org. Provide any modification of the catalog name passed in to match the meta-data currently used. |
| public SqlParameter | createDefaultInOutParameter(String
the name of the parameter parameterName, CallParameterMetaData meta-data used for this call meta)Implements org. Create a default in/out parameter based on the provided meta-data. |
| public SqlParameter | createDefaultInParameter(String
the name of the parameter parameterName, CallParameterMetaData meta-data used for this call meta)Implements org. Create a default in parameter based on the provided meta-data. |
| public SqlParameter | createDefaultOutParameter(String
the name of the parameter parameterName, CallParameterMetaData meta-data used for this call meta)Implements org. Create a default out parameter based on the provided meta-data. |
| private static String | |
| public List | getCallParameterMetaData()
Implements org. Get the call parameter meta-data that is currently used. |
| public int | getRefCursorSqlType()
Implements org. Get the |
| public String | getUserName()
Implements org. Get the name of the current user. |
| private String | |
| public void | initializeWithMetaData(DatabaseMetaData
used to retrieve database specific information databaseMetaData)Implements org. Initialize using the provided DatabaseMetData. |
| public void | initializeWithProcedureColumnMetaData(DatabaseMetaData
used to retrieve database specific information databaseMetaData, String name of catalog to use (or catalogName, String null if none)name of schema name to use (or schemaName, String null if none)name of the stored procedure procedureName)Implements org. Initialize the database specific management of procedure column meta-data. |
| private static boolean | |
| public boolean | isProcedureColumnMetaDataUsed()
Implements org. Are we using the meta-data for the procedure columns? |
| public boolean | isRefCursorSupported()
Implements org. Does this database support returning ResultSets as ref cursors to be retrieved with
|
| public boolean | isReturnResultSetSupported()
Implements org. Does this database support returning ResultSets that should be retrieved with the JDBC call:
|
| protected boolean | |
| protected boolean | |
| public boolean | isSupportsCatalogsInProcedureCalls()
Implements org. Does the database support the use of catalog name in procedure calls? |
| public boolean | isSupportsSchemasInProcedureCalls()
Implements org. Does the database support the use of schema name in procedure calls? |
| public String | metaDataCatalogNameToUse(String catalogName)
Implements org. Provide any modification of the catalog name passed in to match the meta-data currently used. |
| public String | metaDataSchemaNameToUse(String schemaName)
Implements org. Provide any modification of the schema name passed in to match the meta-data currently used. |
| public String | namedParameterBindingToUse(String
the name of the parameter to bind parameterName)Implements org. Return the name of the named parameter to use for binding the given parameter name. |
| public String | parameterNameToUse(String
name of the parameter of column parameterName)Implements org. Provide any modification of the column name passed in to match the meta-data currently used. |
| public String | procedureNameToUse(String procedureName)
Implements org. Provide any modification of the procedure name passed in to match the meta-data currently used. |
| private void | processProcedureColumns(DatabaseMetaData databaseMetaData, String catalogName, String schemaName, String procedureName)
Process the procedure column meta-data. |
| public String | schemaNameToUse(String schemaName)
Implements org. Provide any modification of the schema name passed in to match the meta-data currently used. |
| protected void | setStoresLowerCaseIdentifiers(boolean storesLowerCaseIdentifiers)
Specify whether the database uses lower case for identifiers. |
| protected void | setStoresUpperCaseIdentifiers(boolean storesUpperCaseIdentifiers)
Specify whether the database uses upper case for identifiers. |
| protected void | setSupportsCatalogsInProcedureCalls(boolean supportsCatalogsInProcedureCalls)
Specify whether the database supports the use of catalog name in procedure calls. |
| protected void | setSupportsSchemasInProcedureCalls(boolean supportsSchemasInProcedureCalls)
Specify whether the database supports the use of schema name in procedure calls. |
| callParameterMetaData | back to summary |
|---|---|
| private final List<CallParameterMetaData> callParameterMetaData | |
| logger | back to summary |
|---|---|
| protected static final Log logger Logger available to subclasses. | |
| procedureColumnMetaDataUsed | back to summary |
|---|---|
| private boolean procedureColumnMetaDataUsed | |
| storesLowerCaseIdentifiers | back to summary |
|---|---|
| private boolean storesLowerCaseIdentifiers | |
| storesUpperCaseIdentifiers | back to summary |
|---|---|
| private boolean storesUpperCaseIdentifiers | |
| supportsCatalogsInProcedureCalls | back to summary |
|---|---|
| private boolean supportsCatalogsInProcedureCalls | |
| supportsSchemasInProcedureCalls | back to summary |
|---|---|
| private boolean supportsSchemasInProcedureCalls | |
| userName | back to summary |
|---|---|
| private final String userName | |
| GenericCallMetaDataProvider | back to summary |
|---|---|
| protected GenericCallMetaDataProvider(DatabaseMetaData databaseMetaData) throws SQLException Constructor used to initialize with provided database meta-data.
| |
| byPassReturnParameter | back to summary |
|---|---|
| public boolean byPassReturnParameter(String parameterName) Implements org. Doc from org. Should we bypass the return parameter with the specified name? This allows the database specific implementation to skip the processing for specific results returned by the database call.
| |
| catalogNameToUse | back to summary |
|---|---|
| public String catalogNameToUse(String catalogName) Implements org. Doc from org. Provide any modification of the catalog name passed in to match the meta-data currently used. This could include altering the case. | |
| createDefaultInOutParameter | back to summary |
|---|---|
| public SqlParameter createDefaultInOutParameter(String parameterName, CallParameterMetaData meta) Implements org. Doc from org. Create a default in/out parameter based on the provided meta-data. This is used when no explicit parameter declaration has been made.
| |
| createDefaultInParameter | back to summary |
|---|---|
| public SqlParameter createDefaultInParameter(String parameterName, CallParameterMetaData meta) Implements org. Doc from org. Create a default in parameter based on the provided meta-data. This is used when no explicit parameter declaration has been made.
| |
| createDefaultOutParameter | back to summary |
|---|---|
| public SqlParameter createDefaultOutParameter(String parameterName, CallParameterMetaData meta) Implements org. Doc from org. Create a default out parameter based on the provided meta-data. This is used when no explicit parameter declaration has been made.
| |
| escapeNamePattern | back to summary |
|---|---|
private static String escapeNamePattern(String name, String escape)
| |
| getCallParameterMetaData | back to summary |
|---|---|
| public List Implements org. Doc from org. Get the call parameter meta-data that is currently used.
| |
| getRefCursorSqlType | back to summary |
|---|---|
| public int getRefCursorSqlType() Implements org. Doc from org. Get the
| |
| getUserName | back to summary |
|---|---|
| public String getUserName() Implements org. Doc from org. Get the name of the current user. Useful for meta-data lookups etc. | |
| identifierNameToUse | back to summary |
|---|---|
private String identifierNameToUse(String identifierName)
| |
| initializeWithMetaData | back to summary |
|---|---|
| public void initializeWithMetaData(DatabaseMetaData databaseMetaData) throws SQLException Implements org. Doc from org. Initialize using the provided DatabaseMetData.
| |
| initializeWithProcedureColumnMetaData | back to summary |
|---|---|
| public void initializeWithProcedureColumnMetaData(DatabaseMetaData databaseMetaData, String catalogName, String schemaName, String procedureName) throws SQLException Implements org. Doc from org. Initialize the database specific management of procedure column meta-data. This is only called for databases that are supported. This initialization can be turned off by specifying that column meta-data should not be used.
| |
| isInOrOutColumn | back to summary |
|---|---|
| private static boolean isInOrOutColumn(int columnType, boolean function) | |
| isProcedureColumnMetaDataUsed | back to summary |
|---|---|
| public boolean isProcedureColumnMetaDataUsed() Implements org. Doc from org. Are we using the meta-data for the procedure columns?
| |
| isRefCursorSupported | back to summary |
|---|---|
| public boolean isRefCursorSupported() Implements org. Doc from org. Does this database support returning ResultSets as ref cursors to be retrieved with
| |
| isReturnResultSetSupported | back to summary |
|---|---|
| public boolean isReturnResultSetSupported() Implements org. Doc from org. Does this database support returning ResultSets that should be retrieved with the JDBC call:
| |
| isStoresLowerCaseIdentifiers | back to summary |
|---|---|
| protected boolean isStoresLowerCaseIdentifiers() Does the database use lower case for identifiers? | |
| isStoresUpperCaseIdentifiers | back to summary |
|---|---|
| protected boolean isStoresUpperCaseIdentifiers() Does the database use upper case for identifiers? | |
| isSupportsCatalogsInProcedureCalls | back to summary |
|---|---|
| public boolean isSupportsCatalogsInProcedureCalls() Implements org. Does the database support the use of catalog name in procedure calls?
| |
| isSupportsSchemasInProcedureCalls | back to summary |
|---|---|
| public boolean isSupportsSchemasInProcedureCalls() Implements org. Does the database support the use of schema name in procedure calls?
| |
| metaDataCatalogNameToUse | back to summary |
|---|---|
| public String metaDataCatalogNameToUse(String catalogName) Implements org. Doc from org. Provide any modification of the catalog name passed in to match the meta-data currently used. The returned value will be used for meta-data lookups. This could include altering the case used or providing a base catalog if none is provided. | |
| metaDataSchemaNameToUse | back to summary |
|---|---|
| public String metaDataSchemaNameToUse(String schemaName) Implements org. Doc from org. Provide any modification of the schema name passed in to match the meta-data currently used. The returned value will be used for meta-data lookups. This could include altering the case used or providing a base schema if none is provided. | |
| namedParameterBindingToUse | back to summary |
|---|---|
| public String namedParameterBindingToUse(String parameterName) Implements org. Doc from org. Return the name of the named parameter to use for binding the given parameter name. | |
| parameterNameToUse | back to summary |
|---|---|
| public String parameterNameToUse(String parameterName) Implements org. Doc from org. Provide any modification of the column name passed in to match the meta-data currently used. This could include altering the case. | |
| procedureNameToUse | back to summary |
|---|---|
| public String procedureNameToUse(String procedureName) Implements org. Doc from org. Provide any modification of the procedure name passed in to match the meta-data currently used. This could include altering the case. | |
| processProcedureColumns | back to summary |
|---|---|
| private void processProcedureColumns(DatabaseMetaData databaseMetaData, String catalogName, String schemaName, String procedureName) Process the procedure column meta-data. | |
| schemaNameToUse | back to summary |
|---|---|
| public String schemaNameToUse(String schemaName) Implements org. Doc from org. Provide any modification of the schema name passed in to match the meta-data currently used. This could include altering the case. | |
| setStoresLowerCaseIdentifiers | back to summary |
|---|---|
| protected void setStoresLowerCaseIdentifiers(boolean storesLowerCaseIdentifiers) Specify whether the database uses lower case for identifiers. | |
| setStoresUpperCaseIdentifiers | back to summary |
|---|---|
| protected void setStoresUpperCaseIdentifiers(boolean storesUpperCaseIdentifiers) Specify whether the database uses upper case for identifiers. | |
| setSupportsCatalogsInProcedureCalls | back to summary |
|---|---|
| protected void setSupportsCatalogsInProcedureCalls(boolean supportsCatalogsInProcedureCalls) Specify whether the database supports the use of catalog name in procedure calls. | |
| setSupportsSchemasInProcedureCalls | back to summary |
|---|---|
| protected void setSupportsSchemasInProcedureCalls(boolean supportsSchemasInProcedureCalls) Specify whether the database supports the use of schema name in procedure calls. | |