org.apache.cayenne.query
Interface SQLActionVisitor

All Known Implementing Classes:
DB2ActionBuilder, JdbcActionBuilder, SQLServerActionBuilder

public interface SQLActionVisitor

A factory interface to create standard SQLActions for a set of standard queries. Instances of SQLActionVisitor are passed by Cayenne to a Query in Query.createSQLAction(SQLActionVisitor), allowing query to choose the action type and convert itself to a "standard" query if needed. Individual DbAdapters would provide special visitors, thus allowing for DB-dependent execution algorithms.

Since:
1.2
Author:
Andrus Adamchik
See Also:
Query.createSQLAction(SQLActionVisitor)

Method Summary
 SQLAction batchAction(BatchQuery query)
          Executes a batch update query.
 SQLAction objectSelectAction(SelectQuery query)
          Executes a SelectQuery.
 SQLAction procedureAction(ProcedureQuery query)
          Executes a ProcedureQuery.
 SQLAction sqlAction(SQLTemplate query)
          Executes a SQLTemplate.
 SQLAction updateAction(Query query)
          Executes a generic update query.
 

Method Detail

updateAction

SQLAction updateAction(Query query)
Executes a generic update query.


batchAction

SQLAction batchAction(BatchQuery query)
Executes a batch update query.


objectSelectAction

SQLAction objectSelectAction(SelectQuery query)
Executes a SelectQuery.


sqlAction

SQLAction sqlAction(SQLTemplate query)
Executes a SQLTemplate.


procedureAction

SQLAction procedureAction(ProcedureQuery query)
Executes a ProcedureQuery.



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