public interface Orm
Interface for ORM (object/relational mapping).
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault <B extends io.github.mmm.bean.WritableBean>
DbBeanMapper<B> createBeanMapper(B bean) <B extends io.github.mmm.bean.WritableBean>
DbBeanMapper<B> createBeanMapper(B bean, Iterable<? extends io.github.mmm.property.ReadableProperty<?>> properties) <B extends io.github.mmm.bean.WritableBean>
DbBeanMapper<B> createBeanMapperProjection(B bean, Iterable<? extends io.github.mmm.property.criteria.ProjectionProperty<?>> properties) <V> DbMapper<V> createMapper(SelectClause<V> select)
-
Method Details
-
createBeanMapper
- Type Parameters:
B- type of theWritableBeanto map.- Parameters:
bean- the prototype of theWritableBeanto map.- Returns:
- the
DbBeanMapperto map from theWritableBeantoDbResultand vice-versa.
-
createBeanMapper
<B extends io.github.mmm.bean.WritableBean> DbBeanMapper<B> createBeanMapper(B bean, Iterable<? extends io.github.mmm.property.ReadableProperty<?>> properties) - Type Parameters:
B- type of theWritableBeanto map.- Parameters:
bean- the prototype of theWritableBeanto map.properties- theIterablewith the explicitpropertiesto map.- Returns:
- the
DbBeanMapperto map from theWritableBeantoDbResultand vice-versa.
-
createBeanMapperProjection
<B extends io.github.mmm.bean.WritableBean> DbBeanMapper<B> createBeanMapperProjection(B bean, Iterable<? extends io.github.mmm.property.criteria.ProjectionProperty<?>> properties) - Type Parameters:
B- type of theWritableBeanto map.- Parameters:
bean- the prototype of theWritableBeanto map.properties- theIterablewith theprojection propertiesto map.- Returns:
- the
DbBeanMapperto map from theWritableBeantoDbResultand vice-versa.
-
createMapper
- Type Parameters:
V- type of the Java value to select.- Parameters:
select- theSelectClauseclause.- Returns:
- the
DbMapperto map from the Java object to theDbResultand vice-versa.
-
getNamingStrategy
DbNamingStrategy getNamingStrategy()- Returns:
- the
DbNamingStrategy.
-
getTypeMapping
TypeMapping getTypeMapping()- Returns:
- the
TypeMapping.
-