Package com.aashish.javaormashcode.api
Class ORM
java.lang.Object
com.aashish.javaormashcode.api.ORM
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,V> FieldRef <T, V> Creates a reusable field reference for selections, filters, and ordering.static <T> QuerySet<T> Creates a query builder for the given model class.static OrmSessionOpens a session backed by the configured primary data source.static OrmSessionopenSession(DataSource dataSource) Opens a session backed by the given data source.static voidsetPrimaryDataSource(DataSource dataSource) Registers the default data source used when queries do not provide one explicitly.
-
Method Details
-
of
Creates a query builder for the given model class. -
setPrimaryDataSource
Registers the default data source used when queries do not provide one explicitly. -
openSession
Opens a session backed by the configured primary data source. -
openSession
Opens a session backed by the given data source. -
field
Creates a reusable field reference for selections, filters, and ordering.
-