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)

Methods

asDeclareParameter

public CharSequence asDeclareParameter(int idx)

asFilter

public CharSequence asFilter(int idx)

containsOnlyNullValues

protected boolean containsOnlyNullValues(Collection collection)

generateDeclareParameter

protected CharSequence generateDeclareParameter(int idx)

generateFilter

protected abstract CharSequence generateFilter(int idx)

getName

public String getName()

getValue

public T getValue()

shouldIgnoreThisProperty

protected boolean shouldIgnoreThisProperty()

unwrap

public Collection unwrap()