public class SqlEntityData extends DefaultEntityData implements PersistentEntityData
Constructor and Description |
---|
SqlEntityData(java.io.File dbPath,
long writeDelay) |
SqlEntityData(java.lang.String dbPath,
long writeDelay) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
execute(java.lang.String statement) |
protected SqlSession |
getSession() |
protected <T extends EntityComponent> |
lookupDefaultHandler(java.lang.Class<T> type)
When no specific type handler exists, this attempts to
find an appropriate handler.
|
<T extends EntityComponent> |
markPersistentType(java.lang.Class<T> type)
Marks the specified type as being persistent in this
particular EntityData implementation.
|
addEntityComponentListener, createEntity, createSet, entityChange, findEntities, findEntity, findSingleEntity, forType, getComponent, getEntities, getEntities, getEntity, getEntityIds, getEntityIds, getHandler, getStrings, hasHandler, registerComponentHandler, releaseEntitySet, removeComponent, removeEntity, removeEntityComponentListener, replace, setComponent, setComponents, setIdGenerator, setStringIndex, watchEntity
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createEntity, findEntities, findEntity, getComponent, getEntities, getEntities, getEntity, getStrings, removeComponent, removeEntity, setComponent, setComponents, watchEntity
public SqlEntityData(java.io.File dbPath, long writeDelay) throws java.sql.SQLException
java.sql.SQLException
public SqlEntityData(java.lang.String dbPath, long writeDelay) throws java.sql.SQLException
java.sql.SQLException
public <T extends EntityComponent> void markPersistentType(java.lang.Class<T> type)
PersistentEntityData
markPersistentType
in interface PersistentEntityData
protected void execute(java.lang.String statement) throws java.sql.SQLException
java.sql.SQLException
protected SqlSession getSession() throws java.sql.SQLException
java.sql.SQLException
protected <T extends EntityComponent> ComponentHandler<T> lookupDefaultHandler(java.lang.Class<T> type)
DefaultEntityData
lookupDefaultHandler
in class DefaultEntityData
public void close()
close
in interface EntityData
close
in class DefaultEntityData