|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.gps.device.jdbc.mapping.AbstractColumnMapping
org.compass.gps.device.jdbc.mapping.VersionColumnMapping
public class VersionColumnMapping
Maps a version column (no property mapping required - if you wish to map the
version colum to a Resource Property use the
DataColumnToPropertyMapping).
In order to map a version column, either the column index or the column name
must be set, and the version column jdbc type (one of
java.sql.Types). The version column jdbc type defaults to
java.sql.Types.BIGINT.
Note that ResultSetJdbcGpsDevice defaults
to automatically detect and assign the version column sql type.
| Constructor Summary | |
|---|---|
VersionColumnMapping()
Creates an empty version column mapping. |
|
VersionColumnMapping(int columnIndex)
Creates a new version column mapping given the column name. |
|
VersionColumnMapping(int columnIndex,
int sqlType)
Creates a new version column mapping given the column index and the column sql type. |
|
VersionColumnMapping(String columnName)
Creates a new version column mapping given the column name. |
|
VersionColumnMapping(String columnName,
int sqlType)
Creates a new version column mapping given the column name and the column sql type. |
|
| Method Summary | |
|---|---|
int |
getSqlType()
Returns the jdbc sql type of the version column. |
void |
setSqlType(int sqlType)
Sets the jdbc sql type of the version column. |
| Methods inherited from class org.compass.gps.device.jdbc.mapping.AbstractColumnMapping |
|---|
getColumnIndex, getColumnName, isUsingColumnIndex, setColumnIndex, setColumnName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VersionColumnMapping()
The sqlType defaults to java.sql.Types.BIGINT.
public VersionColumnMapping(String columnName)
The sqlType defaults to java.sql.Types.BIGINT.
columnName - The version column name that will be used to look up the
column value.public VersionColumnMapping(int columnIndex)
The sqlType defaults to java.sql.Types.BIGINT.
columnIndex - The version column name that will be used to look up the
column value.
public VersionColumnMapping(String columnName,
int sqlType)
columnName - The version column name that will be used to look up the
column value.sqlType - The sql type (java.sql.Types) of the version
column.
public VersionColumnMapping(int columnIndex,
int sqlType)
columnIndex - The version column name that will be used to look up the
column value.sqlType - The sql type (java.sql.Types) of the version
column.| Method Detail |
|---|
public int getSqlType()
java.sql.Types.
public void setSqlType(int sqlType)
java.sql.Types.
sqlType - The jdbc sql type of the version column.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||