org.geotools.data.jdbc.fidmapper
Class AbstractFIDMapper

java.lang.Object
  extended byorg.geotools.data.jdbc.fidmapper.AbstractFIDMapper
All Implemented Interfaces:
FIDMapper, java.io.Serializable
Direct Known Subclasses:
AutoIncrementFIDMapper, BasicFIDMapper, HsqlFIDMapper, MaxIncFIDMapper, MultiColumnFIDMapper, NullFIDMapper, OIDFidMapper, TypedFIDMapper

public abstract class AbstractFIDMapper
extends java.lang.Object
implements FIDMapper

Abstract implementation providing common methods that usually are coded the same way in all fid mappers.

Author:
wolf
See Also:
Serialized Form

Field Summary
protected  boolean returnFIDColumnsAsAttributes
          Set if table FID columns are to be returned as business attributes.
 
Constructor Summary
AbstractFIDMapper()
           
 
Method Summary
 boolean hasAutoIncrementColumns()
          Returns true if at least one column is of auto-increment type
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.geotools.data.jdbc.fidmapper.FIDMapper
createID, getColumnCount, getColumnDecimalDigits, getColumnName, getColumnSize, getColumnType, getID, getPKAttributes, initSupportStructures, isAutoIncrement
 

Field Detail

returnFIDColumnsAsAttributes

protected boolean returnFIDColumnsAsAttributes
Set if table FID columns are to be returned as business attributes.

Constructor Detail

AbstractFIDMapper

public AbstractFIDMapper()
Method Detail

hasAutoIncrementColumns

public boolean hasAutoIncrementColumns()
Description copied from interface: FIDMapper
Returns true if at least one column is of auto-increment type

Specified by:
hasAutoIncrementColumns in interface FIDMapper
Returns:
See Also:
FIDMapper.hasAutoIncrementColumns()

isVolatile

public boolean isVolatile()
Convenience since most FID mappers should be persistent, override on the specific ones that aren't.

Specified by:
isVolatile in interface FIDMapper
Returns:
See Also:
FIDMapper.isVolatile()

returnFIDColumnsAsAttributes

public boolean returnFIDColumnsAsAttributes()
Description copied from interface: FIDMapper
If true the primary key columns will be returned as attributes. This is fundamental for primary key with businnes meaning.

Specified by:
returnFIDColumnsAsAttributes in interface FIDMapper
Returns:
See Also:
FIDMapper.returnFIDColumnsAsAttributes()


Copyright © GeoTools. All Rights Reserved.