public class DerbyMemory extends DatabaseMemory
DatabaseMemory.SessionInfo
CACHE_SIZE, DATABASE_DRIVER, DATABASE_PASSWORD, DATABASE_TEST_URL, DATABASE_URL, DATABASE_URL_PREFIX, DATABASE_USER, RECREATE_DATABASE, SCHEMA_URL_PREFIX, sessions, TEST
Constructor and Description |
---|
DerbyMemory() |
Modifier and Type | Method and Description |
---|---|
void |
createMemory(java.lang.String database,
boolean schema)
Create the database.
|
void |
createMemoryFromTemplate(java.lang.String database,
boolean isSchema,
java.lang.String template,
boolean templateIsSchema)
Create the database.
|
void |
destroyMemory(java.lang.String database,
boolean isSchema)
Drop the database.
|
void |
initialize(java.util.Map<java.lang.String,java.lang.Object> properties)
Initialize any configurable settings from the properties.
|
void |
restore(java.lang.String database,
boolean isSchema,
boolean recreateDatabase)
Connect and create the EntityManager.
|
abort, awake, cacheSize, checkSchemaVersion, clearProperties, createMemory, deleteMemory, executeDDL, fastRestore, forceShutdown, freeMemory, getEntityManager, getFactory, getMemoryName, importMemory, initMemory, isSchema, loadProperties, newMemory, pool, restore, restore, save, setEntityManager, setFactory, setSchema, shutdown, switchMemory, switchMemory
addActiveMemory, addListener, createMemoryFromTemplate, destroyMemory, find, findInstances, findInstances, findReferences, findReferencesBy, getActiveMemory, getBot, getListeners, getLongTermMemory, getProperties, getProperty, getShortTermMemory, removeListener, removeProperty, setActiveMemory, setBot, setLongTermMemory, setProperties, setProperty, setShortTermMemory, toString
public void initialize(java.util.Map<java.lang.String,java.lang.Object> properties)
initialize
in interface Memory
initialize
in class DatabaseMemory
public void createMemory(java.lang.String database, boolean schema)
createMemory
in interface Memory
createMemory
in class DatabaseMemory
public void restore(java.lang.String database, boolean isSchema, boolean recreateDatabase)
restore
in class DatabaseMemory
public void createMemoryFromTemplate(java.lang.String database, boolean isSchema, java.lang.String template, boolean templateIsSchema)
createMemoryFromTemplate
in interface Memory
createMemoryFromTemplate
in class DatabaseMemory
public void destroyMemory(java.lang.String database, boolean isSchema)
destroyMemory
in interface Memory
destroyMemory
in class DatabaseMemory