ojb.broker.accesslayer
Class StatementsForClass

java.lang.Object
  |
  +--ojb.broker.accesslayer.StatementsForClass

class StatementsForClass
extends java.lang.Object

holds Statements that are used for persistence operations on a given class. * @author: Thomas Mahler


Field Summary
static int CONCUR
          sets the updatabe feature of JDBC ResultSets.
static boolean ESCAPEPROCESSING
          sets the escape processing mode
 boolean FORCEJDBC1_0
          force use of JDBC 1.0 statement creation
static int TYPE
          sets the scrollmode of JDBC ResultSets.
 
Constructor Summary
StatementsForClass(ClassDescriptor mif, PersistenceBrokerImpl broker)
          StatementsForClass constructor.
 
Method Summary
 java.sql.PreparedStatement getDeleteStmt()
          returns the DELETE Statement used for clazz
 java.sql.Statement getGenericStmt()
          returns a generic unprepared Statement used for clazz
 java.sql.PreparedStatement getInsertStmt()
          returns the INSERT Statement used for clazz
 java.sql.PreparedStatement getPreparedStmt(java.lang.String sql)
          returns a prepared Statement used for clazz
 java.sql.PreparedStatement getSelectByPKStmt()
          returns the SELECT Statement used for clazz
 java.sql.PreparedStatement getUpdateStmt()
          returns the UPDATE Statement used for clazz
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static int TYPE
sets the scrollmode of JDBC ResultSets. OJB needs Forward_only only, but * for certain RDBMS and JDBC drivers other modes may be necessary.


CONCUR

public static int CONCUR
sets the updatabe feature of JDBC ResultSets. OJB does not * need updatable ResultSets, but for certain RDBMS or JDBC drivers * it could be necessary to change this value.


ESCAPEPROCESSING

public static boolean ESCAPEPROCESSING
sets the escape processing mode


FORCEJDBC1_0

public boolean FORCEJDBC1_0
force use of JDBC 1.0 statement creation

Constructor Detail

StatementsForClass

public StatementsForClass(ClassDescriptor mif,
                          PersistenceBrokerImpl broker)
                   throws PersistenceBrokerException
StatementsForClass constructor.

Method Detail

getDeleteStmt

public java.sql.PreparedStatement getDeleteStmt()
                                         throws java.sql.SQLException
returns the DELETE Statement used for clazz. * @return java.sql.PreparedStatement

java.sql.SQLException

getGenericStmt

public java.sql.Statement getGenericStmt()
                                  throws PersistenceBrokerSQLException
returns a generic unprepared Statement used for clazz. * @return java.sql.Statement

PersistenceBrokerSQLException

getInsertStmt

public java.sql.PreparedStatement getInsertStmt()
                                         throws java.sql.SQLException
returns the INSERT Statement used for clazz. * @return java.sql.PreparedStatement

java.sql.SQLException

getPreparedStmt

public java.sql.PreparedStatement getPreparedStmt(java.lang.String sql)
                                           throws PersistenceBrokerSQLException
returns a prepared Statement used for clazz. * @return java.sql.Statement

PersistenceBrokerSQLException

getSelectByPKStmt

public java.sql.PreparedStatement getSelectByPKStmt()
                                             throws java.sql.SQLException
returns the SELECT Statement used for clazz. * @return java.sql.PreparedStatement

java.sql.SQLException

getUpdateStmt

public java.sql.PreparedStatement getUpdateStmt()
                                         throws java.sql.SQLException
returns the UPDATE Statement used for clazz. * @return java.sql.PreparedStatement

java.sql.SQLException


Authors: Thomas Mahler and others. (C) 2000, 2001.
All rights reserved. Published under the Gnu Public License.
http://objectbridge.sourceforge.net
Version: 0.8.375, 2002-04-04