Implementation of PRePTagDatabase

    A superclass for all tags which use a database connection and have to execute a SQL statement. It creates a store object which represents the result. PReP works with a Connectionpool - for more information about this and also about how to use and change it have a look at the package itself (com.delec.global.dbms).

    Constructor:

    PRePTagDatabase()
    default constructor PRePTagDatabase(String name)
    sets a name

    Methods:

    checkSQLServe(Session, SQLServe)
    returns a SQLServe - if it was null before, it creates a new one and puts it in the session

    executeSQL(String SQLStatement, Session session)
    calls the execStmtStore() method in SQLServe and creates a Store object with all the results in it which will be returned.

    executeUPDATE(String SQLStatement, Session session)
    calls the execUpdate() method in SQLServe. It also returns a Store object with the results.

    handleException(Exception)
    if the Exception damages the connection object, it will call the recoverConnection() method in SQLServe. Otherwise it creates a new PRePTagException and add it to the ExceptionList in the Session object

Back