Package | Description |
---|---|
org.fastnate.generator | |
org.fastnate.generator.context |
Modifier and Type | Method and Description |
---|---|
private <E> void |
EntitySqlGenerator.writeInserts(E entity,
List<Object> postponedEntities,
EntityClass<E> classDescription,
ColumnExpression discriminator) |
Modifier and Type | Field and Description |
---|---|
private EntityClass<E> |
GeneratedIdProperty.entityClass
The entity class that contains our property.
|
private EntityClass<? super E> |
EntityClass.hierarchyRoot
The description of the entity class that is the root of the current inheritance hierarchy.
|
private EntityClass<? super E> |
EntityClass.joinedParentClass
The description of the next entity class that has
InheritanceType.JOINED , if any. |
private EntityClass<K> |
MapProperty.keyEntityClass
The description of the key class,
null if not an entity. |
private EntityClass<T> |
EntityProperty.targetClass
The description of the type of this property.
|
private EntityClass<T> |
PluralProperty.valueEntityClass
|
Modifier and Type | Field and Description |
---|---|
private List<Consumer<EntityClass<E>>> |
EntityClass.builtListeners
The list of listeners that are informed when this class has finished to build all properties.
|
private Map<Class<?>,EntityClass<?>> |
GeneratorContext.descriptions
Contains the extracted metadata to every known class of an
Entity . |
private Map<String,EntityClass<?>> |
GeneratorContext.descriptionsByName
The mapping from the
name of an entity to the extracted metadata . |
Modifier and Type | Method and Description |
---|---|
<E> EntityClass<E> |
GeneratorContext.getDescription(Class<E> entityClass)
Finds the description for a class.
|
<E> EntityClass<E> |
GeneratorContext.getDescription(E entity)
Finds the description for the class of an entity.
|
EntityClass<E> |
GeneratedIdProperty.getEntityClass()
The entity class that contains our property.
|
EntityClass<? super E> |
EntityClass.getHierarchyRoot()
The description of the entity class that is the root of the current inheritance hierarchy.
|
EntityClass<? super E> |
EntityClass.getJoinedParentClass()
The description of the next entity class that has
InheritanceType.JOINED , if any. |
EntityClass<K> |
MapProperty.getKeyEntityClass()
The description of the key class,
null if not an entity. |
EntityClass<T> |
EntityProperty.getTargetClass()
The description of the type of this property.
|
EntityClass<T> |
PluralProperty.getValueEntityClass()
|
Modifier and Type | Method and Description |
---|---|
Map<Class<?>,EntityClass<?>> |
GeneratorContext.getDescriptions()
Contains the extracted metadata to every known class of an
Entity . |
Map<String,EntityClass<?>> |
GeneratorContext.getDescriptionsByName()
The mapping from the
name of an entity to the extracted metadata . |
Modifier and Type | Method and Description |
---|---|
private ColumnExpression |
EntityClass.buildDiscriminator(EntityClass<?> c,
javax.persistence.DiscriminatorColumn column) |
protected void |
PluralProperty.buildEmbeddedProperties(EntityClass<?> sourceClass,
Class<?> targetType)
Builds the embedded properties of this property.
|
void |
ContextModelListener.foundEntityClass(EntityClass<?> entityClass)
Called when a new entity class was discovered.
|
void |
DefaultContextModelListener.foundEntityClass(EntityClass<?> entityClass) |
(package private) Map<Object,GenerationState> |
GeneratorContext.getStates(EntityClass<?> entityClass)
The entity states for the given entity class.
|
private void |
PluralProperty.initializeIdColumnForMappingTable(EntityClass<?> sourceClass,
AttributeAccessor attribute,
javax.persistence.AssociationOverride override,
javax.persistence.JoinTable joinTable,
javax.persistence.CollectionTable collectionTable) |
Modifier and Type | Method and Description |
---|---|
void |
EntityClass.onPropertiesAvailable(Consumer<EntityClass<E>> listener)
Registers a listener that is called as soon as all properties of this class are built.
|
Constructor and Description |
---|
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.
|
GeneratedIdProperty(EntityClass<E> entityClass,
AttributeAccessor attribute,
javax.persistence.Column column)
Creates a new instance of
GeneratedIdProperty . |
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.
|
Copyright © 2022 fastnate.org. All rights reserved.