Interface Orm


public interface Orm
Interface for ORM (object/relational mapping).
Since:
1.0.0
  • Method Details

    • createBeanMapper

      default <B extends io.github.mmm.bean.WritableBean> DbBeanMapper<B> createBeanMapper(B bean)
      Type Parameters:
      B - type of the WritableBean to map.
      Parameters:
      bean - the prototype of the WritableBean to map.
      Returns:
      the DbBeanMapper to map from the WritableBean to DbResult and 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 the WritableBean to map.
      Parameters:
      bean - the prototype of the WritableBean to map.
      properties - the Iterable with the explicit properties to map.
      Returns:
      the DbBeanMapper to map from the WritableBean to DbResult and 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 the WritableBean to map.
      Parameters:
      bean - the prototype of the WritableBean to map.
      properties - the Iterable with the projection properties to map.
      Returns:
      the DbBeanMapper to map from the WritableBean to DbResult and vice-versa.
    • createMapper

      <V> DbMapper<V> createMapper(SelectClause<V> select)
      Type Parameters:
      V - type of the Java value to select.
      Parameters:
      select - the SelectClause clause.
      Returns:
      the DbMapper to map from the Java object to the DbResult and vice-versa.
    • getNamingStrategy

      DbNamingStrategy getNamingStrategy()
      Returns:
      the DbNamingStrategy.
    • getTypeMapping

      TypeMapping getTypeMapping()
      Returns:
      the TypeMapping.