Package org.fastnate.generator.context
Class SingularProperty<E,T>
java.lang.Object
org.fastnate.generator.context.Property<E,T>
org.fastnate.generator.context.SingularProperty<E,T>
- Type Parameters:
E- The type of the container classT- The type of the value of the property
- Direct Known Subclasses:
EntityProperty,PrimitiveProperty
Represents a value that is exactly one column in the database.
- Author:
- Tobias Liefke
-
Constructor Summary
ConstructorsConstructorDescriptionSingularProperty(AttributeAccessor attribute) Creates a new instance of a SingularProperty. -
Method Summary
Modifier and TypeMethodDescriptionabstract GeneratorColumnThe associated column.booleanIndicates that this property maps to a column from the parent table.Methods inherited from class org.fastnate.generator.context.Property
addInsertExpression, createPostInsertStatements, createPreInsertStatements, failIfRequired, findReferencedEntities, generatePendingStatements, getAttribute, getExpression, getName, getPredicate, getType, getValue, isComposition, isRequired, setValue, toString
-
Constructor Details
-
SingularProperty
Creates a new instance of a SingularProperty.- Parameters:
attribute- access to the represented attribute
-
-
Method Details
-
getColumn
The associated column.- Returns:
- the column name
-
isTableColumn
public boolean isTableColumn()Description copied from class:PropertyIndicates that this property maps to a column from the parent table.- Specified by:
isTableColumnin classProperty<E,T> - Returns:
trueifProperty.addInsertExpression(org.fastnate.generator.statements.TableStatement, E)will add the corresponding value to the given statement
-