Kajona\System\System\OrmObjectlist

The objectlist class is used to load a list of objects or to count a list of objects.

Therefore it's not necessary to pass an object instance when creating an instance of OrmObjectlist.

Pass the class-name of the queried object-type to either
- getObjectCount()
- getObjectList()
- getSingleObject()

By default the generated query has no additional where-restrictions and processes
the property marked with @listOrder to sort the result. Nevertheless, the api
provides methods to add additional restrictions and sort-orders before calling the
getter-methods:
- addOrderBy
- addWhereRestriction

Synopsis

class OrmObjectlist extends OrmBase {
}

Hierarchy

Tasks

Line Task
248 add a better way of setting the max value

Constants

Name Value
STR_ANNOTATION_TARGETTABLE "@targetTable"
STR_ANNOTATION_TARGETTABLETXSAFE "@targetTableTxSafe"
STR_ANNOTATION_TABLECOLUMN "@tableColumn"
STR_ANNOTATION_TABLECOLUMNDATATYPE "@tableColumnDatatype"
STR_ANNOTATION_TABLECOLUMNPRIMARYKEY "@tableColumnPrimaryKey"
STR_ANNOTATION_TABLECOLUMNINDEX "@tableColumnIndex"
STR_ANNOTATION_BLOCKESCAPING "@blockEscaping"
STR_ANNOTATION_LISTORDER "@listOrder"
STR_ANNOTATION_OBJECTLIST "@objectList"

Members

private

  • $arrOrderBy — array
  • $arrWhereRestrictions — array

protected

  • $bitLogcialDeleteAvailable
  • $objHandleLogicalDeletedGlobal — int
    Static flag to change the handling of deleted objects globally, so for every following ORM operation

Methods

private

protected

public

  • addOrderBy() — Add a order by restriction to the current queries
  • addWhereRestriction() — Add a where restriction to the current queries
  • getObjectCount() — Counts the objects found by the currently setup query.
  • getObjectList() — Returns the list of objects matching the current query. The target-tables are set up by analyzing the classes' annotations, the initial sort-order, too.
  • getObjectListIds() — Returns the list of object id's matching the current query. The target-tables are set up by analyzing the classes' annotations, the initial sort-order, too.
  • getSingleObject() — Returns a single object matching the current query. The matching object is either limited by the where statements set up in advance or the first record of the matching result-set is returned.

Inherited from Kajona\System\System\OrmBase

protected

public