Class TableBinder
- java.lang.Object
-
- org.hibernate.boot.model.internal.TableBinder
-
-
Constructor Summary
Constructors Constructor Description TableBinder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addIndexes(Table table, Index[] indexes, MetadataBuildingContext context)
static void
addIndexes(Table table, Index[] indexes, MetadataBuildingContext context)
Table
bind()
static void
bindForeignKey(PersistentClass referencedEntity, PersistentClass destinationEntity, AnnotatedJoinColumns joinColumns, SimpleValue value, boolean unique, MetadataBuildingContext buildingContext)
static Table
buildAndFillTable(String schema, String catalog, Identifier logicalName, boolean isAbstract, List<UniqueConstraintHolder> uniqueConstraints, MetadataBuildingContext buildingContext)
static Table
buildAndFillTable(String schema, String catalog, Identifier logicalName, boolean isAbstract, List<UniqueConstraintHolder> uniqueConstraints, MetadataBuildingContext buildingContext, String subselect, InFlightMetadataCollector.EntityTableXref denormalizedSuperTableXref)
static List<JPAIndexHolder>
buildJpaIndexHolder(Index[] indexes)
static List<UniqueConstraintHolder>
buildUniqueConstraintHolders(UniqueConstraint[] annotations)
Build a list ofUniqueConstraintHolder
instances given a list ofUniqueConstraint
annotations.String
getName()
static void
linkJoinColumnWithValueOverridingNameIfImplicit(PersistentClass referencedEntity, Value value, AnnotatedJoinColumns joinColumns, SimpleValue simpleValue)
void
setAbstract(boolean anAbstract)
void
setBuildingContext(MetadataBuildingContext buildingContext)
void
setCatalog(String catalog)
void
setDefaultName(String ownerClassName, String ownerEntity, String ownerJpaEntity, String ownerEntityTable, String associatedClassName, String associatedEntity, String associatedJpaEntity, String associatedEntityTable, String propertyName)
void
setJPA2ElementCollection(boolean isJPA2ElementCollection)
void
setJpaIndex(Index[] jpaIndex)
void
setName(String name)
void
setSchema(String schema)
void
setUniqueConstraints(UniqueConstraint[] uniqueConstraints)
-
-
-
Method Detail
-
setBuildingContext
public void setBuildingContext(MetadataBuildingContext buildingContext)
-
setSchema
public void setSchema(String schema)
-
setCatalog
public void setCatalog(String catalog)
-
getName
public String getName()
-
setName
public void setName(String name)
-
setAbstract
public void setAbstract(boolean anAbstract)
-
setUniqueConstraints
public void setUniqueConstraints(UniqueConstraint[] uniqueConstraints)
-
setJpaIndex
public void setJpaIndex(Index[] jpaIndex)
-
setJPA2ElementCollection
public void setJPA2ElementCollection(boolean isJPA2ElementCollection)
-
bind
public Table bind()
-
buildAndFillTable
public static Table buildAndFillTable(String schema, String catalog, Identifier logicalName, boolean isAbstract, List<UniqueConstraintHolder> uniqueConstraints, MetadataBuildingContext buildingContext)
-
buildAndFillTable
public static Table buildAndFillTable(String schema, String catalog, Identifier logicalName, boolean isAbstract, List<UniqueConstraintHolder> uniqueConstraints, MetadataBuildingContext buildingContext, String subselect, InFlightMetadataCollector.EntityTableXref denormalizedSuperTableXref)
-
bindForeignKey
public static void bindForeignKey(PersistentClass referencedEntity, PersistentClass destinationEntity, AnnotatedJoinColumns joinColumns, SimpleValue value, boolean unique, MetadataBuildingContext buildingContext)
-
linkJoinColumnWithValueOverridingNameIfImplicit
public static void linkJoinColumnWithValueOverridingNameIfImplicit(PersistentClass referencedEntity, Value value, AnnotatedJoinColumns joinColumns, SimpleValue simpleValue)
-
addIndexes
public static void addIndexes(Table table, Index[] indexes, MetadataBuildingContext context)
-
addIndexes
public static void addIndexes(Table table, Index[] indexes, MetadataBuildingContext context)
-
buildJpaIndexHolder
public static List<JPAIndexHolder> buildJpaIndexHolder(Index[] indexes)
-
buildUniqueConstraintHolders
public static List<UniqueConstraintHolder> buildUniqueConstraintHolders(UniqueConstraint[] annotations)
Build a list ofUniqueConstraintHolder
instances given a list ofUniqueConstraint
annotations.- Parameters:
annotations
- TheUniqueConstraint
annotations.- Returns:
- The built
UniqueConstraintHolder
instances.
-
-