Documentation of 'org.neodatis.odb.core.query.AbstractQuery' Java class
AbstractQuery
org.neodatis.odb.core.query

Class AbstractQuery

    • Constructor Detail

      • AbstractQuery

        public AbstractQuery()
    • Method Detail

      • orderByDesc

        public IQuery orderByDesc(java.lang.String fields)
        Description copied from interface: IQuery
        To order by the result of a query in descendent order
        Specified by:
        orderByDesc in interface IQuery
        Parameters:
        fields - A comma separated field list
        Returns:
        this
      • orderByAsc

        public IQuery orderByAsc(java.lang.String fields)
        Description copied from interface: IQuery
        To order by the result of a query in ascendent order
        Specified by:
        orderByAsc in interface IQuery
        Parameters:
        fields - A comma separated field list
        Returns:
        this
      • getOrderByFieldNames

        public java.lang.String[] getOrderByFieldNames()
        Description copied from interface: IQuery
        Returns the field names of the order by
        Specified by:
        getOrderByFieldNames in interface IQuery
        Returns:
        The array of fields of the order by
      • setOrderByFields

        public void setOrderByFields(java.lang.String[] orderByFields)
      • getOrderByType

        public OrderByConstants getOrderByType()
        Specified by:
        getOrderByType in interface IQuery
        Returns:
        the type of the order by - ORDER_BY_NONE,ORDER_BY_DESC,ORDER_BY_ASC
      • hasOrderBy

        public boolean hasOrderBy()
        Description copied from interface: IQuery
        Returns true if the query has an order by clause
        Specified by:
        hasOrderBy in interface IQuery
        Returns:
        true if has an order by flag
      • isPolymorphic

        public boolean isPolymorphic()
        Specified by:
        isPolymorphic in interface IQuery
      • setPolymorphic

        public IQuery setPolymorphic(boolean yes)
        Description copied from interface: IQuery
        To specify that instances of subclass of the query class must not be load if true, when querying objects of class Class1, only direct instances of Class1 will be loaded. If false, when querying objects of class Class1, direct instances of Class1 will be loaded and all instances of subclasses of Class1.
        Specified by:
        setPolymorphic in interface IQuery
      • getOidOfObjectToQuery

        public OID getOidOfObjectToQuery()
        Description copied from interface: IQuery
        used with isForSingleOid == true, to indicate we are working on a single object with a specific oid
        Specified by:
        getOidOfObjectToQuery in interface IQuery
        Returns:
      • setOidOfObjectToQuery

        public void setOidOfObjectToQuery(OID oidOfObjectToQuery)
      • isForSingleOid

        public boolean isForSingleOid()
        Returns true is query must apply on a single object OID
        Specified by:
        isForSingleOid in interface IQuery
        Returns:

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.