|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPersistenceConfigurationFactory
Method Summary | |
---|---|
IPersistenceConfiguration |
createConfiguration()
Creates a new persistence configuration targeted at the default database (any JDBC compliant database). |
IPersistenceConfiguration |
createConfiguration(Database database)
Creates a new persistence configuration. |
IPersistenceConfiguration |
getConfiguration(java.lang.Object configurationKey)
Returns the IPersistenceConfiguration stored by the given key. |
IPersistenceConfiguration |
getOrCreateConfiguration(java.lang.Object configurationKey)
Returns the IPersistenceConfiguration instance stored by
the given key. |
IPersistenceConfiguration |
getOrCreateConfiguration(java.lang.Object configurationKey,
Database database)
Returns the IPersistenceConfiguration instance stored by
the given key. |
void |
removeConfiguration(java.lang.Object configurationKey)
Removes the IPersistenceConfiguration stored by the given key. |
void |
storeConfiguration(java.lang.Object configurationKey,
IPersistenceConfiguration configuration)
Stores the IPersistenceConfiguration by given key. |
Method Detail |
---|
IPersistenceConfiguration createConfiguration()
IPersistenceConfiguration createConfiguration(Database database)
database
- The database is the database the configuration should be targeted at.
IPersistenceConfiguration getOrCreateConfiguration(java.lang.Object configurationKey)
IPersistenceConfiguration
instance stored by
the given key. If none is stored a new will be created and stored by
the key for later use.
configurationKey
- The key of the persistence configuration to get,
or to store it by if a new instance is created.
IPersistenceConfiguration getOrCreateConfiguration(java.lang.Object configurationKey, Database database)
IPersistenceConfiguration
instance stored by
the given key. If none is stored a new will be created and stored by
the key for later use.
configurationKey
- The key of the persistence configuration to get,
or to store it by if a new instance is created.database
- The database to target this configuration for.
IPersistenceConfiguration getConfiguration(java.lang.Object configurationKey)
IPersistenceConfiguration
stored by the given key.
configurationKey
- The key of the configuration instance to get.
IPersistenceConfiguration
stored by the given key.void storeConfiguration(java.lang.Object configurationKey, IPersistenceConfiguration configuration)
IPersistenceConfiguration
by given key.
configurationKey
- The key to store the configuration instance by.configuration
- The configuration to store.void removeConfiguration(java.lang.Object configurationKey)
IPersistenceConfiguration
stored by the given key.
configurationKey
- The key of the persistence configuration to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |