Query.Selection

public static class Selection

Class which represents the selection of (sub)properties.

Fields

MAGIC_NON_PROPERTIES

static final Set<String> MAGIC_NON_PROPERTIES

These magic non-properties are those which are in the results of a RetrieveSparseEntity transaction which is why they do not need to be retrieved with a RetrieveEntityProperties transaction.

Constructors

Selection

public Selection(String selector)

No parsing, just sets the selector string.

Methods

getSelector

public String getSelector()

getSubselection

public Selection getSubselection()

isId

public boolean isId()

Return true iff this selector selects the id of an entity.

isParent

public boolean isParent()

Return true iff this selector selects the parent of an entity. If not, the retrieval in RetrieveFullEntityTransaction might be optimized by not retrieving the parents at all.

isProperty

public boolean isProperty()

Return true iff this selector selects anything that is most likely a property. If not, the retrieval in RetrieveFullEntityTransaction might be optimized by not retrieving the properties at all.

setSubSelection

public Selection setSubSelection(Selection sub)

toElement

public Element toElement()

toString

public String toString()