4D v19

dataClass.all( )

Home

 
4D v19
dataClass.all( )

dataClass.all( )  


 

The dataClass.all( ) method queries the datastore to find all the entities related to the dataclass and returns them as an entity selection.

The entities are returned in the default order, which is intially the order in which they were created. Note however that, if entities have been deleted and new ones added, the default order does not reflect the creation order anymore.

If no corresponding entity is found, an empty entity selection is returned.

Lazy loading is applied.

In the optional settings parameter, you can pass an object containing additional options. The following property is supported:

PropertyTypeDescription
contextTextLabel for the optimization context applied to the entity selection. This context will be used by the code that handles the entity selection so that it can benefit from the optimization. This feature is designed for ORDA client/server processing; for more information, please refer to the Client/server optimization section.

Example  

 C_OBJECT($allEmp)
 $allEmp:=ds.Employee.all()



See also 

dataClass.query( )

 
PROPERTIES 

Product: 4D
Theme: ORDA - DataClass

 
PAGE CONTENTS 
 
HISTORY 

 
ARTICLE USAGE

4D Language Reference ( 4D v19)
4D Language Reference ( 4D v19.1)