Package org.apache.cayenne.dba
Class JdbcActionBuilder
- java.lang.Object
-
- org.apache.cayenne.dba.JdbcActionBuilder
-
- All Implemented Interfaces:
SQLActionVisitor
- Direct Known Subclasses:
DB2ActionBuilder
,DerbyActionBuilder
,FirebirdActionBuilder
,FrontBaseActionBuilder
,H2ActionBuilder
,IngresActionBuilder
,SQLServerActionBuilder
public class JdbcActionBuilder extends Object implements SQLActionVisitor
A factory of default SQLActions. Adapters usually subclass JdbcActionBuilder to provide custom actions for various query types.- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor Description JdbcActionBuilder(DataNode dataNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SQLAction
batchAction(BatchQuery query)
Creates an action to execute a batch update query.SQLAction
ejbqlAction(EJBQLQuery query)
Creates an action to execute EJBQL query.<T> SQLAction
objectSelectAction(FluentSelect<T> query)
Creates an action to execute a FluentSelect.<T> SQLAction
objectSelectAction(SelectQuery<T> query)
Deprecated.SQLAction
procedureAction(ProcedureQuery query)
Creates an action to execute a ProcedureQuery.SQLAction
sqlAction(SQLTemplate query)
Creates an action to execute a SQLTemplate.
-
-
-
Field Detail
-
dataNode
protected DataNode dataNode
-
-
Constructor Detail
-
JdbcActionBuilder
public JdbcActionBuilder(DataNode dataNode)
- Since:
- 4.0
-
-
Method Detail
-
batchAction
public SQLAction batchAction(BatchQuery query)
Description copied from interface:SQLActionVisitor
Creates an action to execute a batch update query.- Specified by:
batchAction
in interfaceSQLActionVisitor
-
procedureAction
public SQLAction procedureAction(ProcedureQuery query)
Description copied from interface:SQLActionVisitor
Creates an action to execute a ProcedureQuery.- Specified by:
procedureAction
in interfaceSQLActionVisitor
-
objectSelectAction
@Deprecated public <T> SQLAction objectSelectAction(SelectQuery<T> query)
Deprecated.Description copied from interface:SQLActionVisitor
Creates an action to execute a SelectQuery.- Specified by:
objectSelectAction
in interfaceSQLActionVisitor
-
objectSelectAction
public <T> SQLAction objectSelectAction(FluentSelect<T> query)
Description copied from interface:SQLActionVisitor
Creates an action to execute a FluentSelect.- Specified by:
objectSelectAction
in interfaceSQLActionVisitor
- Since:
- 4.2
-
sqlAction
public SQLAction sqlAction(SQLTemplate query)
Description copied from interface:SQLActionVisitor
Creates an action to execute a SQLTemplate.- Specified by:
sqlAction
in interfaceSQLActionVisitor
-
ejbqlAction
public SQLAction ejbqlAction(EJBQLQuery query)
Description copied from interface:SQLActionVisitor
Creates an action to execute EJBQL query.- Specified by:
ejbqlAction
in interfaceSQLActionVisitor
- Since:
- 3.0
-
-