Class PersistenceService
- java.lang.Object
-
- org.neotropic.kuwaiba.core.persistence.PersistenceService
-
@Service public class PersistenceService extends Object
This service manages the life cycle of the connection to the database and the rest of services that connect to the database.- Author:
- Charles Edward Bedon Cortazar <charles.bedon@kuwaiba.org>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PersistenceService.EXECUTION_STATE
-
Constructor Summary
Constructors Constructor Description PersistenceService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationEntityManager
getAem()
Properties
getApplicationProperties()
BusinessEntityManager
getBem()
Properties
getBusinessProperties()
ConnectionManager
getConnectionManager()
Properties
getConnectionProperties()
Properties
getGeneralProperties()
MetadataEntityManager
getMem()
Properties
getMetadataProperties()
PersistenceService.EXECUTION_STATE
getState()
void
restart()
void
setApplicationProperties(Properties applicationProperties)
void
setBusinessProperties(Properties businessProperties)
void
setConnectionProperties(Properties connectionProperties)
void
setGeneralProperties(Properties generalProperties)
void
setMetadataProperties(Properties metadataProperties)
void
start()
void
stop()
-
-
-
Method Detail
-
getMetadataProperties
public Properties getMetadataProperties()
-
setMetadataProperties
public void setMetadataProperties(Properties metadataProperties)
-
getApplicationProperties
public Properties getApplicationProperties()
-
setApplicationProperties
public void setApplicationProperties(Properties applicationProperties)
-
getBusinessProperties
public Properties getBusinessProperties()
-
setBusinessProperties
public void setBusinessProperties(Properties businessProperties)
-
getGeneralProperties
public Properties getGeneralProperties()
-
setGeneralProperties
public void setGeneralProperties(Properties generalProperties)
-
getConnectionProperties
public Properties getConnectionProperties()
-
setConnectionProperties
public void setConnectionProperties(Properties connectionProperties)
-
getConnectionManager
public ConnectionManager getConnectionManager()
-
getMem
public MetadataEntityManager getMem()
-
getAem
public ApplicationEntityManager getAem()
-
getBem
public BusinessEntityManager getBem()
-
start
public void start() throws IllegalStateException
- Throws:
IllegalStateException
-
stop
public void stop() throws IllegalStateException
- Throws:
IllegalStateException
-
restart
public void restart()
-
getState
public PersistenceService.EXECUTION_STATE getState()
-
-