de.willuhn.jameica.hbci.server
Class AbstractDBSupportImpl

java.lang.Object
  extended by de.willuhn.jameica.hbci.server.AbstractDBSupportImpl
All Implemented Interfaces:
DBSupport, java.io.Serializable
Direct Known Subclasses:
DBSupportH2Impl, DBSupportMcKoiImpl, DBSupportMySqlImpl, DBSupportPostgreSQLImpl

public abstract class AbstractDBSupportImpl
extends java.lang.Object
implements DBSupport

Abstrakte Basisklasse fuer den Datenbank-Support.

See Also:
Serialized Form

Constructor Summary
AbstractDBSupportImpl()
           
 
Method Summary
 void checkConnection(java.sql.Connection conn)
          Prueft die Datenbankverbindung.
 void execute(java.sql.Connection conn, java.io.File sqlScript)
          Fuehrt ein SQL-Update-Script auf der Datenbank aus.
 int getTransactionIsolationLevel()
          Liefert das Transaction-Isolation-Level.
 void install()
          Richtet ggf.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.willuhn.jameica.hbci.rmi.DBSupport
getInsertWithID, getJdbcDriver, getJdbcPassword, getJdbcUrl, getJdbcUsername, getSQLTimestamp
 

Constructor Detail

AbstractDBSupportImpl

public AbstractDBSupportImpl()
Method Detail

execute

public void execute(java.sql.Connection conn,
                    java.io.File sqlScript)
             throws java.rmi.RemoteException
Description copied from interface: DBSupport
Fuehrt ein SQL-Update-Script auf der Datenbank aus.

Specified by:
execute in interface DBSupport
Parameters:
conn - die Datenbank-Connection.
sqlScript - das SQL-Script.
Throws:
java.rmi.RemoteException
See Also:
DBSupport.execute(java.sql.Connection, java.io.File)

install

public void install()
             throws java.rmi.RemoteException
Description copied from interface: DBSupport
Richtet ggf. die Datenbank ein.

Specified by:
install in interface DBSupport
Throws:
java.rmi.RemoteException
See Also:
DBSupport.install()

getTransactionIsolationLevel

public int getTransactionIsolationLevel()
                                 throws java.rmi.RemoteException
Description copied from interface: DBSupport
Liefert das Transaction-Isolation-Level.

Specified by:
getTransactionIsolationLevel in interface DBSupport
Returns:
das Transaction-Isolation-Level.
Throws:
java.rmi.RemoteException
See Also:
DBSupport.getTransactionIsolationLevel()

checkConnection

public void checkConnection(java.sql.Connection conn)
                     throws java.rmi.RemoteException
Description copied from interface: DBSupport
Prueft die Datenbankverbindung.

Specified by:
checkConnection in interface DBSupport
Parameters:
conn - die Datenbank-Connection.
Throws:
java.rmi.RemoteException - Wenn die Verbindung defekt ist und vom DB-Service neu erzeugt werden muss.
See Also:
DBSupport.checkConnection(java.sql.Connection)