Class AbstractEntityClause<E extends EntityBean,​SELF extends AbstractEntityClause<E,​SELF>>

    • Constructor Detail

      • AbstractEntityClause

        protected AbstractEntityClause​(E entity)
        The constructor.
        Parameters:
        entity - the entity.
      • AbstractEntityClause

        protected AbstractEntityClause​(E entity,
                                       String entityName)
        The constructor.
        Parameters:
        entity - the entity to operate on.
        entityName - the entity name.
    • Method Detail

      • getEntity

        public E getEntity()
        Returns:
        the optional EntityBean from where to get the data and to operate on.
      • getEntityName

        public String getEntityName()
        Returns:
        the name of the entity in the database (e.g. table name).
      • setEntityName

        public void setEntityName​(String entityName)
        Parameters:
        entityName - new value of getEntityName().
      • as

        public SELF as​(String entityAlias)
        Parameters:
        entityAlias - the alias (variable name) for the EntityBean to query.
        Returns:
        this Clause itself for fluent API calls.
        See Also:
        getAlias()
      • writeProperties

        protected void writeProperties​(io.github.mmm.marshall.StructuredWriter writer)
        Overrides:
        writeProperties in class AbstractClause
      • readProperty

        protected void readProperty​(io.github.mmm.marshall.StructuredReader reader,
                                    String name)
        Overrides:
        readProperty in class AbstractClause