public class TableBinder extends Object
Constructor and Description |
---|
TableBinder() |
Modifier and Type | Method and Description |
---|---|
static void |
addIndexes(Table hibTable,
Index[] indexes,
MetadataBuildingContext buildingContext) |
static void |
addIndexes(Table hibTable,
Index[] indexes,
MetadataBuildingContext buildingContext) |
Table |
bind() |
static void |
bindFk(PersistentClass referencedEntity,
PersistentClass destinationEntity,
Ejb3JoinColumn[] columns,
SimpleValue value,
boolean unique,
MetadataBuildingContext buildingContext) |
static Table |
buildAndFillTable(String schema,
String catalog,
Identifier logicalName,
boolean isAbstract,
List<UniqueConstraintHolder> uniqueConstraints,
List<JPAIndexHolder> jpaIndexHolders,
String constraints,
MetadataBuildingContext buildingContext,
String subselect,
InFlightMetadataCollector.EntityTableXref denormalizedSuperTableXref) |
static Table |
buildAndFillTable(String schema,
String catalog,
ObjectNameSource nameSource,
NamingStrategyHelper namingStrategyHelper,
boolean isAbstract,
List<UniqueConstraintHolder> uniqueConstraints,
List<JPAIndexHolder> jpaIndexHolders,
String constraints,
MetadataBuildingContext buildingContext,
String subselect,
InFlightMetadataCollector.EntityTableXref denormalizedSuperTableXref) |
static List<JPAIndexHolder> |
buildJpaIndexHolder(Index[] indexes) |
static List<UniqueConstraintHolder> |
buildUniqueConstraintHolders(UniqueConstraint[] annotations)
Build a list of
UniqueConstraintHolder instances given a list of
UniqueConstraint annotations. |
static List<String[]> |
buildUniqueConstraints(UniqueConstraint[] constraintsArray)
Deprecated.
|
static void |
createUniqueConstraint(Value value) |
String |
getName() |
static void |
linkJoinColumnWithValueOverridingNameIfImplicit(PersistentClass referencedEntity,
Iterator columnIterator,
Ejb3JoinColumn[] columns,
SimpleValue value) |
void |
setAbstract(boolean anAbstract) |
void |
setBuildingContext(MetadataBuildingContext buildingContext) |
void |
setCatalog(String catalog) |
void |
setConstraints(String constraints) |
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) |
public void setBuildingContext(MetadataBuildingContext buildingContext)
public void setSchema(String schema)
public void setCatalog(String catalog)
public String getName()
public void setName(String name)
public void setAbstract(boolean anAbstract)
public void setUniqueConstraints(UniqueConstraint[] uniqueConstraints)
public void setJpaIndex(Index[] jpaIndex)
public void setConstraints(String constraints)
public void setJPA2ElementCollection(boolean isJPA2ElementCollection)
public Table bind()
public static Table buildAndFillTable(String schema, String catalog, ObjectNameSource nameSource, NamingStrategyHelper namingStrategyHelper, boolean isAbstract, List<UniqueConstraintHolder> uniqueConstraints, List<JPAIndexHolder> jpaIndexHolders, String constraints, MetadataBuildingContext buildingContext, String subselect, InFlightMetadataCollector.EntityTableXref denormalizedSuperTableXref)
public static Table buildAndFillTable(String schema, String catalog, Identifier logicalName, boolean isAbstract, List<UniqueConstraintHolder> uniqueConstraints, List<JPAIndexHolder> jpaIndexHolders, String constraints, MetadataBuildingContext buildingContext, String subselect, InFlightMetadataCollector.EntityTableXref denormalizedSuperTableXref)
public static void bindFk(PersistentClass referencedEntity, PersistentClass destinationEntity, Ejb3JoinColumn[] columns, SimpleValue value, boolean unique, MetadataBuildingContext buildingContext)
public static void linkJoinColumnWithValueOverridingNameIfImplicit(PersistentClass referencedEntity, Iterator columnIterator, Ejb3JoinColumn[] columns, SimpleValue value)
public static void createUniqueConstraint(Value value)
public static void addIndexes(Table hibTable, Index[] indexes, MetadataBuildingContext buildingContext)
public static void addIndexes(Table hibTable, Index[] indexes, MetadataBuildingContext buildingContext)
public static List<JPAIndexHolder> buildJpaIndexHolder(Index[] indexes)
@Deprecated public static List<String[]> buildUniqueConstraints(UniqueConstraint[] constraintsArray)
buildUniqueConstraintHolders(javax.persistence.UniqueConstraint[])
insteadpublic static List<UniqueConstraintHolder> buildUniqueConstraintHolders(UniqueConstraint[] annotations)
UniqueConstraintHolder
instances given a list of
UniqueConstraint
annotations.annotations
- The UniqueConstraint
annotations.UniqueConstraintHolder
instances.Copyright © 2019 JBoss by Red Hat. All rights reserved.