Class JDBCState


  • public final class JDBCState
    extends ContentState
    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
    • Constructor Detail

      • JDBCState

        public JDBCState​(JDBCState state)
        Creates the state from an existing one.
      • JDBCState

        public JDBCState​(ContentEntry entry)
        Creates a new state object.
    • Method Detail

      • getPrimaryKey

        public PrimaryKey getPrimaryKey()
        The cached primary key.
      • setPrimaryKey

        public void setPrimaryKey​(PrimaryKey primaryKey)
        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 class ContentState