|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectContentState
JDBCState
public final class JDBCState
State for jdbc datastore providing additional cached values such as primary key and database connection.
modules/library/jdbc (gt-jdbc.jar)
Field Summary |
---|
Fields inherited from class ContentState |
---|
batchFeatureEvent, bounds, callback, count, entry, featureType, listeners, tx |
Constructor Summary | |
---|---|
JDBCState(ContentEntry entry)
Creates a new state object. |
|
JDBCState(JDBCState state)
Creates the state from an existing one. |
Method Summary | |
---|---|
void |
close()
Closes the database connection with a call to JDBCDataStore.closeSafe(Connection) . |
ContentState |
copy()
Copies the state. |
protected void |
finalize()
|
void |
flush()
Flushes all cached state. |
Connection |
getConnection()
The cached database connection. |
PrimaryKey |
getPrimaryKey()
The cached primary key. |
boolean |
isExposePrimaryKeyColumns()
Returns the flag indicating if columns which compose the primary key are exposed via the feature type. |
void |
setConnection(Connection connection)
Sets the cached database connection. |
void |
setExposePrimaryKeyColumns(boolean exposePrimaryKeyColumns)
Sets the flag indicating if columns which compose the primary key are exposed via the feature type. |
void |
setPrimaryKey(PrimaryKey primaryKey)
Sets the cached primary key. |
Methods inherited from class ContentState |
---|
addListener, fireBatchFeatureEvent, fireFeatureAdded, fireFeatureEvent, fireFeatureRemoved, fireFeatureUpdated, getBatchFeatureEvent, getBounds, getCount, getEntry, getFeatureType, getTransaction, hasListener, removeListener, setBounds, setCount, setFeatureType, setTransaction |
Methods inherited from class Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDBCState(JDBCState state)
public JDBCState(ContentEntry entry)
Method Detail |
---|
public Connection getConnection()
public void setConnection(Connection connection)
public PrimaryKey getPrimaryKey()
public void setPrimaryKey(PrimaryKey primaryKey)
primaryKey
- public boolean isExposePrimaryKeyColumns()
public void setExposePrimaryKeyColumns(boolean exposePrimaryKeyColumns)
public void flush()
flush
in class ContentState
public ContentState copy()
copy
in class ContentState
public void close()
JDBCDataStore.closeSafe(Connection)
.
close
in class ContentState
protected void finalize() throws Throwable
finalize
in class Object
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |