Property

public abstract class Property<T>

The Property class represents a property that will be used in JDO query. Classes that extend this class should define how that property should be used in WHERE section in JDO query.

Parameters:
  • <T> – type of the passed value

Constructors

Property

protected Property(String name, T value, String type)

Property

protected Property(String jdoVariableName, String name, T value, String type)

Methods

asDeclareParameter

public CharSequence asDeclareParameter(int idx)

asFilter

public CharSequence asFilter(int idx)

generateDeclareParameter

protected CharSequence generateDeclareParameter(int idx)

generateFilter

protected abstract CharSequence generateFilter(int idx)

getJdoVariableName

public String getJdoVariableName()

getName

public String getName()

getType

public String getType()

getValue

public T getValue()

isForRelation

public boolean isForRelation()

shouldIgnoreThisProperty

protected boolean shouldIgnoreThisProperty()

unwrap

public Collection unwrap()