java.lang.Object
net.odoframework.container.sql.SimpleDataSource
net.odoframework.container.sql.TxDataSource
- All Implemented Interfaces:
Wrapper,CommonDataSource,DataSource,TxResource
@Singleton public class TxDataSource extends SimpleDataSource implements TxResource
-
Field Summary
Fields inherited from class net.odoframework.container.sql.SimpleDataSource
DRIVER, URL -
Constructor Summary
Constructors Constructor Description TxDataSource() -
Method Summary
Modifier and Type Method Description voidbegin(Transaction tx)voidcommit(Transaction tx)StringgetName()voidrollback(Transaction tx)Methods inherited from class net.odoframework.container.sql.SimpleDataSource
create, getConnection, getConnection, getLoginTimeout, getLogWriter, getParentLogger, init, isInitialised, isSuppressClose, isWrapperFor, setLoginTimeout, setLogWriter, setSuppressClose, shutdown, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilderMethods inherited from interface javax.sql.DataSource
createConnectionBuilder
-
Constructor Details
-
TxDataSource
public TxDataSource()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceTxResource
-
begin
- Specified by:
beginin interfaceTxResource
-
commit
- Specified by:
commitin interfaceTxResource
-
rollback
- Specified by:
rollbackin interfaceTxResource
-