de.pannenleiter.db.brand
Class InstantDB

java.lang.Object
  |
  +--de.pannenleiter.db.brand.InstantDB

public class InstantDB
extends java.lang.Object
implements DBBrand

InstantDB -- InstantDB stuff


Field Summary
protected  java.sql.Connection con
           
protected  java.sql.Statement stmt
           
 
Constructor Summary
InstantDB()
           
 
Method Summary
 java.lang.String attrTableName(java.lang.String table)
           
 void createDocument(java.lang.String name, boolean recreate)
           
protected  void finalize()
           
 boolean isAlive()
           
 void lockDocument(java.lang.String table)
           
 int newIdPost(java.lang.String document, char type)
           
 int newIdPre(java.lang.String document, char type)
           
 java.lang.String quoteName(java.lang.String name)
           
 void setConnection(java.sql.Connection con)
           
 void unlockDocument(java.lang.String table)
           
 java.lang.String versionTableName(java.lang.String table)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

con

protected java.sql.Connection con

stmt

protected java.sql.Statement stmt
Constructor Detail

InstantDB

public InstantDB()
Method Detail

setConnection

public void setConnection(java.sql.Connection con)
Specified by:
setConnection in interface DBBrand

newIdPre

public int newIdPre(java.lang.String document,
                    char type)
             throws java.lang.Exception
Specified by:
newIdPre in interface DBBrand

newIdPost

public int newIdPost(java.lang.String document,
                     char type)
              throws java.lang.Exception
Specified by:
newIdPost in interface DBBrand

createDocument

public void createDocument(java.lang.String name,
                           boolean recreate)
                    throws java.lang.Exception
Specified by:
createDocument in interface DBBrand

isAlive

public boolean isAlive()
Specified by:
isAlive in interface DBBrand

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object

lockDocument

public void lockDocument(java.lang.String table)
                  throws java.lang.Exception
Specified by:
lockDocument in interface DBBrand

unlockDocument

public void unlockDocument(java.lang.String table)
                    throws java.lang.Exception
Specified by:
unlockDocument in interface DBBrand

quoteName

public java.lang.String quoteName(java.lang.String name)
Specified by:
quoteName in interface DBBrand

attrTableName

public java.lang.String attrTableName(java.lang.String table)
Specified by:
attrTableName in interface DBBrand

versionTableName

public java.lang.String versionTableName(java.lang.String table)
Specified by:
versionTableName in interface DBBrand