Package org.geotools.jdbc
Class JDBCState
Object
ContentState
JDBCState
State for jdbc datastore providing additional cached values such as primary key and database connection.
- Author:
- Jody Garnett, Refractions Research Inc., Justin Deoliveira, The Open Planning Project
-
Field Summary
Fields inherited from class ContentState
batchFeatureEvent, bounds, count, entry, featureType, listeners, transactionState, tx
-
Constructor Summary
ConstructorsConstructorDescriptionJDBCState
(ContentEntry entry) Creates a new state object.Creates the state from an existing one. -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Copies the state.void
flush()
Flushes all cached state.The cached primary key.boolean
Returns the flag indicating if columns which compose the primary key are exposed via the feature type.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, close, fireBatchFeatureEvent, fireFeatureAdded, fireFeatureEvent, fireFeatureRemoved, fireFeatureUpdated, getBatchFeatureEvent, getBounds, getCount, getEntry, getFeatureType, getTransaction, hasListener, removeListener, setBounds, setCount, setFeatureType, setTransaction
-
Constructor Details
-
JDBCState
Creates the state from an existing one. -
JDBCState
Creates a new state object.
-
-
Method Details
-
getPrimaryKey
The cached primary key. -
setPrimaryKey
Sets the cached primary key. -
isExposePrimaryKeyColumns
public boolean isExposePrimaryKeyColumns()Returns the flag indicating if columns which compose the primary key are exposed via the feature type. -
setExposePrimaryKeyColumns
public void setExposePrimaryKeyColumns(boolean exposePrimaryKeyColumns) Sets the flag indicating if columns which compose the primary key are exposed via the feature type. -
flush
public void flush()Flushes all cached state.- Overrides:
flush
in classContentState
-
copy
Copies the state.- Overrides:
copy
in classContentState
- Returns:
- A copy of the state.
-