public class MimosaSessionTemplate extends AbstractAuxiliaryTemplate implements SessionTemplate
| 构造器和说明 |
|---|
MimosaSessionTemplate() |
MimosaSessionTemplate(SessionFactory sessionFactory) |
getCacheClient, getCacheClient, getMonitoring, getMonitoring, getMQProducer, getMQProducer, getRPCObject, getRPCObject, getSearchEngineClient, getSearchEngineClient, getSwitch, getSwitch, notifyChangedSwitch, notifyChangedSwitch, registerMQConsumer, registerMQConsumer, registerRPCObject, registerRPCObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCacheClient, getCacheClient, getMonitoring, getMonitoring, getMQProducer, getMQProducer, getRPCObject, getRPCObject, getSearchEngineClient, getSearchEngineClient, getSwitch, getSwitch, notifyChangedSwitch, notifyChangedSwitch, registerMQConsumer, registerMQConsumer, registerRPCObject, registerRPCObjectpublic MimosaSessionTemplate()
public MimosaSessionTemplate(SessionFactory sessionFactory)
public SessionFactory getSessionFactory()
public void setSessionFactory(SessionFactory sessionFactory)
public ModelObject save(ModelObject obj)
public ModelObject saveAndUpdate(ModelObject obj)
saveAndUpdate 在接口中 Sessionpublic void save(List<ModelObject> objects)
public void update(ModelObject obj)
public void update(List<ModelObject> objects)
public void delete(ModelObject obj)
public void delete(List<ModelObject> objects)
public void delete(Class c, Serializable id)
public ModelObject get(Class c, Serializable id)
public ModelObject get(Query query)
public List<ModelObject> list(Query query)
public Paging<ModelObject> paging(Query query)
public ZipperTable<ModelObject> getZipperTable(Class c)
getZipperTable 在接口中 Sessionpublic AutoResult calculate(Function function)
public AutoResult getAutonomously(SQLAutonomously autonomously) throws Exception
SessiongetAutonomously 在接口中 SessionExceptionpublic AutoResult getAutonomously(TAutonomously autonomously) throws Exception
getAutonomously 在接口中 SessionExceptionpublic List<DataSourceTableName> getDataSourceNames(Class c)
getDataSourceNames 在接口中 Sessionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionpublic Transaction beginTransaction() throws TransactionException
beginTransaction 在接口中 TransactionTemplateTransactionExceptionpublic Transaction createTransaction()
createTransaction 在接口中 TransactionTemplatepublic <T> T execute(TransactionCallback<T> callback) throws TransactionException
execute 在接口中 TransactionTemplateTransactionExceptionpublic <T> T execute(TransactionCallback<T> callback, TransactionPropagationType pt) throws TransactionException
execute 在接口中 TransactionTemplateTransactionExceptionpublic <T> T execute(TransactionCallback<T> callback, TransactionIsolationType it) throws TransactionException
execute 在接口中 TransactionTemplateTransactionExceptionpublic <T> T execute(TransactionCallback<T> callback, TransactionPropagationType pt, TransactionIsolationType it) throws TransactionException
execute 在接口中 TransactionTemplateTransactionExceptionCopyright © 2020. All rights reserved.