.. java:import:: java.io Serializable .. java:import:: java.sql CallableStatement .. java:import:: java.sql Connection .. java:import:: java.sql PreparedStatement .. java:import:: java.sql ResultSet .. java:import:: java.sql SQLException .. java:import:: java.sql Statement .. java:import:: java.sql Types .. java:import:: java.util ArrayList .. java:import:: java.util Arrays .. java:import:: java.util HashMap .. java:import:: java.util HashSet .. java:import:: java.util Iterator .. java:import:: java.util LinkedList .. java:import:: java.util List .. java:import:: java.util Map .. java:import:: java.util Map.Entry .. java:import:: java.util Set .. java:import:: java.util UUID .. java:import:: org.antlr.v4.runtime CharStreams .. java:import:: org.antlr.v4.runtime CommonTokenStream .. java:import:: org.apache.commons.jcs.access.behavior ICacheAccess .. java:import:: org.apache.shiro.subject Subject .. java:import:: org.caosdb.api.entity.v1 MessageCode .. java:import:: org.caosdb.datetime UTCDateTime .. java:import:: org.caosdb.server CaosDBServer .. java:import:: org.caosdb.server ServerProperties .. java:import:: org.caosdb.server.accessControl Principal .. java:import:: org.caosdb.server.caching Cache .. java:import:: org.caosdb.server.database.access Access .. java:import:: org.caosdb.server.database.backend.implementation MySQL.ConnectionException .. java:import:: org.caosdb.server.database.backend.implementation MySQL.MySQLHelper .. java:import:: org.caosdb.server.database.backend.transaction RetrieveFullEntityTransaction .. java:import:: org.caosdb.server.database.backend.transaction RetrieveSparseEntity .. java:import:: org.caosdb.server.database.misc DBHelper .. java:import:: org.caosdb.server.database.misc TransactionBenchmark .. java:import:: org.caosdb.server.entity Entity .. java:import:: org.caosdb.server.entity EntityID .. java:import:: org.caosdb.server.entity EntityInterface .. java:import:: org.caosdb.server.entity Message .. java:import:: org.caosdb.server.entity Message.MessageType .. java:import:: org.caosdb.server.entity RetrieveEntity .. java:import:: org.caosdb.server.entity.container TransactionContainer .. java:import:: org.caosdb.server.entity.xml ToElementable .. java:import:: org.caosdb.server.permissions EntityACL .. java:import:: org.caosdb.server.permissions EntityPermission .. java:import:: org.caosdb.server.query CQLParser.CqContext .. java:import:: org.caosdb.server.query CQLParsingErrorListener.ParsingError .. java:import:: org.caosdb.server.transaction EntityTransactionInterface .. java:import:: org.caosdb.server.transaction Retrieve .. java:import:: org.caosdb.server.transaction Transaction .. java:import:: org.caosdb.server.transaction WriteTransaction .. java:import:: org.jdom2 Element .. java:import:: org.slf4j Logger Query.Selection =============== .. java:package:: org.caosdb.server.query :noindex: .. java:type:: public static class Selection :outertype: Query Class which represents the selection of (sub)properties. Fields ------ MAGIC_NON_PROPERTIES ^^^^^^^^^^^^^^^^^^^^ .. java:field:: static final Set MAGIC_NON_PROPERTIES :outertype: Query.Selection These magic non-properties are those which are in the results of a \ :java:ref:`RetrieveSparseEntity`\ transaction which is why they do not need to be retrieved with a \ :java:ref:`RetrieveEntityProperties`\ transaction. Constructors ------------ Selection ^^^^^^^^^ .. java:constructor:: public Selection(String selector) :outertype: Query.Selection No parsing, just sets the selector string. Methods ------- getSelector ^^^^^^^^^^^ .. java:method:: public String getSelector() :outertype: Query.Selection getSubselection ^^^^^^^^^^^^^^^ .. java:method:: public Selection getSubselection() :outertype: Query.Selection isId ^^^^ .. java:method:: public boolean isId() :outertype: Query.Selection Return true iff this selector selects the id of an entity. isParent ^^^^^^^^ .. java:method:: public boolean isParent() :outertype: Query.Selection Return true iff this selector selects the parent of an entity. If not, the retrieval in \ :java:ref:`RetrieveFullEntityTransaction`\ might be optimized by not retrieving the parents at all. isProperty ^^^^^^^^^^ .. java:method:: public boolean isProperty() :outertype: Query.Selection Return true iff this selector selects anything that is most likely a property. If not, the retrieval in \ :java:ref:`RetrieveFullEntityTransaction`\ might be optimized by not retrieving the properties at all. setSubSelection ^^^^^^^^^^^^^^^ .. java:method:: public Selection setSubSelection(Selection sub) :outertype: Query.Selection toElement ^^^^^^^^^ .. java:method:: public Element toElement() :outertype: Query.Selection toString ^^^^^^^^ .. java:method:: @Override public String toString() :outertype: Query.Selection