FileDocCategorySizeDatePackage
ConstraintParamIndex.javaAPI DocGlassfish v2 API3118Fri May 04 22:35:14 BST 2007com.sun.jdo.spi.persistence.support.sqlstore.sql.constraint

ConstraintParamIndex

public class ConstraintParamIndex extends ConstraintValue
Constraint which represent an index of a query parameter. This index is put to the stack and used to bind the real value of the parameter to the query.

Fields Summary
int
enumType
com.sun.jdo.spi.persistence.utility.FieldTypeEnumeration constant for type of this parameter.
Constructors Summary
public ConstraintParamIndex(int index, int enumType, com.sun.jdo.spi.persistence.support.sqlstore.model.LocalFieldDesc localField)
Constructor.

param
index parameter index
param
enumType type of this parameter
param
localField the localField to which this parameter is bound.

        super(new Integer(index), localField);
        this.enumType = enumType;
    
Methods Summary
public java.lang.IntegergetIndex()

        return (Integer) getValue();
    
public intgetType()
Get type of this parameter.

        return enumType;