com.infoscape.proteus.db
Class DBConnection
java.lang.Object
|
+--com.infoscape.proteus.db.DBConnection
- All Implemented Interfaces:
- Connection, Transactional
- public class DBConnection
- extends java.lang.Object
- implements Connection, Transactional
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBConnection
public DBConnection(org.jdom.Element elt)
connect
public void connect()
throws java.lang.Exception
- Specified by:
connect in interface Connection
- Throws:
java.lang.Exception
prepareStatement
protected java.sql.PreparedStatement prepareStatement(java.lang.String sql)
throws java.lang.Exception
java.lang.Exception
createStatement
protected java.sql.Statement createStatement()
throws java.lang.Exception
java.lang.Exception
disconnect
public void disconnect()
throws java.lang.Exception
- Specified by:
disconnect in interface Connection
- Throws:
java.lang.Exception
setSyncPoint
public void setSyncPoint(boolean on)
throws java.lang.Exception
- Specified by:
setSyncPoint in interface Transactional
- Parameters:
on -
- Throws:
java.lang.Exception
commit
public void commit()
throws java.lang.Exception
- Specified by:
commit in interface Transactional
- Throws:
java.lang.Exception
rollback
public void rollback()
throws java.lang.Exception
- Specified by:
rollback in interface Transactional
- Throws:
java.lang.Exception