Class QueryMetaData
java.lang.Object
org.datanucleus.metadata.MetaData
org.datanucleus.metadata.QueryMetaData
- All Implemented Interfaces:
Serializable
Representation of the MetaData of a named Query.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringName of any fetch-plan to use.protected StringQuery language.protected StringName of the query.protected StringThe single string queryprotected StringThe result class to use.protected StringName for the MetaData defining the mapping of the result set (for JPA SQL).protected StringScope of this query (if any).private static final longprotected booleanWhether the query returns unique.protected booleanWhether the query is unmodifiable.Fields inherited from class MetaData
EXTENSION_CLASS_CREATETIMESTAMP, EXTENSION_CLASS_CREATETIMESTAMP_COLUMN_NAME, EXTENSION_CLASS_CREATEUSER, EXTENSION_CLASS_CREATEUSER_COLUMN_LENGTH, EXTENSION_CLASS_CREATEUSER_COLUMN_NAME, EXTENSION_CLASS_MULTITENANCY_COLUMN_LENGTH, EXTENSION_CLASS_MULTITENANCY_COLUMN_NAME, EXTENSION_CLASS_MULTITENANCY_JDBC_TYPE, EXTENSION_CLASS_MULTITENANT, EXTENSION_CLASS_READ_ONLY, EXTENSION_CLASS_SOFTDELETE, EXTENSION_CLASS_SOFTDELETE_COLUMN_NAME, EXTENSION_CLASS_UPDATETIMESTAMP, EXTENSION_CLASS_UPDATETIMESTAMP_COLUMN_NAME, EXTENSION_CLASS_UPDATEUSER, EXTENSION_CLASS_UPDATEUSER_COLUMN_LENGTH, EXTENSION_CLASS_UPDATEUSER_COLUMN_NAME, EXTENSION_CLASS_VERSION_FIELD_NAME, EXTENSION_CLASS_VIEW_DEFINITION, EXTENSION_CLASS_VIEW_IMPORTS, EXTENSION_INDEX_COLUMN_ORDERING, EXTENSION_MEMBER_CACHEABLE, EXTENSION_MEMBER_CALENDAR_ONE_COLUMN, EXTENSION_MEMBER_CASCADE_ATTACH, EXTENSION_MEMBER_CASCADE_DETACH, EXTENSION_MEMBER_CASCADE_PERSIST, EXTENSION_MEMBER_CASCADE_REFRESH, EXTENSION_MEMBER_COMPARATOR_NAME, EXTENSION_MEMBER_CONTAINER_ALLOW_NULLS, EXTENSION_MEMBER_CREATE_TIMESTAMP, EXTENSION_MEMBER_CREATE_USER, EXTENSION_MEMBER_ENUM_VALUE_GETTER, EXTENSION_MEMBER_IMPLEMENTATION_CLASSES, EXTENSION_MEMBER_INSERTABLE, EXTENSION_MEMBER_KEY_IMPLEMENTATION_CLASSES, EXTENSION_MEMBER_LIST_ORDERING, EXTENSION_MEMBER_RELATION_DISCRIM_COLUMN, EXTENSION_MEMBER_RELATION_DISCRIM_PK, EXTENSION_MEMBER_RELATION_DISCRIM_VALUE, EXTENSION_MEMBER_STRATEGY_WHEN_NOTNULL, EXTENSION_MEMBER_TYPE_CONVERTER_DISABLED, EXTENSION_MEMBER_TYPE_CONVERTER_NAME, EXTENSION_MEMBER_UPDATE_TIMESTAMP, EXTENSION_MEMBER_UPDATE_USER, EXTENSION_MEMBER_UPDATEABLE, EXTENSION_MEMBER_VALUE_IMPLEMENTATION_CLASSES, EXTENSION_VERSION_NUMBER_INITIAL_VALUE, extensions, metaDataState, parent, VENDOR_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()getQuery()getScope()booleanisUnique()booleansetFetchPlanName(String fpName) setLanguage(String language) setResultClass(String resultClass) setResultMetaDataName(String mdName) setUnique(boolean unique) setUnmodifiable(boolean unmodifiable) setUnmodifiable(String unmodifiable) Methods inherited from class MetaData
addExtension, addExtensions, getExtensions, getMetaDataManager, getNoOfExtensions, getParent, getValueForExtension, getValuesForExtension, hasExtension, initialise, isInitialised, isPopulated, isUsed, removeExtension, setExtensions, setInitialised, setParent, setPopulated, setUsed
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
scope
Scope of this query (if any). -
name
Name of the query. -
language
Query language. -
unmodifiable
protected boolean unmodifiableWhether the query is unmodifiable. -
query
The single string query -
resultClass
The result class to use. Only applies to SQL. -
resultMetaDataName
Name for the MetaData defining the mapping of the result set (for JPA SQL). -
unique
protected boolean uniqueWhether the query returns unique. Only applies to SQL. -
fetchPlanName
Name of any fetch-plan to use.
-
-
Constructor Details
-
QueryMetaData
Constructor for a query of the specified name. Set fields using setters, before populate().- Parameters:
name- The Query name
-
-
Method Details
-
getScope
-
setScope
-
getName
-
getLanguage
-
setLanguage
-
isUnmodifiable
public boolean isUnmodifiable() -
setUnmodifiable
-
setUnmodifiable
-
getQuery
-
setQuery
-
getResultClass
-
setResultClass
-
getResultMetaDataName
-
setResultMetaDataName
-
isUnique
public boolean isUnique() -
setUnique
-
setUnique
-
getFetchPlanName
-
setFetchPlanName
-