org.apache.ojb.broker.accesslayer
Class SQLCachingStatementsForClass

java.lang.Object
  extended byorg.apache.ojb.broker.accesslayer.StatementsForClassImpl
      extended byorg.apache.ojb.broker.accesslayer.SQLCachingStatementsForClass
All Implemented Interfaces:
StatementsForClassIF

public class SQLCachingStatementsForClass
extends StatementsForClassImpl

Version:
$Id: SQLCachingStatementsForClass.java,v 1.12 2004/04/04 23:53:31 brianm Exp $

Constructor Summary
SQLCachingStatementsForClass(JdbcConnectionDescriptor jcd, ClassDescriptor mif)
           
 
Method Summary
 java.sql.PreparedStatement getDeleteStmt(java.sql.Connection con)
          returns the DELETE Statement used for clazz.
 java.sql.PreparedStatement getInsertStmt(java.sql.Connection con)
          returns the INSERT Statement used for clazz.
 java.sql.PreparedStatement getSelectByPKStmt(java.sql.Connection con)
          returns the SELECT Statement used for clazz.
 java.sql.PreparedStatement getUpdateStmt(java.sql.Connection con)
          returns the UPDATE Statement used for clazz.
 
Methods inherited from class org.apache.ojb.broker.accesslayer.StatementsForClassImpl
getGenericStmt, getPreparedStmt, isCached
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLCachingStatementsForClass

public SQLCachingStatementsForClass(JdbcConnectionDescriptor jcd,
                                    ClassDescriptor mif)
Method Detail

getDeleteStmt

public java.sql.PreparedStatement getDeleteStmt(java.sql.Connection con)
                                         throws java.sql.SQLException
Description copied from interface: StatementsForClassIF
returns the DELETE Statement used for clazz.

Specified by:
getDeleteStmt in interface StatementsForClassIF
Overrides:
getDeleteStmt in class StatementsForClassImpl
Throws:
java.sql.SQLException

getInsertStmt

public java.sql.PreparedStatement getInsertStmt(java.sql.Connection con)
                                         throws java.sql.SQLException
Description copied from interface: StatementsForClassIF
returns the INSERT Statement used for clazz.

Specified by:
getInsertStmt in interface StatementsForClassIF
Overrides:
getInsertStmt in class StatementsForClassImpl
Throws:
java.sql.SQLException

getSelectByPKStmt

public java.sql.PreparedStatement getSelectByPKStmt(java.sql.Connection con)
                                             throws java.sql.SQLException
Description copied from interface: StatementsForClassIF
returns the SELECT Statement used for clazz.

Specified by:
getSelectByPKStmt in interface StatementsForClassIF
Overrides:
getSelectByPKStmt in class StatementsForClassImpl
Throws:
java.sql.SQLException

getUpdateStmt

public java.sql.PreparedStatement getUpdateStmt(java.sql.Connection con)
                                         throws java.sql.SQLException
Description copied from interface: StatementsForClassIF
returns the UPDATE Statement used for clazz.

Specified by:
getUpdateStmt in interface StatementsForClassIF
Overrides:
getUpdateStmt in class StatementsForClassImpl
Throws:
java.sql.SQLException


(C) 2002 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.3, 2005-04-2