Package org.citydb.citygml.common.cache
Class CacheTable
- java.lang.Object
-
- org.citydb.citygml.common.cache.AbstractCacheTable
-
- org.citydb.citygml.common.cache.CacheTable
-
public class CacheTable extends AbstractCacheTable
-
-
Field Summary
-
Fields inherited from class org.citydb.citygml.common.cache.AbstractCacheTable
connection, ID, sqlAdapter
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CacheTable(CacheTableModel model, java.sql.Connection connection, AbstractSQLAdapter sqlAdapter)
protected
CacheTable(CacheTableModel model, java.sql.Connection connection, AbstractSQLAdapter sqlAdapter, boolean isStandAlone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
create()
protected void
createAndIndex()
protected void
createAsSelect(java.lang.String select)
void
createIndexes()
protected void
drop()
protected void
dropInternal()
void
dropMirrorTable()
CacheTable
getMirrorTable()
CacheTableModel
getModelType()
java.lang.String
getTableName()
boolean
isCreated()
boolean
isIndexed()
boolean
isStandAlone()
CacheTable
mirror()
CacheTable
mirrorAndIndex()
long
size()
void
truncate()
-
Methods inherited from class org.citydb.citygml.common.cache.AbstractCacheTable
getConnection
-
-
-
-
Constructor Detail
-
CacheTable
protected CacheTable(CacheTableModel model, java.sql.Connection connection, AbstractSQLAdapter sqlAdapter, boolean isStandAlone)
-
CacheTable
protected CacheTable(CacheTableModel model, java.sql.Connection connection, AbstractSQLAdapter sqlAdapter)
-
-
Method Detail
-
create
protected void create() throws java.sql.SQLException
- Specified by:
create
in classAbstractCacheTable
- Throws:
java.sql.SQLException
-
createAsSelect
protected void createAsSelect(java.lang.String select) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
createAndIndex
protected void createAndIndex() throws java.sql.SQLException
- Specified by:
createAndIndex
in classAbstractCacheTable
- Throws:
java.sql.SQLException
-
createIndexes
public void createIndexes() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
truncate
public void truncate() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
size
public long size() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getTableName
public java.lang.String getTableName()
-
isCreated
public boolean isCreated()
- Specified by:
isCreated
in classAbstractCacheTable
-
isIndexed
public boolean isIndexed()
-
isStandAlone
public boolean isStandAlone()
-
mirror
public CacheTable mirror() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
mirrorAndIndex
public CacheTable mirrorAndIndex() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
dropMirrorTable
public void dropMirrorTable() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getMirrorTable
public CacheTable getMirrorTable()
-
drop
protected void drop() throws java.sql.SQLException
- Specified by:
drop
in classAbstractCacheTable
- Throws:
java.sql.SQLException
-
dropInternal
protected void dropInternal() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getModelType
public CacheTableModel getModelType()
- Specified by:
getModelType
in classAbstractCacheTable
-
-