de.willuhn.datasource.rmi.DBService
, de.willuhn.datasource.Service
, HBCIDBService
, java.io.Serializable
, java.rmi.Remote
public class HBCIDBServiceImpl extends de.willuhn.datasource.db.DBServiceImpl implements HBCIDBService
SETTINGS
Constructor | Description |
---|---|
HBCIDBServiceImpl() |
|
HBCIDBServiceImpl(java.lang.String driverClass) |
Konstruktor mit expliziter Angabe des Treibers.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
checkConnection(java.sql.Connection conn) |
|
void |
checkConsistency() |
Checkt die Konsistenz der Datenbank und fuehrt bei Bedarf Updates durch.
|
int |
executeUpdate(java.lang.String query,
java.lang.String... params) |
Fuehrt ein Update/Delete-Statement durch.
|
protected boolean |
getAutoCommit() |
|
protected java.sql.Connection |
getConnection() |
|
DBSupport |
getDriver() |
Liefert den verwendeten Treiber.
|
protected boolean |
getInsertWithID() |
|
protected java.lang.String |
getJdbcDriver() |
|
protected java.lang.String |
getJdbcPassword() |
|
protected java.lang.String |
getJdbcUrl() |
|
protected java.lang.String |
getJdbcUsername() |
|
java.lang.String |
getName() |
|
java.lang.String |
getSQLTimestamp(java.lang.String content) |
Liefert den Namen der SQL-Funktion, mit der die Datenbank aus einem DATE-Feld einen UNIX-Timestamp macht.
|
protected int |
getTransactionIsolationLevel() |
|
void |
install() |
Initialisiert/erzeugt die Datenbank.
|
createList, createObject, execute
createList, createObject, execute, isStartable, isStarted, setClassFinder, setClassloader, start, stop
finalize, getClass, notify, notifyAll, wait, wait, wait
public HBCIDBServiceImpl() throws java.rmi.RemoteException
java.rmi.RemoteException
public HBCIDBServiceImpl(java.lang.String driverClass) throws java.rmi.RemoteException
driverClass
- der zu verwendende Treiber.java.rmi.RemoteException
public java.lang.String getName() throws java.rmi.RemoteException
getName
in interface de.willuhn.datasource.Service
getName
in class de.willuhn.datasource.db.DBServiceImpl
java.rmi.RemoteException
Service.getName()
protected boolean getAutoCommit() throws java.rmi.RemoteException
getAutoCommit
in class de.willuhn.datasource.db.DBServiceImpl
java.rmi.RemoteException
DBServiceImpl.getAutoCommit()
protected java.lang.String getJdbcDriver() throws java.rmi.RemoteException
getJdbcDriver
in class de.willuhn.datasource.db.DBServiceImpl
java.rmi.RemoteException
DBServiceImpl.getJdbcDriver()
protected java.lang.String getJdbcPassword() throws java.rmi.RemoteException
getJdbcPassword
in class de.willuhn.datasource.db.DBServiceImpl
java.rmi.RemoteException
DBServiceImpl.getJdbcPassword()
protected java.lang.String getJdbcUrl() throws java.rmi.RemoteException
getJdbcUrl
in class de.willuhn.datasource.db.DBServiceImpl
java.rmi.RemoteException
DBServiceImpl.getJdbcUrl()
protected java.lang.String getJdbcUsername() throws java.rmi.RemoteException
getJdbcUsername
in class de.willuhn.datasource.db.DBServiceImpl
java.rmi.RemoteException
DBServiceImpl.getJdbcUsername()
public void checkConsistency() throws java.rmi.RemoteException, de.willuhn.util.ApplicationException
HBCIDBService
checkConsistency
in interface HBCIDBService
java.rmi.RemoteException
- Wenn es beim Pruefen der Datenbank-Konsistenz zu einem Fehler kam.de.willuhn.util.ApplicationException
- wenn die Datenbank-Konsistenz nicht gewaehrleistet ist.HBCIDBService.checkConsistency()
protected java.sql.Connection getConnection() throws java.rmi.RemoteException
getConnection
in class de.willuhn.datasource.db.DBServiceImpl
java.rmi.RemoteException
DBServiceImpl.getConnection()
public int executeUpdate(java.lang.String query, java.lang.String... params) throws java.rmi.RemoteException
HBCIDBService
executeUpdate
in interface HBCIDBService
query
- das Query.params
- die Parameter.java.rmi.RemoteException
HBCIDBService.executeUpdate(java.lang.String, java.lang.String[])
public void install() throws java.rmi.RemoteException
HBCIDBService
install
in interface HBCIDBService
java.rmi.RemoteException
- Wenn beim Initialisieren ein Fehler auftrat.HBCIDBService.install()
public java.lang.String getSQLTimestamp(java.lang.String content) throws java.rmi.RemoteException
HBCIDBService
getSQLTimestamp
in interface HBCIDBService
content
- der Feld-Name.java.rmi.RemoteException
HBCIDBService.getSQLTimestamp(java.lang.String)
protected boolean getInsertWithID() throws java.rmi.RemoteException
getInsertWithID
in class de.willuhn.datasource.db.DBServiceImpl
java.rmi.RemoteException
DBServiceImpl.getInsertWithID()
protected void checkConnection(java.sql.Connection conn) throws java.sql.SQLException
checkConnection
in class de.willuhn.datasource.db.DBServiceImpl
java.sql.SQLException
DBServiceImpl.checkConnection(java.sql.Connection)
protected int getTransactionIsolationLevel() throws java.rmi.RemoteException
getTransactionIsolationLevel
in class de.willuhn.datasource.db.DBServiceImpl
java.rmi.RemoteException
DBServiceImpl.getTransactionIsolationLevel()
public DBSupport getDriver() throws java.rmi.RemoteException
HBCIDBService
getDriver
in interface HBCIDBService
java.rmi.RemoteException
HBCIDBService.getDriver()