Class ParameterSupport
java.lang.Object
com.sun.jdo.spi.persistence.support.ejb.ejbqlc.ParameterSupport
Helper class to handle EJBQL query parameters.
- Author:
- Michael Bouschen, Shing Wai Chan
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of parameters.getParameterEjbName(int paramNumber) Get EJB name corresponding to the EJBQL parameter number.getParameterEjbName(String ejbqlParamDecl) Get EJB name corresponding to the EJBQL parameter by input parameter declaration string.String[]Get all EJB names corresponding to the EJBQL parameters.getParameterName(int paramNumber) Returns the name of the corresponding JDO parameter by parameter number.getParameterName(String ejbqlParamDecl) Returns the name of the corresponding JDO parameter.getParameterType(int paramNumber) Returns the type of the EJBQL parameter by number.getParameterType(String ejbqlParamDecl) Returns type of the EJBQL parameter by input parameter declaration string.voidsetParameterEjbName(String ejbqlParamDecl, String ejbName) Set EJB name corresponding to the EJBQL parameter by input parameter declaration string.
-
Field Details
-
msgs
I18N support.
-
-
Constructor Details
-
ParameterSupport
Constructor.- Parameters:
method- the Method instance of the finder/selector method.
-
-
Method Details
-
getParameterType
Returns type of the EJBQL parameter by input parameter declaration string. The specified string denotes a parameter application in EJBQL. It has the form "?" where is the parameter number starting with 1. - Returns:
- class instance representing the parameter type.
-
getParameterType
Returns the type of the EJBQL parameter by number. Note, the numbering of EJBQL parameters starts with 1, so the method expects 1 as the number of the first parameter.- Returns:
- class instance representing the parameter type.
-
getParameterEjbName
Get EJB name corresponding to the EJBQL parameter by input parameter declaration string.- Parameters:
ejbqlParamDecl- denotes a parameter application in EJBQL. It has the form "?" where is the parameter number starting with 1. - Returns:
- class instance representing the parameter type.
-
getParameterEjbName
Get EJB name corresponding to the EJBQL parameter number.- Parameters:
paramNumber- numbering of parameters starting with 1- Returns:
- class instance representing the parameter type.
-
setParameterEjbName
Set EJB name corresponding to the EJBQL parameter by input parameter declaration string.- Parameters:
ejbqlParamDecl- denotes a parameter application in EJBQL. It has the form "?" where is the parameter number starting with 1. ejbName-
-
getParameterEjbNames
Get all EJB names corresponding to the EJBQL parameters.- Returns:
- class instance representing the parameter type.
-
getParameterName
Returns the name of the corresponding JDO parameter. The specified string denotes a parameter application in EJBQL. It has the form "?" where is the parameter number starting with 1. - Returns:
- name of JDOQL parameter
-
getParameterName
Returns the name of the corresponding JDO parameter by parameter number.- Returns:
- name of JDOQL parameter
-
getParameterCount
public int getParameterCount()Returns the number of parameters.- Returns:
- parameter count.
-