Class InsertInto<E extends EntityBean>

  • Type Parameters:
    E - type of the entity.
    All Implemented Interfaces:
    Clause, MainClause<E>, TypedClause<E>, io.github.mmm.marshall.MarshallableObject, io.github.mmm.marshall.Marshaller<Object>, io.github.mmm.marshall.Marshalling<Object>, io.github.mmm.marshall.MarshallingObject, io.github.mmm.marshall.UnmarshallableObject, io.github.mmm.marshall.Unmarshaller<Object>

    public class InsertInto<E extends EntityBean>
    extends Into<E,​InsertInto<E>>
    Since:
    1.0.0
    • Constructor Detail

      • InsertInto

        public InsertInto​(Insert insert,
                          E entity)
        The constructor.
        Parameters:
        insert - the opening Insert.
        entity - the entity to operate on.
      • InsertInto

        public InsertInto​(Insert insert,
                          E entity,
                          String entityName)
        The constructor.
        Parameters:
        insert - the opening Insert.
        entity - the entity to operate on.
        entityName - the entity name.
    • Method Detail

      • values

        public <V> InsertValues<E> values​(io.github.mmm.property.criteria.PropertyAssignment<V> assignment)
        Specified by:
        values in class Into<E extends EntityBean,​InsertInto<E extends EntityBean>>
        Type Parameters:
        V - type of the value.
        Parameters:
        assignment - the PropertyAssignment to set.
        Returns:
        the Values for fluent API.
      • values

        public <V> InsertValues<E> values​(io.github.mmm.property.criteria.PropertyAssignment<V>... assignments)
        Specified by:
        values in class Into<E extends EntityBean,​InsertInto<E extends EntityBean>>
        Type Parameters:
        V - type of the value.
        Parameters:
        assignments - the PropertyAssignments to set.
        Returns:
        the Values for fluent API.
      • values

        public <V> InsertValues<E> values​(io.github.mmm.value.PropertyPath<V> property,
                                          V value)
        Description copied from class: Into
        Convenience method for values(PropertyAssignment.of(property, value)).
        Specified by:
        values in class Into<E extends EntityBean,​InsertInto<E extends EntityBean>>
        Type Parameters:
        V - type of the value.
        Parameters:
        property - the property to set.
        value - the Literal value to insert (assign the property to).
        Returns:
        the Values for fluent API.