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
public class ProcedureCall<T> extends IndirectQuery
Fluent API for calling stored procedures.
- Since:
- 4.0
- See Also:
- Serialized Form
- 
Field SummaryFields Modifier and Type Field Description protected CapsStrategycapsStrategyprotected BooleanfetchingDataRowsprotected IntegerfetchLimitprotected IntegerfetchOffsetprotected Map<String,Object>paramsprotected StringprocedureNameprotected Class<T>resultClassprotected ColumnDescriptor[]resultDescriptorFields inherited from class org.apache.cayenne.query.IndirectQuerydataMap, lastResolver, name, replacementQuery
- 
Constructor SummaryConstructors Constructor Description ProcedureCall(String procedureName)ProcedureCall(String procedureName, Class<T> resultClass)
- 
Method SummaryModifier and Type Method Description int[]batchUpdate(ObjectContext context)ProcedureResult<T>call(ObjectContext context)ProcedureCall<T>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.ProcedureCall<T>limit(int fetchLimit)ProcedureCall<T>offset(int fetchOffset)ProcedureCall<T>param(String name, Object value)ProcedureCall<T>params(Map<String,?> parameters)static ProcedureCallquery(String procedure)Creates procedure call using name of stored procedure defined in the mapping file.static <T> ProcedureCall<T>query(String procedure, Class<T> resultClass)Creates procedure call using name of stored procedure defined in the mapping file and specifies data type of the objects it should return.ProcedureCall<T>resultDescriptor(ColumnDescriptor[] resultDescriptor)List<T>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
 
 
-