Package | Description |
---|---|
org.fastnate.generator.context | |
org.fastnate.generator.converter | |
org.fastnate.generator.provider |
Modifier and Type | Field and Description |
---|---|
private AttributeAccessor |
EntityProperty.MappingInformation.attribute |
private AttributeAccessor |
PluralProperty.EntityMappingInformation.attribute |
private AttributeAccessor |
Property.attribute
Used to access the value of the property.
|
Modifier and Type | Method and Description |
---|---|
AttributeAccessor |
EntityProperty.MappingInformation.getAttribute() |
AttributeAccessor |
PluralProperty.EntityMappingInformation.getAttribute() |
AttributeAccessor |
Property.getAttribute()
Used to access the value of the property.
|
Modifier and Type | Method and Description |
---|---|
abstract <E> Iterable<AttributeAccessor> |
AccessStyle.getDeclaredAttributes(Class<E> inspectedClass,
Class<? extends E> implementationClass)
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.
|
private static String |
PluralProperty.buildIdColumn(AttributeAccessor attribute,
javax.persistence.AssociationOverride override,
javax.persistence.JoinColumn[] joinColumns,
String defaultIdColumn) |
private static String |
PluralProperty.buildIdColumn(AttributeAccessor attribute,
javax.persistence.AssociationOverride override,
javax.persistence.JoinTable joinTable,
javax.persistence.CollectionTable tableMetadata,
String defaultIdColumn) |
(package private) <X> Property<X,?> |
EntityClass.buildProperty(GeneratorTable propertyTable,
AttributeAccessor attribute,
Map<String,javax.persistence.AttributeOverride> surroundingAttributeOverrides,
Map<String,javax.persistence.AssociationOverride> surroundingAssociationOverrides)
Builds the property for the given attribute.
|
private static GeneratorColumn |
PluralProperty.buildValueColumn(GeneratorTable table,
javax.persistence.AssociationOverride asscoiationOverride,
javax.persistence.AttributeOverride attributeOverride,
AttributeAccessor attribute,
String defaultColumnName)
Builds the column that contains the value for the collection / map.
|
private void |
AnyMapping.fillMetaDefs(AttributeAccessor attribute,
javax.persistence.Column typeColumn,
String metaDefName,
GeneratorContext context) |
private org.hibernate.annotations.AnyMetaDef |
AnyMapping.findGlobalMetaDef(AttributeAccessor attribute,
String metaDefName) |
private static String |
PluralProperty.findMappedId(AttributeAccessor attribute) |
private static javax.persistence.Column |
EntityClass.getColumnAnnotation(AttributeAccessor attribute,
Map<String,javax.persistence.AttributeOverride> overrides) |
protected String |
PrimitiveProperty.getDefaultValue(AttributeAccessor attribute)
Finds the default value from the given attribute.
|
protected String |
VersionProperty.getDefaultValue(AttributeAccessor attribute) |
(package private) GeneratorColumn |
EntityClass.getIdColumn(AttributeAccessor attribute)
Resolves the column for the
id property of this entity class. |
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.
|
protected static boolean |
PluralProperty.hasPluralAnnotation(AttributeAccessor attribute)
Indicates, that the given attribute has an annotation that indicates a plural property.
|
private void |
PluralProperty.initializeIdColumnForMappingTable(EntityClass<?> sourceClass,
AttributeAccessor attribute,
javax.persistence.AssociationOverride override,
javax.persistence.JoinTable joinTable,
javax.persistence.CollectionTable collectionTable) |
(package private) static boolean |
CollectionProperty.isCollectionProperty(AttributeAccessor attribute)
Indicates that the given attribute references a collection and may be used by an
CollectionProperty . |
(package private) static boolean |
EntityProperty.isEntityProperty(AttributeAccessor attribute)
Indicates that the given attribute references an entity and may be used by an
EntityProperty . |
(package private) static boolean |
MapProperty.isMapProperty(AttributeAccessor attribute)
Indicates that the given attribute references a map and may be used by an
MapProperty . |
private static boolean |
PrimitiveProperty.isRequired(AttributeAccessor attribute) |
private static boolean |
PluralProperty.EntityMappingInformation.useTargetTable(AttributeAccessor attribute,
javax.persistence.AssociationOverride override) |
Modifier and Type | Method and Description |
---|---|
private boolean |
EntityClass.findIdProperty(Iterable<AttributeAccessor> declaredAttributes) |
Constructor and Description |
---|
AnyMapping(GeneratorContext context,
AttributeAccessor attribute,
GeneratorTable containerTabble,
javax.persistence.Column typeColumn,
String metaDefName)
Creates a new instance of
AnyMapping . |
CollectionProperty(EntityClass<?> sourceClass,
AttributeAccessor attribute,
javax.persistence.AssociationOverride associationOverride,
javax.persistence.AttributeOverride attributeOverride)
Creates a new collection property.
|
EmbeddedProperty(EntityClass<?> entityClass,
GeneratorTable table,
AttributeAccessor attribute,
Map<String,javax.persistence.AttributeOverride> surroundingAttributeOverrides,
Map<String,javax.persistence.AssociationOverride> surroundingAssociationOverrides)
Instantiates a new embedded property.
|
EntityMappingInformation(AttributeAccessor attribute,
javax.persistence.AssociationOverride override,
int valueArgumentIndex) |
EntityProperty(GeneratorContext context,
GeneratorTable containerTable,
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 . |
MappingInformation(AttributeAccessor attribute) |
MapProperty(EntityClass<?> sourceClass,
AttributeAccessor attribute,
javax.persistence.AssociationOverride associationOverride,
javax.persistence.AttributeOverride attributeOverride)
Creates a new map property.
|
PluralProperty(EntityClass<?> sourceClass,
AttributeAccessor attribute,
javax.persistence.AssociationOverride associationOverride,
javax.persistence.AttributeOverride attributeOverride,
int valueClassParamIndex)
Creates a new property.
|
PrimitiveProperty(GeneratorContext context,
GeneratorTable table,
AttributeAccessor attribute,
javax.persistence.Column columnMetadata)
Instantiates a new primitive property.
|
PrimitiveProperty(GeneratorContext context,
GeneratorTable table,
AttributeAccessor attribute,
javax.persistence.Column columnMetadata,
boolean autogenerated)
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,
GeneratorTable table,
AttributeAccessor attribute,
javax.persistence.Column column)
Creates a new instance of
VersionProperty . |
Constructor and Description |
---|
AbstractDateConverter(AttributeAccessor attribute,
boolean mapKey)
Creates a new instance of this
AbstractDateConverter . |
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.
|
Modifier and Type | Method and Description |
---|---|
default <T> ValueConverter<T> |
JpaProvider.createConverter(AttributeAccessor attribute,
Class<T> targetType,
boolean mapKey)
Creates a converter for an attribute that has a
PrimitiveProperty . |
Copyright © 2022 fastnate.org. All rights reserved.