Class ModelQuery

java.lang.Object
com.onenetwork.platform.data.model.ModelQuery

public class ModelQuery
extends java.lang.Object
Meant to be imported statically to provide methods for creating filter, sort and retrieval criteria to be used with ModelDataService.read() to read Models from the database.

See ModelDataService.read(Class, com.onenetwork.platform.common.usercontext.PlatformUserContext, SqlParams, ModelQueryComponent...) for more information on how query components can be combined in a read operation.

  • Constructor Summary

    Constructors 
    Constructor Description
    ModelQuery()  
  • Method Summary

    Modifier and Type Method Description
    static ConcurrencyVersionRetrieval concurrencyVersionRetrieval()
    A marker to define whether the models retrieved should have ConcurrencyVersion transient field set or not.
    static ModelPaging paging​(long page, long pageSize)
    Defines the paging parameters for the model based query
    static ModelRetrieval retrieve​(java.lang.Class<?>... levels)
    Selects the levels of a Model to retrieve
    static ModelFilter sqlFilter​(java.lang.String sql)
    Creates a filter from a SQL fragment
    static ModelSort sqlSort​(java.lang.String sql)
    Creates a sort from a SQL fragment

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait