| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private String | |
| private boolean | |
| protected final Log | |
| private TableMetaDataProvider | |
| private boolean | |
| private boolean | |
| private String | |
| private List | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the insert string to be usedBuild the insert string based on configuration and meta-data information. |
| public int[] | Returns: the array of types to be usedBuild the array of |
| public String | |
| public String | |
| public String | getSimpleQueryForGetGeneratedKey(String tableName, String keyColumnName)
Get the simple query to retrieve generated keys when the JDBC feature for retrieving generated keys is not supported. |
| public List | |
| public String | |
| public boolean | |
| public boolean | isGeneratedKeysColumnNameArraySupported()
Does this database support a column name String array for retrieving generated keys? |
| public boolean | isGetGeneratedKeysSimulated()
Does this database support a simple query to retrieve generated keys when the JDBC feature for retrieving generated keys is not supported? |
| public boolean | isGetGeneratedKeysSupported()
Does this database support the JDBC feature for retrieving generated keys? |
| public boolean | |
| public boolean | |
| public List | matchInParameterValuesWithInsertColumns(SqlParameterSource
the parameter names and values parameterSource)Match the provided column names and values with the list of columns used. |
| public List | matchInParameterValuesWithInsertColumns(Map<String, ?>
the parameter names and values inParameters)Match the provided column names and values with the list of columns used. |
| private TableMetaDataProvider | |
| public void | processMetaData(DataSource
the DataSource being used dataSource, List<String> any columns that are declared declaredColumns, String[] name of generated keys generatedKeyNames)Process the current meta-data with the provided configuration options. |
| protected List | reconcileColumnsToUse(List<String>
declared column names declaredColumns, String[] names of generated key columns generatedKeyNames)Compare columns created from meta-data with declared columns and return a reconciled list. |
| public void | setAccessTableColumnMetaData(boolean accessTableColumnMetaData)
Specify whether we should access table column meta-data. |
| public void | |
| public void | setOverrideIncludeSynonymsDefault(boolean override)
Specify whether we should override default for accessing synonyms. |
| public void | setQuoteIdentifiers(boolean
whether identifiers should be quoted quoteIdentifiers)Specify whether we are quoting SQL identifiers. |
| public void | |
| public void |
| accessTableColumnMetaData | back to summary |
|---|---|
| private boolean accessTableColumnMetaData | |
| catalogName | back to summary |
|---|---|
| private String catalogName
| |
| generatedKeyColumnsUsed | back to summary |
|---|---|
| private boolean generatedKeyColumnsUsed | |
| logger | back to summary |
|---|---|
| protected final Log logger | |
| metaDataProvider | back to summary |
|---|---|
| private TableMetaDataProvider metaDataProvider
| |
| overrideIncludeSynonymsDefault | back to summary |
|---|---|
| private boolean overrideIncludeSynonymsDefault | |
| quoteIdentifiers | back to summary |
|---|---|
| private boolean quoteIdentifiers | |
| schemaName | back to summary |
|---|---|
| private String schemaName
| |
| tableColumns | back to summary |
|---|---|
| private List<String> tableColumns | |
| tableName | back to summary |
|---|---|
| private String tableName
| |
| TableMetaDataContext | back to summary |
|---|---|
| public TableMetaDataContext() | |
| createInsertString | back to summary |
|---|---|
| public String createInsertString(String... generatedKeyNames) Build the insert string based on configuration and meta-data information.
| |
| createInsertTypes | back to summary |
|---|---|
| public int[] createInsertTypes() Build the array of
| |
| getCatalogName | back to summary |
|---|---|
| public String getCatalogName() Get the name of the catalog for this context.
| |
| getSchemaName | back to summary |
|---|---|
| public String getSchemaName() Get the name of the schema for this context.
| |
| getSimpleQueryForGetGeneratedKey | back to summary |
|---|---|
| public String getSimpleQueryForGetGeneratedKey(String tableName, String keyColumnName) Get the simple query to retrieve generated keys when the JDBC feature for retrieving generated keys is not supported.
| |
| getTableColumns | back to summary |
|---|---|
| public List Get a List of the table column names. | |
| getTableName | back to summary |
|---|---|
| public String getTableName() Get the name of the table for this context.
| |
| isAccessTableColumnMetaData | back to summary |
|---|---|
| public boolean isAccessTableColumnMetaData() Are we accessing table meta-data? | |
| isGeneratedKeysColumnNameArraySupported | back to summary |
|---|---|
| public boolean isGeneratedKeysColumnNameArraySupported() Does this database support a column name String array for retrieving generated keys? | |
| isGetGeneratedKeysSimulated | back to summary |
|---|---|
| public boolean isGetGeneratedKeysSimulated() Does this database support a simple query to retrieve generated keys when the JDBC feature for retrieving generated keys is not supported? | |
| isGetGeneratedKeysSupported | back to summary |
|---|---|
| public boolean isGetGeneratedKeysSupported() Does this database support the JDBC feature for retrieving generated keys? | |
| isOverrideIncludeSynonymsDefault | back to summary |
|---|---|
| public boolean isOverrideIncludeSynonymsDefault() Are we overriding include synonyms default? | |
| isQuoteIdentifiers | back to summary |
|---|---|
| public boolean isQuoteIdentifiers() Are we quoting identifiers?
| |
| matchInParameterValuesWithInsertColumns | back to summary |
|---|---|
| public List Match the provided column names and values with the list of columns used.
| |
| matchInParameterValuesWithInsertColumns | back to summary |
|---|---|
| public List Match the provided column names and values with the list of columns used. | |
| obtainMetaDataProvider | back to summary |
|---|---|
| private TableMetaDataProvider obtainMetaDataProvider() | |
| processMetaData | back to summary |
|---|---|
| public void processMetaData(DataSource dataSource, List<String> declaredColumns, String[] generatedKeyNames) Process the current meta-data with the provided configuration options.
| |
| reconcileColumnsToUse | back to summary |
|---|---|
| protected List Compare columns created from meta-data with declared columns and return a reconciled list. | |
| setAccessTableColumnMetaData | back to summary |
|---|---|
| public void setAccessTableColumnMetaData(boolean accessTableColumnMetaData) Specify whether we should access table column meta-data. | |
| setCatalogName | back to summary |
|---|---|
| public void setCatalogName(String catalogName) Set the name of the catalog for this context. | |
| setOverrideIncludeSynonymsDefault | back to summary |
|---|---|
| public void setOverrideIncludeSynonymsDefault(boolean override) Specify whether we should override default for accessing synonyms. | |
| setQuoteIdentifiers | back to summary |
|---|---|
| public void setQuoteIdentifiers(boolean quoteIdentifiers) Specify whether we are quoting SQL identifiers. Defaults to
| |
| setSchemaName | back to summary |
|---|---|
| public void setSchemaName(String schemaName) Set the name of the schema for this context. | |
| setTableName | back to summary |
|---|---|
| public void setTableName(String tableName) Set the name of the table for this context. | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| identifierQuoteString | back to summary |
|---|---|
| private final String identifierQuoteString
| |
| quoting | back to summary |
|---|---|
| private final boolean quoting | |
| QuoteHandler | back to summary |
|---|---|
| public QuoteHandler(String identifierQuoteString) | |
| appendTo | back to summary |
|---|---|
| public void appendTo(StringBuilder stringBuilder, String item) | |