org.databene.platform.db
Class ConnectionHolder
java.lang.Object
org.databene.platform.db.ConnectionHolder
- All Implemented Interfaces:
- java.io.Closeable
public class ConnectionHolder
- extends java.lang.Object
- implements java.io.Closeable
Wraps a database connection and provides access functionality.
Created: 07.01.2013 08:28:36
- Since:
- 0.8.0
- Author:
- Volker Bergmann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
insertStatements
public java.util.Map<ComplexTypeDescriptor,java.sql.PreparedStatement> insertStatements
updateStatements
public java.util.Map<ComplexTypeDescriptor,java.sql.PreparedStatement> updateStatements
selectByPKStatements
public java.util.Map<ComplexTypeDescriptor,java.sql.PreparedStatement> selectByPKStatements
ConnectionHolder
public ConnectionHolder(DBSystem db)
getConnection
public java.sql.Connection getConnection()
commit
public void commit()
getSelectByPKStatement
public java.sql.PreparedStatement getSelectByPKStatement(ComplexTypeDescriptor descriptor)
getStatement
public java.sql.PreparedStatement getStatement(ComplexTypeDescriptor descriptor,
boolean insert,
java.util.List<org.databene.jdbacl.ColumnInfo> columnInfos)
close
public void close()
- Specified by:
close
in interface java.io.Closeable
Copyright © 2013. All Rights Reserved.