public interface TopiaApplicationContext<K extends TopiaPersistenceContext> extends TopiaListenableSupport, TopiaServiceSupport, Closeable
This is the main entry point for ToPIA. This interface represents the root context of an application.
Most of the time, there is only one instance of this context during the entire lifecycle of a application.
This contract provides facility to :
TopiaPersistenceContext;This contract has an abstract implementation
(AbstractTopiaApplicationContext) which is itself extended by a
generated AbstractXxxTopiaApplicationContext (where Xxx is the project name), itself
extended by XxxTopiaApplicationContext.
The full hierarchy is :
TopiaApplicationContext (this contract)
\--AbstractTopiaApplicationContext
\--AbstractXxxTopiaApplicationContext (generated)
\--XxxTopiaApplicationContext (generated)
(where Xxx is the project name)
Created on 12/20/13.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Method to call when the application is going for shutdown.
|
void |
createSchema() |
void |
dropSchema() |
TopiaConfiguration |
getConfiguration() |
<T extends TopiaEntity> |
getContractClass(Class<T> klass) |
Class<? extends TopiaEntity>[] |
getContractClasses() |
<T extends TopiaEntity> |
getImplementationClass(Class<T> klass) |
String |
getModelName() |
String |
getModelVersion() |
List<Class<?>> |
getPersistenceClasses() |
String |
getSchemaName()
Deprecated.
since 3.0.1, prefer use
getSchemaNames(). |
com.google.common.collect.ImmutableSet<String> |
getSchemaNames() |
void |
initSchema() |
boolean |
isClosed() |
boolean |
isOpened() |
boolean |
isSchemaEmpty() |
boolean |
isTableExists(Class<?> clazz) |
K |
newPersistenceContext()
Creates a new instance of XxxTopiaPersistenceContext (where
Xxx is the project name). |
void |
showCreateSchema() |
void |
updateSchema() |
addPropertyChangeListener, addTopiaEntitiesVetoable, addTopiaEntityListener, addTopiaEntityListener, addTopiaEntityVetoable, addTopiaEntityVetoable, addTopiaSchemaListener, addTopiaTransactionListener, addTopiaTransactionVetoable, removePropertyChangeListener, removeTopiaEntitiesVetoable, removeTopiaEntityListener, removeTopiaEntityListener, removeTopiaEntityVetoable, removeTopiaEntityVetoable, removeTopiaSchemaListener, removeTopiaTransactionListener, removeTopiaTransactionVetoablegetServices, getServicesK newPersistenceContext()
Xxx is the project name). This is the
method to use in order to start a new transaction.TopiaPersistenceContextTopiaPersistenceContextString getModelVersion()
String getModelName()
<T extends TopiaEntity> Class<T> getContractClass(Class<T> klass)
<T extends TopiaEntity> Class<T> getImplementationClass(Class<T> klass)
Class<? extends TopiaEntity>[] getContractClasses()
TopiaConfiguration getConfiguration()
void initSchema()
boolean isSchemaEmpty()
boolean isTableExists(Class<?> clazz)
@Deprecated String getSchemaName()
getSchemaNames().com.google.common.collect.ImmutableSet<String> getSchemaNames()
void createSchema()
void showCreateSchema()
void updateSchema()
void dropSchema()
boolean isOpened()
isClosed())boolean isClosed()
void close()
TopiaPersistenceContextclose in interface AutoCloseableclose in interface CloseableCopyright © 2004–2016 CodeLutin. All rights reserved.