|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractFIDMapper
public abstract class AbstractFIDMapper
Abstract implementation providing common methods that usually are coded the same way in all fid mappers.
modules/library/jdbc (gt-jdbc.jar)
Field Summary | |
---|---|
protected boolean[] |
autoIncrement
Deprecated. |
protected int[] |
colDecimalDigits
Deprecated. |
protected String[] |
colNames
Deprecated. |
protected int[] |
colSizes
Deprecated. |
protected int[] |
colTypes
Deprecated. |
protected boolean |
returnFIDColumnsAsAttributes
Deprecated. Set if table FID columns are to be returned as business attributes. |
protected String |
tableName
Deprecated. |
protected String |
tableSchemaName
Deprecated. |
Constructor Summary | |
---|---|
AbstractFIDMapper()
Deprecated. Default constructor for AbstractFIDMapper |
|
AbstractFIDMapper(String tableSchemaName,
String tableName)
Deprecated. Set common values for all FID mappers. |
Method Summary | |
---|---|
int |
getColumnCount()
Deprecated. Returns the number of columns in the primary keys handled by this mapper |
protected int |
getColumnDecimalDigits()
Deprecated. |
int |
getColumnDecimalDigits(int colIndex)
Deprecated. Provides the number of decimal digits for this column. |
protected String |
getColumnName()
Deprecated. |
String |
getColumnName(int colIndex)
Deprecated. Returns the name of the specified column in the primary key |
protected int |
getColumnSize()
Deprecated. |
int |
getColumnSize(int colIndex)
Deprecated. Returns the size of a primary key column as it would be provided by the database metadata. |
protected int |
getColumnType()
Deprecated. |
int |
getColumnType(int colIndex)
Deprecated. Returns the column type by using a constant available in the java.sql.Types interface |
String |
getTableName()
Deprecated. |
String |
getTableSchemaName()
Deprecated. |
boolean |
hasAutoIncrementColumns()
Deprecated. Returns true if at least one column is of auto-increment type |
void |
initSupportStructures()
Deprecated. 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. |
protected boolean |
isAutoIncrement()
Deprecated. |
boolean |
isAutoIncrement(int colIndex)
Deprecated. 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()
Deprecated. Convenience since most FID mappers should be persistent, override on the specific ones that aren't. |
boolean |
returnFIDColumnsAsAttributes()
Deprecated. If true the primary key columns will be returned as attributes. |
protected void |
setInfo(String colName,
int colType,
int colSize,
int colDecimalDigits,
boolean autoIncrement)
Deprecated. |
String |
toString()
Deprecated. Create a nice string representation of a FID Mapper |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface FIDMapper |
---|
createID, getID, getPKAttributes, isValid |
Field Detail |
---|
protected boolean[] autoIncrement
protected int[] colDecimalDigits
protected String[] colNames
protected int[] colSizes
protected int[] colTypes
protected String tableName
protected String tableSchemaName
protected boolean returnFIDColumnsAsAttributes
Constructor Detail |
---|
public AbstractFIDMapper()
public AbstractFIDMapper(String tableSchemaName, String tableName)
tableSchemaName
- tableName
- Method Detail |
---|
public int getColumnCount()
FIDMapper
getColumnCount
in interface FIDMapper
FIDMapper.getColumnCount()
protected int getColumnDecimalDigits()
FIDMapper.getColumnCount()
public int getColumnDecimalDigits(int colIndex)
FIDMapper
getColumnDecimalDigits
in interface FIDMapper
FIDMapper.getColumnDecimalDigits(int)
protected String getColumnName()
public String getColumnName(int colIndex)
FIDMapper
getColumnName
in interface FIDMapper
FIDMapper.getColumnName(int)
protected int getColumnSize()
public int getColumnSize(int colIndex)
FIDMapper
getColumnSize
in interface FIDMapper
FIDMapper.getColumnSize(int)
protected int getColumnType()
public int getColumnType(int colIndex)
FIDMapper
getColumnType
in interface FIDMapper
FIDMapper.getColumnType(int)
public boolean hasAutoIncrementColumns()
FIDMapper
hasAutoIncrementColumns
in interface FIDMapper
FIDMapper.hasAutoIncrementColumns()
public void initSupportStructures()
FIDMapper
initSupportStructures
in interface FIDMapper
FIDMapper.initSupportStructures()
protected boolean isAutoIncrement()
public boolean isAutoIncrement(int colIndex)
FIDMapper
isAutoIncrement
in interface FIDMapper
FIDMapper.isAutoIncrement(int)
public boolean isVolatile()
isVolatile
in interface FIDMapper
FIDMapper.isVolatile()
public boolean returnFIDColumnsAsAttributes()
FIDMapper
returnFIDColumnsAsAttributes
in interface FIDMapper
FIDMapper.returnFIDColumnsAsAttributes()
protected void setInfo(String colName, int colType, int colSize, int colDecimalDigits, boolean autoIncrement)
public String toString()
toString
in class Object
public String getTableName()
public String getTableSchemaName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |