public class DatabaseDescriptor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.skife.jdbi.v2.DBI |
dbiHandle |
protected DatabaseManager |
dbManager |
protected DatabaseTransition |
dbTransition |
protected static org.slf4j.Logger |
logger |
protected java.util.List<TableRelation> |
nmRelations |
protected PersistentDomain |
persistentDomain |
protected java.util.Map<java.lang.String,TableDescriptor> |
tablesByClass |
protected java.util.Map<java.lang.String,TableDescriptor> |
tablesByDBName |
protected SQLToJavaTypeMap |
typeMap |
Constructor and Description |
---|
DatabaseDescriptor(PersistentDomain persistentDomain,
DatabaseManager dbManager)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
createOrUpdateSchema()
Create the database schema
|
java.util.Collection<TableDescriptor> |
getDatabaseTables() |
org.skife.jdbi.v2.DBI |
getDbiHandle() |
DatabaseTransition |
getDbTransitionManager() |
PersistentDomain |
getPersistentDomain() |
java.lang.String |
getSchemaCreationSQL()
Create SQL for schema generation
|
TableDescriptor |
getTableDescriptor(java.lang.String persistentType) |
java.util.Map<java.lang.String,TableDescriptor> |
getTablesByClassname() |
SQLToJavaTypeMap |
getTypeMap() |
void |
initRDBMS()
Generate SQL schema descriptors from persistent service domains types
|
void |
setDbiHandle(org.skife.jdbi.v2.DBI dbiHandle) |
protected static org.slf4j.Logger logger
protected java.util.Map<java.lang.String,TableDescriptor> tablesByDBName
protected java.util.Map<java.lang.String,TableDescriptor> tablesByClass
protected java.util.List<TableRelation> nmRelations
protected PersistentDomain persistentDomain
protected DatabaseTransition dbTransition
protected DatabaseManager dbManager
protected org.skife.jdbi.v2.DBI dbiHandle
protected SQLToJavaTypeMap typeMap
public DatabaseDescriptor(PersistentDomain persistentDomain, DatabaseManager dbManager)
persistentDomain
- dbManager
- public java.util.Map<java.lang.String,TableDescriptor> getTablesByClassname()
public java.util.Collection<TableDescriptor> getDatabaseTables()
public SQLToJavaTypeMap getTypeMap()
public TableDescriptor getTableDescriptor(java.lang.String persistentType)
persistentType
- public PersistentDomain getPersistentDomain()
public org.skife.jdbi.v2.DBI getDbiHandle()
public void setDbiHandle(org.skife.jdbi.v2.DBI dbiHandle)
dbiHandle
- the dbiHandle to setpublic DatabaseTransition getDbTransitionManager()
public void initRDBMS() throws org.resoa.exception.PersistenceException
org.resoa.exception.PersistenceException
public java.lang.String getSchemaCreationSQL() throws org.resoa.exception.PersistenceException
org.resoa.exception.PersistenceException
public void createOrUpdateSchema() throws org.resoa.exception.PersistenceException
org.resoa.exception.PersistenceException
Copyright © 2005-2014 The Resoa Project, resoa.org.