Class ProcedureQueryDescriptor
java.lang.Object
org.apache.cayenne.map.QueryDescriptor
org.apache.cayenne.map.ProcedureQueryDescriptor
- All Implemented Interfaces:
ProjectNode, XMLSerializable
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CapsStrategyprotected intprotected intprotected StringFields inherited from class QueryDescriptor
cacheGroup, cacheStrategy, DATA_MAP_ROOT, dataMap, DB_ENTITY_ROOT, fetchingDataRows, JAVA_CLASS_ROOT, name, OBJ_ENTITY_ROOT, pageSize, PROCEDURE_ROOT, root, statementFetchSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAssembles Cayenne query instance of appropriate type from this descriptor.buildQuery(Map<String, ?> parameters) Assembles Cayenne query instance of appropriate type from this descriptor, applying a map of named parameters to it.voidencodeAsXML(XMLEncoder encoder, ProjectNodeVisitor<?> delegate) Prints itself as XML to the provided XMLEncoder.Returns the capitalization strategy applied to the column names of the query result, or null if none is set.intReturns the fetch limit of the query.intReturns the fetch offset of the query.Returns result entity name.voidsetColumnNamesCapitalization(CapsStrategy columnNamesCapitalization) voidsetFetchLimit(int fetchLimit) voidsetFetchOffset(int fetchOffset) voidsetResultEntityName(String resultEntityName) Sets result entity name.Methods inherited from class QueryDescriptor
acceptVisitor, getCacheGroup, getCacheStrategy, getDataMap, getName, getPageSize, getRoot, getStatementFetchSize, isFetchingDataRows, setCacheGroup, setCacheStrategy, setDataMap, setFetchingDataRows, setName, setPageSize, setRoot, setStatementFetchSize
-
Field Details
-
resultEntityName
-
fetchLimit
protected int fetchLimit -
fetchOffset
protected int fetchOffset -
columnNamesCapitalization
-
-
Constructor Details
-
ProcedureQueryDescriptor
public ProcedureQueryDescriptor()
-
-
Method Details
-
getResultEntityName
Returns result entity name. -
setResultEntityName
Sets result entity name. -
getFetchLimit
public int getFetchLimit()Returns the fetch limit of the query. Zero means no limit.- Since:
- 5.0
-
setFetchLimit
public void setFetchLimit(int fetchLimit) - Since:
- 5.0
-
getFetchOffset
public int getFetchOffset()Returns the fetch offset of the query.- Since:
- 5.0
-
setFetchOffset
public void setFetchOffset(int fetchOffset) - Since:
- 5.0
-
getColumnNamesCapitalization
Returns the capitalization strategy applied to the column names of the query result, or null if none is set.- Since:
- 5.0
-
setColumnNamesCapitalization
- Since:
- 5.0
-
buildQuery
Description copied from class:QueryDescriptorAssembles Cayenne query instance of appropriate type from this descriptor.- Specified by:
buildQueryin classQueryDescriptor
-
buildQuery
Description copied from class:QueryDescriptorAssembles Cayenne query instance of appropriate type from this descriptor, applying a map of named parameters to it.- Specified by:
buildQueryin classQueryDescriptor- Since:
- 5.0
-
encodeAsXML
Description copied from interface:XMLSerializablePrints itself as XML to the provided XMLEncoder.
-