public class TableBinder extends Object
Constructor and Description |
---|
TableBinder() |
Modifier and Type | Method and Description |
---|---|
static void |
addIndexes(Table hibTable,
Index[] indexes,
Mappings mappings) |
Table |
bind() |
static void |
bindFk(PersistentClass referencedEntity,
PersistentClass destinationEntity,
Ejb3JoinColumn[] columns,
SimpleValue value,
boolean unique,
Mappings mappings) |
static Table |
buildAndFillTable(String schema,
String catalog,
ObjectNameSource nameSource,
ObjectNameNormalizer.NamingStrategyHelper namingStrategyHelper,
boolean isAbstract,
List<UniqueConstraintHolder> uniqueConstraints,
String constraints,
Table denormalizedSuperTable,
Mappings mappings,
String subselect) |
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) |
static Table |
fillTable(String schema,
String catalog,
String realTableName,
String logicalName,
boolean isAbstract,
List uniqueConstraints,
String constraints,
Table denormalizedSuperTable,
Mappings mappings)
|
String |
getName() |
static void |
linkJoinColumnWithValueOverridingNameIfImplicit(PersistentClass referencedEntity,
Iterator columnIterator,
Ejb3JoinColumn[] columns,
SimpleValue value) |
void |
setAbstract(boolean anAbstract) |
void |
setCatalog(String catalog) |
void |
setConstraints(String constraints) |
void |
setDefaultName(String ownerEntity,
String ownerEntityTable,
String associatedEntity,
String associatedEntityTable,
String propertyName) |
void |
setDenormalizedSuperTable(Table denormalizedSuperTable) |
void |
setJPA2ElementCollection(boolean isJPA2ElementCollection) |
void |
setMappings(Mappings mappings) |
void |
setName(String name) |
void |
setSchema(String schema) |
void |
setUniqueConstraints(UniqueConstraint[] uniqueConstraints) |
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 setConstraints(String constraints)
public void setDenormalizedSuperTable(Table denormalizedSuperTable)
public void setMappings(Mappings mappings)
public void setJPA2ElementCollection(boolean isJPA2ElementCollection)
public Table bind()
public static Table buildAndFillTable(String schema, String catalog, ObjectNameSource nameSource, ObjectNameNormalizer.NamingStrategyHelper namingStrategyHelper, boolean isAbstract, List<UniqueConstraintHolder> uniqueConstraints, String constraints, Table denormalizedSuperTable, Mappings mappings, String subselect)
@Deprecated public static Table fillTable(String schema, String catalog, String realTableName, String logicalName, boolean isAbstract, List uniqueConstraints, String constraints, Table denormalizedSuperTable, Mappings mappings)
public static void bindFk(PersistentClass referencedEntity, PersistentClass destinationEntity, Ejb3JoinColumn[] columns, SimpleValue value, boolean unique, Mappings mappings)
public static void linkJoinColumnWithValueOverridingNameIfImplicit(PersistentClass referencedEntity, Iterator columnIterator, Ejb3JoinColumn[] columns, SimpleValue value)
public static void createUniqueConstraint(Value value)
@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 © 2001-2013 Red Hat, Inc. All Rights Reserved.