com.sun.jdo.spi.persistence.support.ejb.ejbqlc
Class JDOQLElements

java.lang.Object
  extended by com.sun.jdo.spi.persistence.support.ejb.ejbqlc.JDOQLElements

public class JDOQLElements
extends java.lang.Object

An JDOQLElements instance represents the result of the EJBQLC compile step.

Author:
Michael Bouschen, Shing Wai Chan

Constructor Summary
JDOQLElements(java.lang.String candidateClassName, java.lang.String parameters, java.lang.String variables, java.lang.String filter, java.lang.String ordering, java.lang.String result, java.lang.String resultType, boolean isPCResult, boolean isAggregate, java.lang.String[] parameterEjbNames)
          Constructor taking JDOQL elements.
 
Method Summary
 java.lang.String getCandidateClassName()
          Returns the fully qulified name of the candidate class.
 java.lang.String getFilter()
          Returns the filter expression.
 java.lang.String getOrdering()
          Returns the ordering expression.
 java.lang.String[] getParameterEjbNames()
          Returns parameterEjbNames array
 java.lang.String getParameters()
          Returns the parameter declaration string.
 java.lang.String getResult()
          Returns the result expression.
 java.lang.String getResultType()
          Returns the result type.
 java.lang.String getVariables()
          Returns the variable declarations string.
 boolean isAggregate()
          Returns whether the result of the JDOQL query is associated to an aggregate function.
 boolean isPCResult()
          Returns whether the result of the JDOQL query is a collection of pc instances or not.
 void setAggregate(boolean isAggregate)
          Sets whether the result of the JDOQL query is a associated to an aggregate function.
 void setCandidateClassName(java.lang.String candidateClassName)
          Sets the fully qulified name of the candidate class.
 void setFilter(java.lang.String filter)
          Sets the filter expression.
 void setOrdering(java.lang.String ordering)
          Sets the ordering expression.
 void setParameterEjbNames(java.lang.String[] parameterEjbNames)
          set parameterEjbNames array
 void setParameters(java.lang.String parameters)
          Sets the parameter declarations string.
 void setPCResult(boolean isPCResult)
          Sets whether the result of the JDOQL query is a collection of pc instances or not.
 void setResult(java.lang.String result)
          Sets the result expression.
 void setResultType(java.lang.String resultType)
          Sets the result type.
 void setVariables(java.lang.String variables)
          Sets the variable declarations string.
 java.lang.String toString()
          Returns a string representation of this JDOQLElements instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JDOQLElements

public JDOQLElements(java.lang.String candidateClassName,
                     java.lang.String parameters,
                     java.lang.String variables,
                     java.lang.String filter,
                     java.lang.String ordering,
                     java.lang.String result,
                     java.lang.String resultType,
                     boolean isPCResult,
                     boolean isAggregate,
                     java.lang.String[] parameterEjbNames)
Constructor taking JDOQL elements.

Method Detail

getCandidateClassName

public java.lang.String getCandidateClassName()
Returns the fully qulified name of the candidate class.


setCandidateClassName

public void setCandidateClassName(java.lang.String candidateClassName)
Sets the fully qulified name of the candidate class.


getParameters

public java.lang.String getParameters()
Returns the parameter declaration string.


setParameters

public void setParameters(java.lang.String parameters)
Sets the parameter declarations string.


getVariables

public java.lang.String getVariables()
Returns the variable declarations string.


setVariables

public void setVariables(java.lang.String variables)
Sets the variable declarations string.


getFilter

public java.lang.String getFilter()
Returns the filter expression.


setFilter

public void setFilter(java.lang.String filter)
Sets the filter expression.


getOrdering

public java.lang.String getOrdering()
Returns the ordering expression.


setOrdering

public void setOrdering(java.lang.String ordering)
Sets the ordering expression.


getResult

public java.lang.String getResult()
Returns the result expression.


setResult

public void setResult(java.lang.String result)
Sets the result expression.


getResultType

public java.lang.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(java.lang.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 java.lang.String[] getParameterEjbNames()
Returns parameterEjbNames array


setParameterEjbNames

public void setParameterEjbNames(java.lang.String[] parameterEjbNames)
set parameterEjbNames array


toString

public java.lang.String toString()
Returns a string representation of this JDOQLElements instance.

Overrides:
toString in class java.lang.Object


Copyright © 2012 GlassFish Community. All Rights Reserved.