|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.data.jdbc.fidmapper.AbstractFIDMapper org.geotools.data.hsql.fidmapper.HsqlFIDMapper
This fidmapper just takes another fid mapper aand wraps it! Due to volatility issues, it seems that without a FIDMapper that isn't declared to be volatile, some things don't work...the TypedFIDMapper would've been a good choice except that it makes changes to the FID in the getID method.
Field Summary |
Fields inherited from class org.geotools.data.jdbc.fidmapper.AbstractFIDMapper |
returnFIDColumnsAsAttributes |
Constructor Summary | |
HsqlFIDMapper(FIDMapper wrapped,
java.lang.String featureTypeName)
Creates a new HsqlFIDMapper object. |
Method Summary | |
java.lang.String |
createID(java.sql.Connection conn,
Feature feature,
java.sql.Statement statement)
Creates a new ID for a feature. |
boolean |
equals(java.lang.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. |
java.lang.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 |
java.lang.String |
getID(java.lang.Object[] attributes)
Returns the FID given the values of the prymary key attributes |
java.lang.Object[] |
getPKAttributes(java.lang.String FID)
Creates the value for the PK attributes given the feature. |
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 |
returnFIDColumnsAsAttributes()
If true the primary key columns will be returned as attributes. |
Methods inherited from class org.geotools.data.jdbc.fidmapper.AbstractFIDMapper |
hasAutoIncrementColumns, isVolatile |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HsqlFIDMapper(FIDMapper wrapped, java.lang.String featureTypeName)
wrapped
- featureTypeName
-
java.lang.IllegalArgumentException
- DOCUMENT ME!Method Detail |
public java.lang.String getID(java.lang.Object[] attributes)
FIDMapper
attributes
- DOCUMENT ME!
FIDMapper.getID(java.lang.Object[])
public java.lang.Object[] getPKAttributes(java.lang.String FID) throws java.io.IOException
FIDMapper
FID
- The feature ID is going to be parsed
java.io.IOException
FIDMapper.getPKAttributes(java.lang.String)
public boolean returnFIDColumnsAsAttributes()
FIDMapper
returnFIDColumnsAsAttributes
in interface FIDMapper
returnFIDColumnsAsAttributes
in class AbstractFIDMapper
FIDMapper.returnFIDColumnsAsAttributes()
public int getColumnCount()
FIDMapper
FIDMapper.getColumnCount()
public java.lang.String getColumnName(int colIndex)
FIDMapper
colIndex
-
FIDMapper.getColumnName(int)
public int getColumnType(int colIndex)
FIDMapper
colIndex
-
FIDMapper.getColumnType(int)
public int getColumnSize(int colIndex)
FIDMapper
colIndex
-
FIDMapper.getColumnSize(int)
public int getColumnDecimalDigits(int colIndex)
FIDMapper
colIndex
-
FIDMapper.getColumnDecimalDigits(int)
public boolean isAutoIncrement(int colIndex)
FIDMapper
colIndex
-
FIDMapper.isAutoIncrement(int)
public boolean equals(java.lang.Object object)
Object.equals(java.lang.Object)
public java.lang.String createID(java.sql.Connection conn, Feature feature, java.sql.Statement statement) throws java.io.IOException
FIDMapper
conn
- - the database connectionfeature
- - the feature that needs the new FIDstatement
- - the statement used to insert the feature into the
database
java.io.IOException
FIDMapper.createID(java.sql.Connection,
org.geotools.feature.Feature, Statement)
public void initSupportStructures()
FIDMapper
FIDMapper.initSupportStructures()
public FIDMapper getWrappedMapper()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |