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 SummaryFields inherited from class ContentStatebatchFeatureEvent, bounds, count, entry, featureType, listeners, transactionState, tx
- 
Constructor SummaryConstructorsConstructorDescriptionJDBCState(ContentEntry entry) Creates a new state object.Creates the state from an existing one.
- 
Method SummaryModifier and TypeMethodDescriptioncopy()Copies the state.voidflush()Flushes all cached state.The cached primary key.booleanReturns the flag indicating if columns which compose the primary key are exposed via the feature type.voidsetExposePrimaryKeyColumns(boolean exposePrimaryKeyColumns) Sets the flag indicating if columns which compose the primary key are exposed via the feature type.voidsetPrimaryKey(PrimaryKey primaryKey) Sets the cached primary key.Methods inherited from class ContentStateaddListener, close, fireBatchFeatureEvent, fireFeatureAdded, fireFeatureEvent, fireFeatureRemoved, fireFeatureUpdated, getBatchFeatureEvent, getBounds, getCount, getEntry, getFeatureType, getTransaction, hasListener, removeListener, setBounds, setCount, setFeatureType, setTransaction
- 
Constructor Details- 
JDBCStateCreates the state from an existing one.
- 
JDBCStateCreates a new state object.
 
- 
- 
Method Details- 
getPrimaryKeyThe cached primary key.
- 
setPrimaryKeySets the cached primary key.
- 
isExposePrimaryKeyColumnspublic boolean isExposePrimaryKeyColumns()Returns the flag indicating if columns which compose the primary key are exposed via the feature type.
- 
setExposePrimaryKeyColumnspublic void setExposePrimaryKeyColumns(boolean exposePrimaryKeyColumns) Sets the flag indicating if columns which compose the primary key are exposed via the feature type.
- 
flushpublic void flush()Flushes all cached state.- Overrides:
- flushin class- ContentState
 
- 
copyCopies the state.- Overrides:
- copyin class- ContentState
- Returns:
- A copy of the state.
 
 
-