Uses of Class
ch.autumo.commons.database.Model
Package
Description
Database management.
Bean processing.
-
Uses of Model in ch.autumo.commons.database
Modifier and TypeMethodDescriptionModel.deserialize
(String json) De-serialize a JSON string to an entity.static Model
Get first entity of the given entity bean with specific condition, e.g.static Model
Get first entity of the given entity bean with specific condition, e.g.Model.getAssociatedReference
(Class<?> referenceClass) Get associated (parent) entity.Model.getAssociatedReference
(String referenceBeanPropertyName) Get associated (parent) entity.static Model
Read an entity with given ID.Modifier and TypeMethodDescriptionList all entities of the given entity bean.Model.listReferences
(Class<?> referenceClass) List referenced entities of the referenced class type.List all entities of the given entity bean with specific condition, e.g.List all entities of the given entity bean with specific condition, e.g.List all entities of the given entity bean with specific condition, e.g.List all entities of the given entity bean with specific condition, e.g. -
Uses of Model in ch.autumo.commons.utils.bean
Modifier and TypeMethodDescriptionstatic Model
Beans.createBean
(Class<?> beanClass) Create empty bean.static Model
Beans.createBean
(Class<?> beanClass, ResultSet set) Create bean.static Model
Beans.createBean
(Class<?> beanClass, ResultSet set, BeanProcessor processor) Create bean. -
Uses of Model in ch.autumo.commons.utils.database
Modifier and TypeMethodDescriptionstatic Model
DBUtils.selectRecord
(Class<?> entityClass, int id) Select a record of type clz (entity class).Modifier and TypeMethodDescriptionSelect a records of type entityClass (entity class).DBUtils.selectRecords
(Class<?> entityClass) Select a records of type entityClass (entity class).DBUtils.selectRecords
(Class<?> entityClass, int amount) Select a records of type entityClass (entity class).DBUtils.selectRecords
(Class<?> entityClass, int amount, int sortType) Select a records of type entityClass (entity class).DBUtils.selectRecords
(Class<?> entityClass, String condition, Object[] values) Select a records of type entityClass (entity class).DBUtils.selectRecords
(Class<?> entityClass, String condition, Object[] values, int amount) Select a records of type entityClass (entity class).DBUtils.selectRecords
(Class<?> entityClass, String condition, Object[] values, int amount, int sortType) Select a records of type entityClass (entity class).