Package org.apache.cayenne.query
Class ProcedureCall<T>
java.lang.Object
org.apache.cayenne.query.IndirectQuery
org.apache.cayenne.query.ProcedureCall<T>
- All Implemented Interfaces:
Serializable
,Query
Fluent API for calling stored procedures.
- Since:
- 4.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected CapsStrategy
protected Boolean
protected Integer
protected Integer
protected String
protected ColumnDescriptor[]
Fields inherited from class org.apache.cayenne.query.IndirectQuery
dataMap, lastResolver, name, replacementQuery
-
Constructor Summary
ConstructorDescriptionProcedureCall
(String procedureName) ProcedureCall
(String procedureName, Class<T> resultClass) -
Method Summary
Modifier and TypeMethodDescriptionint[]
batchUpdate
(ObjectContext context) call
(ObjectContext context) capsStrategy
(CapsStrategy capsStrategy) protected Query
createReplacementQuery
(EntityResolver resolver) Creates a substitute query.static ProcedureCall
<DataRow> dataRowQuery
(String procedure) Creates procedure call returning data rows using name of stored procedure defined in the mapping file.limit
(int fetchLimit) offset
(int fetchOffset) static ProcedureCall
Creates procedure call using name of stored procedure defined in the mapping file.static <T> ProcedureCall
<T> Creates procedure call using name of stored procedure defined in the mapping file and specifies data type of the objects it should return.resultDescriptor
(ColumnDescriptor[] resultDescriptor) select
(ObjectContext context) int
update
(ObjectContext context) Methods inherited from class org.apache.cayenne.query.IndirectQuery
createSQLAction, getMetaData, getReplacementQuery, route
-
Field Details
-
procedureName
-
resultClass
-
params
-
fetchLimit
-
fetchOffset
-
capsStrategy
-
fetchingDataRows
-
resultDescriptor
-
-
Constructor Details
-
ProcedureCall
-
ProcedureCall
-
-
Method Details
-
query
Creates procedure call using name of stored procedure defined in the mapping file. -
dataRowQuery
Creates procedure call returning data rows using name of stored procedure defined in the mapping file. -
query
Creates procedure call using name of stored procedure defined in the mapping file and specifies data type of the objects it should return. -
params
-
param
-
limit
-
offset
-
capsStrategy
-
resultDescriptor
-
call
-
select
-
batchUpdate
-
update
-
createReplacementQuery
Description copied from class:IndirectQuery
Creates a substitute query. An implementor is free to provide an arbitrary replacement query.- Specified by:
createReplacementQuery
in classIndirectQuery
-