public class AndroidSQLSessionFactory
extends AbstractSQLSessionFactoryBase
| Modifier and Type | Field and Description |
|---|---|
protected android.content.Context |
context |
| Constructor and Description |
|---|
AndroidSQLSessionFactory(android.content.Context context,
EntityCacheManager entityCacheManager,
javax.sql.DataSource dataSource,
SessionFactoryConfiguration configuration) |
AndroidSQLSessionFactory(EntityCacheManager entityCacheManager,
javax.sql.DataSource dataSource,
SessionFactoryConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterGenerateDDL(SQLSession session) |
void |
beforeGenerateDDL(SQLSession session) |
protected CurrentSQLSessionContext |
buildCurrentSessionContext() |
void |
generateDDL() |
android.content.Context |
getContext() |
SQLSession |
getCurrentSession() |
protected TransactionFactory |
getTransactionFactory() |
SQLSession |
openSession() |
SQLSession |
openSession(java.sql.Connection connection) |
void |
setContext(android.content.Context context) |
public AndroidSQLSessionFactory(android.content.Context context,
EntityCacheManager entityCacheManager,
javax.sql.DataSource dataSource,
SessionFactoryConfiguration configuration)
throws java.lang.Exception
java.lang.Exceptionpublic AndroidSQLSessionFactory(EntityCacheManager entityCacheManager,
javax.sql.DataSource dataSource,
SessionFactoryConfiguration configuration)
throws java.lang.Exception
java.lang.Exceptionpublic void generateDDL()
throws java.lang.Exception
java.lang.Exceptionpublic SQLSession getCurrentSession()
throws java.lang.Exception
java.lang.Exceptionpublic android.content.Context getContext()
public void setContext(android.content.Context context)
public void beforeGenerateDDL(SQLSession session)
throws java.lang.Exception
java.lang.Exceptionpublic void afterGenerateDDL(SQLSession session)
throws java.lang.Exception
java.lang.Exceptionpublic SQLSession openSession()
throws java.lang.Exception
java.lang.Exceptionpublic SQLSession openSession(java.sql.Connection connection)
throws java.lang.Exception
java.lang.Exceptionprotected TransactionFactory getTransactionFactory()
protected CurrentSQLSessionContext buildCurrentSessionContext()
throws java.lang.Exception
java.lang.Exception