Class JDOQLElements
- java.lang.Object
-
- com.sun.jdo.spi.persistence.support.ejb.ejbqlc.JDOQLElements
-
public class JDOQLElements extends Object
An JDOQLElements instance represents the result of the EJBQLC compile step.- Author:
- Michael Bouschen, Shing Wai Chan
-
-
Constructor Summary
Constructors Constructor Description JDOQLElements(String candidateClassName, String parameters, String variables, String filter, String ordering, String result, String resultType, boolean isPCResult, boolean isAggregate, String[] parameterEjbNames)Constructor taking JDOQL elements.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCandidateClassName()Returns the fully qulified name of the candidate class.StringgetFilter()Returns the filter expression.StringgetOrdering()Returns the ordering expression.String[]getParameterEjbNames()Returns parameterEjbNames arrayStringgetParameters()Returns the parameter declaration string.StringgetResult()Returns the result expression.StringgetResultType()Returns the result type.StringgetVariables()Returns the variable declarations string.booleanisAggregate()Returns whether the result of the JDOQL query is associated to an aggregate function.booleanisPCResult()Returns whether the result of the JDOQL query is a collection of pc instances or not.voidsetAggregate(boolean isAggregate)Sets whether the result of the JDOQL query is a associated to an aggregate function.voidsetCandidateClassName(String candidateClassName)Sets the fully qulified name of the candidate class.voidsetFilter(String filter)Sets the filter expression.voidsetOrdering(String ordering)Sets the ordering expression.voidsetParameterEjbNames(String[] parameterEjbNames)set parameterEjbNames arrayvoidsetParameters(String parameters)Sets the parameter declarations string.voidsetPCResult(boolean isPCResult)Sets whether the result of the JDOQL query is a collection of pc instances or not.voidsetResult(String result)Sets the result expression.voidsetResultType(String resultType)Sets the result type.voidsetVariables(String variables)Sets the variable declarations string.StringtoString()Returns a string representation of this JDOQLElements instance.
-
-
-
Method Detail
-
getCandidateClassName
public String getCandidateClassName()
Returns the fully qulified name of the candidate class.
-
setCandidateClassName
public void setCandidateClassName(String candidateClassName)
Sets the fully qulified name of the candidate class.
-
getParameters
public String getParameters()
Returns the parameter declaration string.
-
setParameters
public void setParameters(String parameters)
Sets the parameter declarations string.
-
getVariables
public String getVariables()
Returns the variable declarations string.
-
setVariables
public void setVariables(String variables)
Sets the variable declarations string.
-
getFilter
public String getFilter()
Returns the filter expression.
-
setFilter
public void setFilter(String filter)
Sets the filter expression.
-
getOrdering
public String getOrdering()
Returns the ordering expression.
-
setOrdering
public void setOrdering(String ordering)
Sets the ordering expression.
-
getResult
public String getResult()
Returns the result expression.
-
setResult
public void setResult(String result)
Sets the result expression.
-
getResultType
public String getResultType()
Returns the result type. The result type is the name of the element type of the JDO query result set.
-
setResultType
public void setResultType(String resultType)
Sets the result type. The result type is the name of the element type of the JDO query result set.
-
isPCResult
public boolean isPCResult()
Returns whether the result of the JDOQL query is a collection of pc instances or not.
-
setPCResult
public void setPCResult(boolean isPCResult)
Sets whether the result of the JDOQL query is a collection of pc instances or not.
-
isAggregate
public boolean isAggregate()
Returns whether the result of the JDOQL query is associated to an aggregate function.
-
setAggregate
public void setAggregate(boolean isAggregate)
Sets whether the result of the JDOQL query is a associated to an aggregate function.
-
getParameterEjbNames
public String[] getParameterEjbNames()
Returns parameterEjbNames array
-
setParameterEjbNames
public void setParameterEjbNames(String[] parameterEjbNames)
set parameterEjbNames array
-
-