|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractFIDMapper
TypedFIDMapper
public class TypedFIDMapper
This fidmapper just takes another fid mapper and builds fids based on the wrapped FIDMapper by prefixing them with the feature type name, that is, the resulting fid follow the <featureTypeName>.<basic_fid> pattern.
modules/library/jdbc (gt2-jdbc.jar) (Maven report) (SVN head)| Field Summary |
|---|
| Fields inherited from class AbstractFIDMapper |
|---|
autoIncrement, colDecimalDigits, colNames, colSizes, colTypes, returnFIDColumnsAsAttributes, tableName, tableSchemaName |
| Constructor Summary | |
|---|---|
TypedFIDMapper(FIDMapper wrapped,
String featureTypeName)
Creates a new TypedFIDMapper object. |
|
| Method Summary | |
|---|---|
String |
createID(Connection conn,
Feature feature,
Statement statement)
Creates a new ID for a feature. |
boolean |
equals(Object object)
|
int |
getColumnCount()
Returns the number of columns in the primary keys handled by this mapper |
int |
getColumnDecimalDigits(int colIndex)
Provides the number of decimal digits for this column. |
String |
getColumnName(int colIndex)
Returns the name of the specified column in the primary key |
int |
getColumnSize(int colIndex)
Returns the size of a primary key column as it would be provided by the database metadata. |
int |
getColumnType(int colIndex)
Returns the column type by using a constant available in the java.sql.Types interface |
String |
getID(Object[] attributes)
Returns the FID given the values of the prymary key attributes |
Object[] |
getPKAttributes(String FID)
Creates the value for the PK attributes given the feature. |
String |
getTableName()
|
String |
getTableSchemaName()
|
FIDMapper |
getWrappedMapper()
Returns the base mapper wrapped by this TypedFIDMapper |
void |
initSupportStructures()
This method will be called by JDBCDataStore when creating new tables to give the FID mapper an opportunity to initialize needed data structures, such as support tables, sequences, and so on. |
boolean |
isAutoIncrement(int colIndex)
Returns true if the column is of serial type, that is, its value is automatically generated by the database if the user does not provide one |
boolean |
isVolatile()
Convenience since most FID mappers should be persistent, override on the specific ones that aren't. |
boolean |
returnFIDColumnsAsAttributes()
If true the primary key columns will be returned as attributes. |
String |
toString()
Create a nice string representation of a FID Mapper |
| Methods inherited from class AbstractFIDMapper |
|---|
getColumnDecimalDigits, getColumnName, getColumnSize, getColumnType, hasAutoIncrementColumns, isAutoIncrement, setInfo |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TypedFIDMapper(FIDMapper wrapped,
String featureTypeName)
wrapped - featureTypeName -
IllegalArgumentException - DOCUMENT ME!| Method Detail |
|---|
public String getID(Object[] attributes)
FIDMapper
attributes - DOCUMENT ME!FIDMapper.getID(java.lang.Object[])
public Object[] getPKAttributes(String FID)
throws IOException
FIDMapper
FID - The feature ID is going to be parsed
IOExceptionFIDMapper.getPKAttributes(java.lang.String)public boolean returnFIDColumnsAsAttributes()
FIDMapper
returnFIDColumnsAsAttributes in interface FIDMapperreturnFIDColumnsAsAttributes in class AbstractFIDMapperFIDMapper.returnFIDColumnsAsAttributes()public int getColumnCount()
FIDMapper
getColumnCount in interface FIDMappergetColumnCount in class AbstractFIDMapperFIDMapper.getColumnCount()public String getColumnName(int colIndex)
FIDMapper
getColumnName in interface FIDMappergetColumnName in class AbstractFIDMapperFIDMapper.getColumnName(int)public int getColumnType(int colIndex)
FIDMapper
getColumnType in interface FIDMappergetColumnType in class AbstractFIDMapperFIDMapper.getColumnType(int)public int getColumnSize(int colIndex)
FIDMapper
getColumnSize in interface FIDMappergetColumnSize in class AbstractFIDMapperFIDMapper.getColumnSize(int)public int getColumnDecimalDigits(int colIndex)
FIDMapper
getColumnDecimalDigits in interface FIDMappergetColumnDecimalDigits in class AbstractFIDMapperFIDMapper.getColumnDecimalDigits(int)public boolean isAutoIncrement(int colIndex)
FIDMapper
isAutoIncrement in interface FIDMapperisAutoIncrement in class AbstractFIDMapperFIDMapper.isAutoIncrement(int)public boolean equals(Object object)
equals in class ObjectObject.equals(java.lang.Object)
public String createID(Connection conn,
Feature feature,
Statement statement)
throws IOException
FIDMapper
conn - - the database connectionfeature - - the feature that needs the new FIDstatement - - the statement used to insert the feature into the
database
IOExceptionFIDMapper.createID(java.sql.Connection,
org.geotools.feature.Feature, Statement)public void initSupportStructures()
FIDMapper
initSupportStructures in interface FIDMapperinitSupportStructures in class AbstractFIDMapperFIDMapper.initSupportStructures()public FIDMapper getWrappedMapper()
public String toString()
AbstractFIDMapper
toString in class AbstractFIDMapperpublic String getTableName()
getTableName in class AbstractFIDMapperpublic String getTableSchemaName()
getTableSchemaName in class AbstractFIDMapperpublic boolean isVolatile()
AbstractFIDMapper
isVolatile in interface FIDMapperisVolatile in class AbstractFIDMapperFIDMapper.isVolatile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||