Module io.github.mmm.entity.bean
Package io.github.mmm.entity.bean.sql
Class AssignmentClause<E extends EntityBean,SELF extends AssignmentClause<E,SELF>>
- java.lang.Object
-
- io.github.mmm.marshall.AbstractMarshallingObject
-
- io.github.mmm.entity.bean.sql.AbstractClause
-
- io.github.mmm.entity.bean.sql.AbstractTypedClause<E,SELF>
-
- io.github.mmm.entity.bean.sql.AssignmentClause<E,SELF>
-
- Type Parameters:
E
- type of theEntityBean
to query.SELF
- type of this class itself.
- All Implemented Interfaces:
Clause
,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 abstract class AssignmentClause<E extends EntityBean,SELF extends AssignmentClause<E,SELF>> extends AbstractTypedClause<E,SELF>
- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME_ASSIGNMENTS
Name of the propertygetAssignments()
for marshaling.
-
Constructor Summary
Constructors Constructor Description AssignmentClause()
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SELF
and(io.github.mmm.property.criteria.PropertyAssignment<?> assignment)
SELF
and(io.github.mmm.property.criteria.PropertyAssignment<?>... propertyAssignments)
<V> SELF
and(io.github.mmm.value.PropertyPath<V> property, V value)
List<io.github.mmm.property.criteria.PropertyAssignment<?>>
getAssignments()
protected void
readProperty(io.github.mmm.marshall.StructuredReader reader, String name)
protected void
writeProperties(io.github.mmm.marshall.StructuredWriter writer)
-
Methods inherited from class io.github.mmm.entity.bean.sql.AbstractTypedClause
self
-
Methods inherited from class io.github.mmm.entity.bean.sql.AbstractClause
getMarshallingName, toString
-
-
-
-
Field Detail
-
NAME_ASSIGNMENTS
public static final String NAME_ASSIGNMENTS
Name of the propertygetAssignments()
for marshaling.- See Also:
- Constant Field Values
-
-
Method Detail
-
and
public SELF and(io.github.mmm.property.criteria.PropertyAssignment<?> assignment)
- Parameters:
assignment
- thePropertyAssignment
to add.- Returns:
- this
Clause
itself for fluent API calls.
-
and
public <V> SELF and(io.github.mmm.value.PropertyPath<V> property, V value)
- Type Parameters:
V
- type of thevalue
.- Parameters:
property
- theproperty
to set.value
- theLiteral
value to insert (assign theproperty
to).- Returns:
- this
Clause
itself for fluent API calls.
-
and
public SELF and(io.github.mmm.property.criteria.PropertyAssignment<?>... propertyAssignments)
- Parameters:
propertyAssignments
- thePropertyAssignment
s to add.- Returns:
- this
Clause
itself for fluent API calls.
-
getAssignments
public List<io.github.mmm.property.criteria.PropertyAssignment<?>> getAssignments()
- Returns:
- the
List
ofPropertyAssignment
s.
-
writeProperties
protected void writeProperties(io.github.mmm.marshall.StructuredWriter writer)
- Overrides:
writeProperties
in classAbstractClause
-
readProperty
protected void readProperty(io.github.mmm.marshall.StructuredReader reader, String name)
- Overrides:
readProperty
in classAbstractClause
-
-