Package org.citydb.citygml.common.cache
Class AbstractCacheTable
- java.lang.Object
-
- org.citydb.citygml.common.cache.AbstractCacheTable
-
- Direct Known Subclasses:
BranchCacheTable
,CacheTable
public abstract class AbstractCacheTable extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.sql.Connection
connection
protected static long
ID
protected AbstractSQLAdapter
sqlAdapter
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCacheTable(java.sql.Connection connection, AbstractSQLAdapter sqlAdapter)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
create()
protected abstract void
createAndIndex()
protected abstract void
drop()
java.sql.Connection
getConnection()
abstract CacheTableModel
getModelType()
abstract boolean
isCreated()
-
-
-
Field Detail
-
ID
protected static long ID
-
connection
protected final java.sql.Connection connection
-
sqlAdapter
protected final AbstractSQLAdapter sqlAdapter
-
-
Constructor Detail
-
AbstractCacheTable
protected AbstractCacheTable(java.sql.Connection connection, AbstractSQLAdapter sqlAdapter)
-
-
Method Detail
-
getConnection
public java.sql.Connection getConnection()
-
getModelType
public abstract CacheTableModel getModelType()
-
isCreated
public abstract boolean isCreated()
-
create
protected abstract void create() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
createAndIndex
protected abstract void createAndIndex() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
drop
protected abstract void drop() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-