|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2007 the original author or authors. |
|
|
|
* Copyright 2002-2010 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -33,8 +33,8 @@ import org.springframework.dao.DataAccessResourceFailureException; |
|
|
|
import org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor; |
|
|
|
import org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* A generic implementation of the {@link TableMetaDataProvider} that should provide enough features for all supported |
|
|
|
* A generic implementation of the {@link TableMetaDataProvider} that should provide |
|
|
|
* databases. |
|
|
|
* enough features for all supported databases. |
|
|
|
* |
|
|
|
* |
|
|
|
* @author Thomas Risberg |
|
|
|
* @author Thomas Risberg |
|
|
|
* @since 2.5 |
|
|
|
* @since 2.5 |
|
|
|
@ -67,30 +67,23 @@ public class GenericTableMetaDataProvider implements TableMetaDataProvider { |
|
|
|
|
|
|
|
|
|
|
|
/** database products we know not supporting the use of a String[] for generated keys */ |
|
|
|
/** database products we know not supporting the use of a String[] for generated keys */ |
|
|
|
private List productsNotSupportingGeneratedKeysColumnNameArray = |
|
|
|
private List productsNotSupportingGeneratedKeysColumnNameArray = |
|
|
|
Arrays.asList(new String[] {"Apache Derby", "HSQL Database Engine"}); |
|
|
|
Arrays.asList("Apache Derby", "HSQL Database Engine"); |
|
|
|
|
|
|
|
|
|
|
|
/** Collection of TableParameterMetaData objects */ |
|
|
|
/** Collection of TableParameterMetaData objects */ |
|
|
|
private List<TableParameterMetaData> insertParameterMetaData = new ArrayList<TableParameterMetaData>(); |
|
|
|
private List<TableParameterMetaData> insertParameterMetaData = new ArrayList<TableParameterMetaData>(); |
|
|
|
|
|
|
|
|
|
|
|
/** NativeJdbcExtractor that can be used to retrieve the native connection */ |
|
|
|
/** NativeJdbcExtractor that can be used to retrieve the native connection */ |
|
|
|
protected NativeJdbcExtractor nativeJdbcExtractor = null; |
|
|
|
private NativeJdbcExtractor nativeJdbcExtractor; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Constructor used to initialize with provided database meta data. |
|
|
|
* Constructor used to initialize with provided database meta data. |
|
|
|
* @param databaseMetaData meta data to be used |
|
|
|
* @param databaseMetaData meta data to be used |
|
|
|
* @throws SQLException |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
protected GenericTableMetaDataProvider(DatabaseMetaData databaseMetaData) throws SQLException { |
|
|
|
protected GenericTableMetaDataProvider(DatabaseMetaData databaseMetaData) throws SQLException { |
|
|
|
userName = databaseMetaData.getUserName(); |
|
|
|
this.userName = databaseMetaData.getUserName(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Get whether identifiers use upper case |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public boolean isStoresUpperCaseIdentifiers() { |
|
|
|
|
|
|
|
return storesUpperCaseIdentifiers; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Specify whether identifiers use upper case |
|
|
|
* Specify whether identifiers use upper case |
|
|
|
@ -100,29 +93,36 @@ public class GenericTableMetaDataProvider implements TableMetaDataProvider { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Get whether identifiers use lower case |
|
|
|
* Get whether identifiers use upper case |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public boolean isStoresLowerCaseIdentifiers() { |
|
|
|
public boolean isStoresUpperCaseIdentifiers() { |
|
|
|
return storesLowerCaseIdentifiers; |
|
|
|
return this.storesUpperCaseIdentifiers; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Specify whether identifiers use lower case |
|
|
|
* Specify whether identifiers use lower case. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void setStoresLowerCaseIdentifiers(boolean storesLowerCaseIdentifiers) { |
|
|
|
public void setStoresLowerCaseIdentifiers(boolean storesLowerCaseIdentifiers) { |
|
|
|
this.storesLowerCaseIdentifiers = storesLowerCaseIdentifiers; |
|
|
|
this.storesLowerCaseIdentifiers = storesLowerCaseIdentifiers; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Get whether identifiers use lower case |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public boolean isStoresLowerCaseIdentifiers() { |
|
|
|
|
|
|
|
return this.storesLowerCaseIdentifiers; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public boolean isTableColumnMetaDataUsed() { |
|
|
|
public boolean isTableColumnMetaDataUsed() { |
|
|
|
return tableColumnMetaDataUsed; |
|
|
|
return this.tableColumnMetaDataUsed; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public List<TableParameterMetaData> getTableParameterMetaData() { |
|
|
|
public List<TableParameterMetaData> getTableParameterMetaData() { |
|
|
|
return insertParameterMetaData; |
|
|
|
return this.insertParameterMetaData; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public boolean isGetGeneratedKeysSupported() { |
|
|
|
public boolean isGetGeneratedKeysSupported() { |
|
|
|
return getGeneratedKeysSupported; |
|
|
|
return this.getGeneratedKeysSupported; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public boolean isGetGeneratedKeysSimulated(){ |
|
|
|
public boolean isGetGeneratedKeysSimulated(){ |
|
|
|
@ -140,10 +140,6 @@ public class GenericTableMetaDataProvider implements TableMetaDataProvider { |
|
|
|
this.getGeneratedKeysSupported = getGeneratedKeysSupported; |
|
|
|
this.getGeneratedKeysSupported = getGeneratedKeysSupported; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public boolean isGeneratedKeysColumnNameArraySupported() { |
|
|
|
|
|
|
|
return generatedKeysColumnNameArraySupported; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Specify whether a column name array is supported for generated keys |
|
|
|
* Specify whether a column name array is supported for generated keys |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ -151,12 +147,20 @@ public class GenericTableMetaDataProvider implements TableMetaDataProvider { |
|
|
|
this.generatedKeysColumnNameArraySupported = generatedKeysColumnNameArraySupported; |
|
|
|
this.generatedKeysColumnNameArraySupported = generatedKeysColumnNameArraySupported; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean isGeneratedKeysColumnNameArraySupported() { |
|
|
|
|
|
|
|
return this.generatedKeysColumnNameArraySupported; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setNativeJdbcExtractor(NativeJdbcExtractor nativeJdbcExtractor) { |
|
|
|
public void setNativeJdbcExtractor(NativeJdbcExtractor nativeJdbcExtractor) { |
|
|
|
this.nativeJdbcExtractor = nativeJdbcExtractor; |
|
|
|
this.nativeJdbcExtractor = nativeJdbcExtractor; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void initializeWithMetaData(DatabaseMetaData databaseMetaData) throws SQLException { |
|
|
|
protected NativeJdbcExtractor getNativeJdbcExtractor() { |
|
|
|
|
|
|
|
return this.nativeJdbcExtractor; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void initializeWithMetaData(DatabaseMetaData databaseMetaData) throws SQLException { |
|
|
|
try { |
|
|
|
try { |
|
|
|
if (databaseMetaData.supportsGetGeneratedKeys()) { |
|
|
|
if (databaseMetaData.supportsGetGeneratedKeys()) { |
|
|
|
logger.debug("GetGeneratedKeys is supported"); |
|
|
|
logger.debug("GetGeneratedKeys is supported"); |
|
|
|
@ -172,7 +176,7 @@ public class GenericTableMetaDataProvider implements TableMetaDataProvider { |
|
|
|
} |
|
|
|
} |
|
|
|
try { |
|
|
|
try { |
|
|
|
String databaseProductName = databaseMetaData.getDatabaseProductName(); |
|
|
|
String databaseProductName = databaseMetaData.getDatabaseProductName(); |
|
|
|
if (productsNotSupportingGeneratedKeysColumnNameArray.contains(databaseProductName)) { |
|
|
|
if (this.productsNotSupportingGeneratedKeysColumnNameArray.contains(databaseProductName)) { |
|
|
|
logger.debug("GeneratedKeysColumnNameArray is not supported for " + databaseProductName); |
|
|
|
logger.debug("GeneratedKeysColumnNameArray is not supported for " + databaseProductName); |
|
|
|
setGeneratedKeysColumnNameArraySupported(false); |
|
|
|
setGeneratedKeysColumnNameArraySupported(false); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -185,7 +189,7 @@ public class GenericTableMetaDataProvider implements TableMetaDataProvider { |
|
|
|
logger.warn("Error retrieving 'DatabaseMetaData.getDatabaseProductName' - " + se.getMessage()); |
|
|
|
logger.warn("Error retrieving 'DatabaseMetaData.getDatabaseProductName' - " + se.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
try { |
|
|
|
try { |
|
|
|
databaseVersion = databaseMetaData.getDatabaseProductVersion(); |
|
|
|
this.databaseVersion = databaseMetaData.getDatabaseProductVersion(); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (SQLException se) { |
|
|
|
catch (SQLException se) { |
|
|
|
logger.warn("Error retrieving 'DatabaseMetaData.getDatabaseProductVersion' - " + se.getMessage()); |
|
|
|
logger.warn("Error retrieving 'DatabaseMetaData.getDatabaseProductVersion' - " + se.getMessage()); |
|
|
|
@ -205,48 +209,57 @@ public class GenericTableMetaDataProvider implements TableMetaDataProvider { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void initializeWithTableColumnMetaData(DatabaseMetaData databaseMetaData, String catalogName, String schemaName, String tableName) |
|
|
|
public void initializeWithTableColumnMetaData(DatabaseMetaData databaseMetaData, String catalogName, |
|
|
|
throws SQLException { |
|
|
|
String schemaName, String tableName) throws SQLException { |
|
|
|
|
|
|
|
|
|
|
|
tableColumnMetaDataUsed = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.tableColumnMetaDataUsed = true; |
|
|
|
locateTableAndProcessMetaData(databaseMetaData, catalogName, schemaName, tableName); |
|
|
|
locateTableAndProcessMetaData(databaseMetaData, catalogName, schemaName, tableName); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String tableNameToUse(String tableName) { |
|
|
|
public String tableNameToUse(String tableName) { |
|
|
|
if (tableName == null) |
|
|
|
if (tableName == null) { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
else if (isStoresUpperCaseIdentifiers()) |
|
|
|
} |
|
|
|
|
|
|
|
else if (isStoresUpperCaseIdentifiers()) { |
|
|
|
return tableName.toUpperCase(); |
|
|
|
return tableName.toUpperCase(); |
|
|
|
else if(isStoresLowerCaseIdentifiers()) |
|
|
|
} |
|
|
|
|
|
|
|
else if(isStoresLowerCaseIdentifiers()) { |
|
|
|
return tableName.toLowerCase(); |
|
|
|
return tableName.toLowerCase(); |
|
|
|
else |
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
return tableName; |
|
|
|
return tableName; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String catalogNameToUse(String catalogName) { |
|
|
|
public String catalogNameToUse(String catalogName) { |
|
|
|
if (catalogName == null) |
|
|
|
if (catalogName == null) { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
else if (isStoresUpperCaseIdentifiers()) |
|
|
|
} |
|
|
|
|
|
|
|
else if (isStoresUpperCaseIdentifiers()) { |
|
|
|
return catalogName.toUpperCase(); |
|
|
|
return catalogName.toUpperCase(); |
|
|
|
else if(isStoresLowerCaseIdentifiers()) |
|
|
|
} |
|
|
|
|
|
|
|
else if(isStoresLowerCaseIdentifiers()) { |
|
|
|
return catalogName.toLowerCase(); |
|
|
|
return catalogName.toLowerCase(); |
|
|
|
else |
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
return catalogName; |
|
|
|
return catalogName; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String schemaNameToUse(String schemaName) { |
|
|
|
public String schemaNameToUse(String schemaName) { |
|
|
|
if (schemaName == null) |
|
|
|
if (schemaName == null) { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
else if (isStoresUpperCaseIdentifiers()) |
|
|
|
} |
|
|
|
|
|
|
|
else if (isStoresUpperCaseIdentifiers()) { |
|
|
|
return schemaName.toUpperCase(); |
|
|
|
return schemaName.toUpperCase(); |
|
|
|
else if(isStoresLowerCaseIdentifiers()) |
|
|
|
} |
|
|
|
|
|
|
|
else if(isStoresLowerCaseIdentifiers()) { |
|
|
|
return schemaName.toLowerCase(); |
|
|
|
return schemaName.toLowerCase(); |
|
|
|
else |
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
return schemaName; |
|
|
|
return schemaName; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String metaDataCatalogNameToUse(String catalogName) { |
|
|
|
public String metaDataCatalogNameToUse(String catalogName) { |
|
|
|
return catalogNameToUse(catalogName); |
|
|
|
return catalogNameToUse(catalogName); |
|
|
|
@ -261,19 +274,20 @@ public class GenericTableMetaDataProvider implements TableMetaDataProvider { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Provide access to version info for subclasses |
|
|
|
* Provide access to version info for subclasses. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
protected String getDatabaseVersion() { |
|
|
|
protected String getDatabaseVersion() { |
|
|
|
return databaseVersion; |
|
|
|
return this.databaseVersion; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Method supporting the metedata processing for a table |
|
|
|
* Method supporting the metedata processing for a table. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void locateTableAndProcessMetaData(DatabaseMetaData databaseMetaData, String catalogName, String schemaName, String tableName) { |
|
|
|
private void locateTableAndProcessMetaData(DatabaseMetaData databaseMetaData, String catalogName, |
|
|
|
|
|
|
|
String schemaName, String tableName) { |
|
|
|
|
|
|
|
|
|
|
|
Map<String, TableMetaData> tableMeta = new HashMap<String, TableMetaData>(); |
|
|
|
Map<String, TableMetaData> tableMeta = new HashMap<String, TableMetaData>(); |
|
|
|
ResultSet tables = null; |
|
|
|
ResultSet tables = null; |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
tables = databaseMetaData.getTables( |
|
|
|
tables = databaseMetaData.getTables( |
|
|
|
catalogNameToUse(catalogName), |
|
|
|
catalogNameToUse(catalogName), |
|
|
|
@ -311,7 +325,7 @@ public class GenericTableMetaDataProvider implements TableMetaDataProvider { |
|
|
|
logger.warn("Unable to locate table meta data for '" + tableName +"' -- column names must be provided"); |
|
|
|
logger.warn("Unable to locate table meta data for '" + tableName +"' -- column names must be provided"); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
TableMetaData tmd = null; |
|
|
|
TableMetaData tmd; |
|
|
|
if (schemaName == null) { |
|
|
|
if (schemaName == null) { |
|
|
|
tmd = tableMeta.get(userName.toUpperCase()); |
|
|
|
tmd = tableMeta.get(userName.toUpperCase()); |
|
|
|
if (tmd == null) { |
|
|
|
if (tmd == null) { |
|
|
|
@ -320,14 +334,16 @@ public class GenericTableMetaDataProvider implements TableMetaDataProvider { |
|
|
|
tmd = tableMeta.get("DBO"); |
|
|
|
tmd = tableMeta.get("DBO"); |
|
|
|
} |
|
|
|
} |
|
|
|
if (tmd == null) { |
|
|
|
if (tmd == null) { |
|
|
|
throw new DataAccessResourceFailureException("Unable to locate table meta data for '" + tableName + "' in the default schema"); |
|
|
|
throw new DataAccessResourceFailureException("Unable to locate table meta data for '" + |
|
|
|
|
|
|
|
tableName + "' in the default schema"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
tmd = tableMeta.get(schemaName.toUpperCase()); |
|
|
|
tmd = tableMeta.get(schemaName.toUpperCase()); |
|
|
|
if (tmd == null) { |
|
|
|
if (tmd == null) { |
|
|
|
throw new DataAccessResourceFailureException("Unable to locate table meta data for '" + tableName + "' in the '" + schemaName + "' schema"); |
|
|
|
throw new DataAccessResourceFailureException("Unable to locate table meta data for '" + |
|
|
|
|
|
|
|
tableName + "' in the '" + schemaName + "' schema"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -378,7 +394,7 @@ public class GenericTableMetaDataProvider implements TableMetaDataProvider { |
|
|
|
dataType, |
|
|
|
dataType, |
|
|
|
nullable |
|
|
|
nullable |
|
|
|
); |
|
|
|
); |
|
|
|
insertParameterMetaData.add(meta); |
|
|
|
this.insertParameterMetaData.add(meta); |
|
|
|
if (logger.isDebugEnabled()) { |
|
|
|
if (logger.isDebugEnabled()) { |
|
|
|
logger.debug("Retrieved metadata: " |
|
|
|
logger.debug("Retrieved metadata: " |
|
|
|
+ meta.getParameterName() + |
|
|
|
+ meta.getParameterName() + |
|
|
|
@ -389,7 +405,7 @@ public class GenericTableMetaDataProvider implements TableMetaDataProvider { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
catch (SQLException se) { |
|
|
|
catch (SQLException se) { |
|
|
|
logger.warn("Error while retreiving metadata for table columns: " + se.getMessage()); |
|
|
|
logger.warn("Error while retrieving metadata for table columns: " + se.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
finally { |
|
|
|
finally { |
|
|
|
try { |
|
|
|
try { |
|
|
|
@ -397,7 +413,7 @@ public class GenericTableMetaDataProvider implements TableMetaDataProvider { |
|
|
|
tableColumns.close(); |
|
|
|
tableColumns.close(); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (SQLException se) { |
|
|
|
catch (SQLException se) { |
|
|
|
logger.warn("Problem closing resultset for table column metadata " + se.getMessage()); |
|
|
|
logger.warn("Problem closing ResultSet for table column metadata " + se.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -405,45 +421,49 @@ public class GenericTableMetaDataProvider implements TableMetaDataProvider { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Class representing table meta data |
|
|
|
* Inner class representing table meta data. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private class TableMetaData { |
|
|
|
private static class TableMetaData { |
|
|
|
|
|
|
|
|
|
|
|
private String catalogName; |
|
|
|
private String catalogName; |
|
|
|
|
|
|
|
|
|
|
|
private String schemaName; |
|
|
|
private String schemaName; |
|
|
|
private String tableName; |
|
|
|
|
|
|
|
private String type; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String tableName; |
|
|
|
|
|
|
|
|
|
|
|
public String getCatalogName() { |
|
|
|
private String type; |
|
|
|
return catalogName; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setCatalogName(String catalogName) { |
|
|
|
public void setCatalogName(String catalogName) { |
|
|
|
this.catalogName = catalogName; |
|
|
|
this.catalogName = catalogName; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getSchemaName() { |
|
|
|
public String getCatalogName() { |
|
|
|
return schemaName; |
|
|
|
return this.catalogName; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setSchemaName(String schemaName) { |
|
|
|
public void setSchemaName(String schemaName) { |
|
|
|
this.schemaName = schemaName; |
|
|
|
this.schemaName = schemaName; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getTableName() { |
|
|
|
public String getSchemaName() { |
|
|
|
return tableName; |
|
|
|
return this.schemaName; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setTableName(String tableName) { |
|
|
|
public void setTableName(String tableName) { |
|
|
|
this.tableName = tableName; |
|
|
|
this.tableName = tableName; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getType() { |
|
|
|
public String getTableName() { |
|
|
|
return type; |
|
|
|
return this.tableName; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setType(String type) { |
|
|
|
public void setType(String type) { |
|
|
|
this.type = type; |
|
|
|
this.type = type; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String getType() { |
|
|
|
|
|
|
|
return this.type; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|