org.apache.cayenne.dba.db2
Class DB2ActionBuilder

java.lang.Object
  extended by org.apache.cayenne.dba.JdbcActionBuilder
      extended by org.apache.cayenne.dba.db2.DB2ActionBuilder
All Implemented Interfaces:
SQLActionVisitor

public class DB2ActionBuilder
extends JdbcActionBuilder

Author:
Andrei Adamchik

Field Summary
 
Fields inherited from class org.apache.cayenne.dba.JdbcActionBuilder
adapter, entityResolver
 
Constructor Summary
DB2ActionBuilder(DbAdapter adapter, EntityResolver resolver)
           
 
Method Summary
protected  SQLAction interceptRawSQL(SQLAction action)
          Creates a SQLTemplate handling action that removes line breaks from SQL template string to satisfy DB2 JDBC driver.
 SQLAction sqlAction(SQLTemplate query)
          Executes a SQLTemplate.
 SQLAction updateAction(Query query)
          Executes a generic update query.
 
Methods inherited from class org.apache.cayenne.dba.JdbcActionBuilder
batchAction, getAdapter, getEntityResolver, objectSelectAction, procedureAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DB2ActionBuilder

public DB2ActionBuilder(DbAdapter adapter,
                        EntityResolver resolver)
Method Detail

interceptRawSQL

protected SQLAction interceptRawSQL(SQLAction action)
Creates a SQLTemplate handling action that removes line breaks from SQL template string to satisfy DB2 JDBC driver.


sqlAction

public SQLAction sqlAction(SQLTemplate query)
Description copied from interface: SQLActionVisitor
Executes a SQLTemplate.

Specified by:
sqlAction in interface SQLActionVisitor
Overrides:
sqlAction in class JdbcActionBuilder

updateAction

public SQLAction updateAction(Query query)
Description copied from interface: SQLActionVisitor
Executes a generic update query.

Specified by:
updateAction in interface SQLActionVisitor
Overrides:
updateAction in class JdbcActionBuilder


Copyright © 2001-2006 Apache.org All Rights Reserved.