Package org.apache.openjpa.meta
Class MultiQueryMetaData
java.lang.Object
org.apache.openjpa.meta.QueryMetaData
org.apache.openjpa.meta.MultiQueryMetaData
- All Implemented Interfaces:
Serializable
,SourceTracker
,Commentable
,MetaDataModes
Extends
Designed for mapping the results from a Stored Procudure that can produce more than one
QueryMetaData
to allow multiple result class
or
mapping names
.
Designed for mapping the results from a Stored Procudure that can produce more than one
ResultSet
,
each being mapped with a different mapping specification.- Author:
- Pinaki Poddar
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from interface org.apache.openjpa.lib.xml.Commentable
EMPTY_COMMENTS
Fields inherited from interface org.apache.openjpa.meta.MetaDataModes
MODE_ALL, MODE_ANN_MAPPING, MODE_MAPPING, MODE_MAPPING_INIT, MODE_META, MODE_NONE, MODE_QUERY
Fields inherited from interface org.apache.openjpa.lib.meta.SourceTracker
SRC_ANNOTATIONS, SRC_OTHER, SRC_XML
-
Constructor Summary
ConstructorDescriptionMultiQueryMetaData
(Class<?> scope, String logicalName, String procedureName, boolean isTemporary) Create this meta data given a scope of definition, a logical identifier, a procedure name and whether its usage is temporary. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addComponent
(Class<?> resultClass) void
addComponent
(String mappingName) getComponent
(int i) Gets the component metadata at the given part index.int
Gets the number of component metadata contained in this metada.int
boolean
Affirms if this metadata is ephimeral.void
Registers the given parameter.void
void
setResultType
(Class cls) The query result class, or null if none.Methods inherited from class org.apache.openjpa.meta.QueryMetaData
addHint, getCandidateType, getColNumber, getComments, getDefiningType, getHintKeys, getHintValues, getLanguage, getLineNumber, getName, getParamTypes, getQueryString, getResourceName, getResultSetMappingName, getResultType, getSourceFile, getSourceMode, getSourceName, getSourceScope, getSourceType, isReadOnly, setCandidateType, setColNumber, setComments, setDefiningType, setFrom, setInto, setLanguage, setLineNumber, setParamTypes, setQueryString, setReadOnly, setSource, setSourceMode, toString
-
Constructor Details
-
MultiQueryMetaData
public MultiQueryMetaData(Class<?> scope, String logicalName, String procedureName, boolean isTemporary) Create this meta data given a scope of definition, a logical identifier, a procedure name and whether its usage is temporary.- Parameters:
scope
- defining scopelogicalName
- name as an identifierprocedureName
- name of the database procedure
-
-
Method Details
-
getProcedureName
-
getComponents
-
isEphimeral
public boolean isEphimeral()Affirms if this metadata is ephimeral. Ephimenral metadata is removed from the repository after usage.- Returns:
-
setResultSetMappingName
- Overrides:
setResultSetMappingName
in classQueryMetaData
-
setResultType
Description copied from class:QueryMetaData
The query result class, or null if none.- Overrides:
setResultType
in classQueryMetaData
-
addComponent
-
addComponent
-
getComponent
Gets the component metadata at the given part index.- Parameters:
i
- a valid integer index- Returns:
-
getComponentCount
public int getComponentCount()Gets the number of component metadata contained in this metada. -
registerParameter
Registers the given parameter.- Parameters:
p
-
-
getParameters
-
getParameterCount
public int getParameterCount()
-