Package | Description |
---|---|
org.fastnate.generator.context | |
org.fastnate.generator.converter |
Modifier and Type | Method and Description |
---|---|
abstract <E> Iterable<AttributeAccessor> |
AccessStyle.getDeclaredAttributes(Class<E> inspectedClass)
Finds all attributes of the current access type that are referenced in the given class.
|
Modifier and Type | Method and Description |
---|---|
protected static String |
PluralProperty.buildIdColumn(AttributeAccessor attribute,
javax.persistence.AssociationOverride override,
javax.persistence.CollectionTable collectionMetadata,
String defaultIdColumn)
Builds the name of the column that contains the ID of the entity for the given attribute.
|
protected static String |
PluralProperty.buildIdColumn(AttributeAccessor attribute,
javax.persistence.AssociationOverride override,
javax.persistence.JoinTable joinTable,
javax.persistence.CollectionTable tableMetadata,
String defaultIdColumn)
Builds the name of the column that contains the ID of the entity for the given attribute.
|
protected static String |
PluralProperty.buildTableName(AttributeAccessor attribute,
javax.persistence.AssociationOverride override,
javax.persistence.JoinTable joinTable,
javax.persistence.CollectionTable collectionTable,
String defaultTableName)
Builds the name of the table of the association for the given field.
|
protected static String |
PluralProperty.buildValueColumn(AttributeAccessor attribute,
String defaultValueColumn)
Builds the name of the column that contains the value for the collection / map.
|
static <T,E extends Enum<E>> |
PrimitiveProperty.createConverter(AttributeAccessor attribute,
Class<T> targetType,
boolean mapKey)
Creates a converter for a primitive type.
|
protected String |
VersionProperty.getDefaultValue(AttributeAccessor attribute) |
protected String |
PrimitiveProperty.getDefaultValue(AttributeAccessor attribute)
Finds the default value from the given attribute.
|
protected static <T> Class<T> |
PluralProperty.getPropertyArgument(AttributeAccessor attribute,
Class<T> explicitClass,
int argumentIndex)
Inspects the given attribute and searches for a generic type argument.
|
Constructor and Description |
---|
CollectionProperty(EntityClass<?> sourceClass,
AttributeAccessor attribute,
javax.persistence.AssociationOverride override)
Creates a new collection property.
|
EmbeddedProperty(EntityClass<?> entityClass,
AttributeAccessor attribute)
Instantiates a new embedded property.
|
EntityProperty(GeneratorContext context,
AttributeAccessor attribute,
javax.persistence.AssociationOverride override)
Creates a new instance of
EntityProperty . |
GeneratedIdProperty(EntityClass<E> entityClass,
AttributeAccessor attribute,
javax.persistence.Column column)
Creates a new instance of
GeneratedIdProperty . |
MapProperty(EntityClass<?> sourceClass,
AttributeAccessor attribute,
javax.persistence.AssociationOverride override)
Creates a new map property.
|
PluralProperty(GeneratorContext context,
AttributeAccessor attribute)
Creates a new property.
|
PrimitiveProperty(GeneratorContext context,
String table,
AttributeAccessor attribute,
javax.persistence.Column columnMetadata)
Instantiates a new primitive property.
|
Property(AttributeAccessor attribute)
Creates a new instance of a property.
|
SingularProperty(AttributeAccessor attribute)
Creates a new instance of a SingularProperty.
|
VersionProperty(GeneratorContext context,
String table,
AttributeAccessor attribute,
javax.persistence.Column column)
Creates a new instance of
VersionProperty . |
Constructor and Description |
---|
CalendarConverter(AttributeAccessor attribute,
boolean mapKey)
Creates a new instance of
CalendarConverter . |
DateConverter(AttributeAccessor attribute,
boolean mapKey)
Creates a new instance of
DateConverter . |
EnumConverter(AttributeAccessor attribute,
Class<E> targetType,
boolean mapKey)
Creates a new instance of this
EnumConverter . |
StringConverter(AttributeAccessor attribute,
boolean mapKey)
Creates a new instance of a StringConverter for the given attribute.
|
TemporalConverter(AttributeAccessor attribute,
boolean mapKey)
Creates a new instance of this
TemporalConverter . |
Copyright © 2016 fastnate.org. All rights reserved.