Class QueryDescriptor
java.lang.Object
java.util.Observable
org.glassfish.deployment.common.DynamicAttributesDescriptor
org.glassfish.deployment.common.Descriptor
org.glassfish.ejb.deployment.descriptor.QueryDescriptor
- All Implemented Interfaces:
Serializable
public final class QueryDescriptor
extends org.glassfish.deployment.common.Descriptor
This class contains information about EJB-QL queries for
finder/selector methods of EJB2.0 CMP EntityBeans.
It represents the XML element.
- Author:
- Sanjeev Krishnan
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleangetQuery()Get the EJB-QL query (ejb-ql XML element)com.sun.enterprise.deployment.MethodDescriptorintgetSQL()voidprint(StringBuffer toStringBuffer) voidvoidvoidvoidSet the EJB-QL query (ejb-ql XML element).voidpublic void setQueryMethod(MethodDescriptor md) { this.methodDescriptor = md; } public MethodDescriptor getQueryMethod() { return methodDescriptor; }voidsetQueryMethodDescriptor(com.sun.enterprise.deployment.MethodDescriptor m) voidMethods inherited from class org.glassfish.deployment.common.Descriptor
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDisplayName, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visitMethods inherited from class org.glassfish.deployment.common.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toStringMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
QueryDescriptor
public QueryDescriptor() -
QueryDescriptor
-
-
Method Details
-
setQueryMethod
public void setQueryMethod(MethodDescriptor md) { this.methodDescriptor = md; } public MethodDescriptor getQueryMethod() { return methodDescriptor; } -
getQueryMethod
-
setQueryMethodDescriptor
public void setQueryMethodDescriptor(com.sun.enterprise.deployment.MethodDescriptor m) -
getQueryMethodDescriptor
public com.sun.enterprise.deployment.MethodDescriptor getQueryMethodDescriptor() -
getIsEjbQl
public boolean getIsEjbQl() -
setQuery
Set the EJB-QL query (ejb-ql XML element). If query parameter is null, or has no content, getIsEjbQl will return false. Otherwise, getIsEjbQl will return true. -
getQuery
Get the EJB-QL query (ejb-ql XML element) -
getHasSQL
public boolean getHasSQL() -
setSQL
-
getSQL
-
getHasNoReturnTypeMapping
public boolean getHasNoReturnTypeMapping() -
getHasLocalReturnTypeMapping
public boolean getHasLocalReturnTypeMapping() -
getHasRemoteReturnTypeMapping
public boolean getHasRemoteReturnTypeMapping() -
setHasNoReturnTypeMapping
public void setHasNoReturnTypeMapping() -
setHasLocalReturnTypeMapping
public void setHasLocalReturnTypeMapping() -
setHasRemoteReturnTypeMapping
public void setHasRemoteReturnTypeMapping() -
getReturnTypeMapping
public int getReturnTypeMapping() -
print
- Overrides:
printin classorg.glassfish.deployment.common.Descriptor
-