|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.data.jdbc.fidmapper.DefaultFIDMapperFactory
org.geotools.data.db2.DB2FIDMapperFactory
Overrides DefaultFIDMapperFactory methods for DB2-specific handling.
| Nested Class Summary |
| Nested classes inherited from class org.geotools.data.jdbc.fidmapper.DefaultFIDMapperFactory |
DefaultFIDMapperFactory.ColumnInfo |
| Field Summary |
| Fields inherited from class org.geotools.data.jdbc.fidmapper.DefaultFIDMapperFactory |
returnFIDColumnsAsAttributes |
| Constructor Summary | |
DB2FIDMapperFactory()
Default constructor will cause FID columns to be returned as business attributes. |
|
DB2FIDMapperFactory(boolean returnFIDColumnsAsAttributes)
Constructs a DB2FIDMapperFactory with user specification of whether to return FID columns as business attributes. |
|
| Method Summary | |
protected FIDMapper |
buildNoPKMapper(java.lang.String schema,
java.lang.String tableName,
java.sql.Connection connection)
Returns a DB2NullFIDMapper when there is no primary key. |
protected FIDMapper |
buildSingleColumnFidMapper0(java.lang.String schema,
java.lang.String tableName,
java.sql.Connection connection,
DefaultFIDMapperFactory.ColumnInfo ci)
Builds a FID mapper based on a single column primary key. |
FIDMapper |
getMapper(java.lang.String catalog,
java.lang.String schema,
java.lang.String tableName,
java.sql.Connection connection)
Gets the appropriate FIDMapper for the specified table. |
protected boolean |
isAutoIncrement(java.lang.String catalog,
java.lang.String schema,
java.lang.String tableName,
java.sql.Connection conn,
java.sql.ResultSet tableInfo,
java.lang.String columnName,
int dataType)
Determine whether this column is autoincrement. |
| Methods inherited from class org.geotools.data.jdbc.fidmapper.DefaultFIDMapperFactory |
buildLastResortFidMapper, buildMultiColumnFIDMapper, buildSingleColumnFidMapper, getColumnInfoList, getMapper, getPkColumnInfo, isIntegralType, isTextType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DB2FIDMapperFactory()
public DB2FIDMapperFactory(boolean returnFIDColumnsAsAttributes)
returnFIDColumnsAsAttributes - true if FID columns should be
returned as business attributes.| Method Detail |
public FIDMapper getMapper(java.lang.String catalog,
java.lang.String schema,
java.lang.String tableName,
java.sql.Connection connection)
throws java.io.IOException
getMapper in interface FIDMapperFactorygetMapper in class DefaultFIDMapperFactorycatalog - schema - tableName - connection - the active database connection to get table key
information
java.io.IOException - if any error occurs.
protected boolean isAutoIncrement(java.lang.String catalog,
java.lang.String schema,
java.lang.String tableName,
java.sql.Connection conn,
java.sql.ResultSet tableInfo,
java.lang.String columnName,
int dataType)
throws java.sql.SQLException
isAutoIncrement in class DefaultFIDMapperFactorycatalog - not usedschema - not usedtableName - the table nameconn - an open database connectiontableInfo - not usedcolumnName - the FID column namedataType - not used
java.sql.SQLException
protected FIDMapper buildNoPKMapper(java.lang.String schema,
java.lang.String tableName,
java.sql.Connection connection)
buildNoPKMapper in class DefaultFIDMapperFactoryschema - ignored.tableName - ignored.connection - ignored.
protected FIDMapper buildSingleColumnFidMapper0(java.lang.String schema,
java.lang.String tableName,
java.sql.Connection connection,
DefaultFIDMapperFactory.ColumnInfo ci)
MaxIncFIDMapper type for numeric columns, and a plain BasicFIDMapper of text based columns.
schema - tableName - connection - not usedci - the column information
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||