public interface TopiaApplicationContext<K extends TopiaPersistenceContext> extends TopiaListenableSupport, TopiaServiceSupport
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 |
closeContext()
Method to call when the application is going for shutdown.
|
void |
createSchema() |
void |
dropSchema() |
com.google.common.collect.ImmutableMap<String,String> |
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() |
boolean |
isClosed() |
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()
boolean isSchemaEmpty()
boolean isTableExists(Class<?> clazz)
String getSchemaName()
void createSchema()
void showCreateSchema()
void updateSchema()
void dropSchema()
void closeContext()
throws TopiaException
TopiaPersistenceContextTopiaExceptionboolean isClosed()
Copyright © 2004–2014 CodeLutin. All rights reserved.