public class MultiQueryMetaData extends QueryMetaData
QueryMetaData
to allow multiple result class
or
mapping names
.
ResultSet
,
each being mapped with a different mapping specification.Modifier and Type | Class and Description |
---|---|
static class |
MultiQueryMetaData.Parameter
A parameter
|
MODE_ALL, MODE_ANN_MAPPING, MODE_MAPPING, MODE_MAPPING_INIT, MODE_META, MODE_NONE, MODE_QUERY
SRC_ANNOTATIONS, SRC_OTHER, SRC_XML
EMPTY_COMMENTS
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
addComponent(Class<?> resultClass) |
void |
addComponent(String mappingName) |
QueryMetaData |
getComponent(int i)
Gets the component metadata at the given part index.
|
int |
getComponentCount()
Gets the number of component metadata contained in this metada.
|
List<QueryMetaData> |
getComponents() |
int |
getParameterCount() |
List<MultiQueryMetaData.Parameter> |
getParameters() |
String |
getProcedureName() |
boolean |
isEphimeral()
Affirms if this metadata is ephimeral.
|
void |
registerParameter(MultiQueryMetaData.Parameter p)
Registers the given parameter.
|
void |
setResultSetMappingName(String name) |
void |
setResultType(Class cls)
The query result class, or null if none.
|
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
public MultiQueryMetaData(Class<?> scope, String logicalName, String procedureName, boolean isTemporary)
scope
- defining scopelogicalName
- name as an identifierprocedureName
- name of the database procedurepublic String getProcedureName()
public List<QueryMetaData> getComponents()
public boolean isEphimeral()
public void setResultSetMappingName(String name)
setResultSetMappingName
in class QueryMetaData
public void setResultType(Class cls)
QueryMetaData
setResultType
in class QueryMetaData
public void addComponent(Class<?> resultClass)
public void addComponent(String mappingName)
public QueryMetaData getComponent(int i)
i
- a valid integer indexpublic int getComponentCount()
public void registerParameter(MultiQueryMetaData.Parameter p)
p
- public List<MultiQueryMetaData.Parameter> getParameters()
public int getParameterCount()
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.