public class DbSqlSessionFactory extends Object implements SessionFactory
Constructor and Description |
---|
DbSqlSessionFactory() |
protected static final Map<String,Map<String,String>> databaseSpecificStatements
public static final Map<String,String> databaseSpecificLimitBeforeStatements
public static final Map<String,String> databaseSpecificLimitAfterStatements
public static final Map<String,String> databaseSpecificLimitBetweenStatements
public static final Map<String,String> databaseSpecificOrderByStatements
public static final Map<String,String> databaseSpecificLimitBeforeNativeQueryStatements
protected String databaseType
protected String databaseTablePrefix
protected String databaseSchema
protected org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory
protected IdGenerator idGenerator
protected boolean isDbIdentityUsed
protected boolean isDbHistoryUsed
public Class<?> getSessionType()
getSessionType
in interface SessionFactory
public Session openSession()
openSession
in interface SessionFactory
public String getInsertStatement(PersistentObject object)
public String getUpdateStatement(PersistentObject object)
protected static void addDatabaseSpecificStatement(String databaseType, String activitiStatement, String ibatisStatement)
public void setDatabaseType(String databaseType)
public org.apache.ibatis.session.SqlSessionFactory getSqlSessionFactory()
public void setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory sqlSessionFactory)
public IdGenerator getIdGenerator()
public void setIdGenerator(IdGenerator idGenerator)
public String getDatabaseType()
public boolean isDbIdentityUsed()
public void setDbIdentityUsed(boolean isDbIdentityUsed)
public boolean isDbHistoryUsed()
public void setDbHistoryUsed(boolean isDbHistoryUsed)
public void setDatabaseTablePrefix(String databaseTablePrefix)
public String getDatabaseTablePrefix()
public String getDatabaseSchema()
public void setDatabaseSchema(String databaseSchema)
Copyright © 2015. All rights reserved.