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 SummaryFieldsModifier and TypeFieldDescriptionprotected CapsStrategyprotected Booleanprotected Integerprotected Integerprotected Stringprotected ColumnDescriptor[]Fields inherited from class org.apache.cayenne.query.IndirectQuerydataMap, lastResolver, name, replacementQuery
- 
Constructor SummaryConstructorsConstructorDescriptionProcedureCall(String procedureName) ProcedureCall(String procedureName, Class<T> resultClass) 
- 
Method SummaryModifier and TypeMethodDescriptionint[]batchUpdate(ObjectContext context) call(ObjectContext context) capsStrategy(CapsStrategy capsStrategy) protected QuerycreateReplacementQuery(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 ProcedureCallCreates 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) intupdate(ObjectContext context) Methods inherited from class org.apache.cayenne.query.IndirectQuerycreateSQLAction, getMetaData, getReplacementQuery, route
- 
Field Details- 
procedureName
- 
resultClass
- 
params
- 
fetchLimit
- 
fetchOffset
- 
capsStrategy
- 
fetchingDataRows
- 
resultDescriptor
 
- 
- 
Constructor Details- 
ProcedureCall
- 
ProcedureCall
 
- 
- 
Method Details- 
queryCreates procedure call using name of stored procedure defined in the mapping file.
- 
dataRowQueryCreates procedure call returning data rows using name of stored procedure defined in the mapping file.
- 
queryCreates 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
- 
createReplacementQueryDescription copied from class:IndirectQueryCreates a substitute query. An implementor is free to provide an arbitrary replacement query.- Specified by:
- createReplacementQueryin class- IndirectQuery
 
 
-