public class

TableBinder

extends Object
java.lang.Object
   ↳ org.hibernate.cfg.annotations.TableBinder

Class Overview

Table related operations

Summary

Public Constructors
TableBinder()
Public Methods
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)
This method is deprecated. Use buildUniqueConstraintHolders(UniqueConstraint[]) instead
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)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TableBinder ()

Public Methods

public static void addIndexes (Table hibTable, Index[] indexes, Mappings mappings)

public Table bind ()

public static void bindFk (PersistentClass referencedEntity, PersistentClass destinationEntity, Ejb3JoinColumn[] columns, SimpleValue value, boolean unique, Mappings mappings)

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)

public static List<UniqueConstraintHolder> buildUniqueConstraintHolders (UniqueConstraint[] annotations)

Build a list of UniqueConstraintHolder instances given a list of UniqueConstraint annotations.

Parameters
annotations The UniqueConstraint annotations.
Returns

public static List<String[]> buildUniqueConstraints (UniqueConstraint[] constraintsArray)

This method is deprecated.
Use buildUniqueConstraintHolders(UniqueConstraint[]) instead

public static void createUniqueConstraint (Value value)

public static Table fillTable (String schema, String catalog, String realTableName, String logicalName, boolean isAbstract, List uniqueConstraints, String constraints, Table denormalizedSuperTable, Mappings mappings)

public String getName ()

public static void linkJoinColumnWithValueOverridingNameIfImplicit (PersistentClass referencedEntity, Iterator columnIterator, Ejb3JoinColumn[] columns, SimpleValue value)

public void setAbstract (boolean anAbstract)

public void setCatalog (String catalog)

public void setConstraints (String constraints)

public void setDefaultName (String ownerEntity, String ownerEntityTable, String associatedEntity, String associatedEntityTable, String propertyName)

public void setDenormalizedSuperTable (Table denormalizedSuperTable)

public void setJPA2ElementCollection (boolean isJPA2ElementCollection)

public void setMappings (Mappings mappings)

public void setName (String name)

public void setSchema (String schema)

public void setUniqueConstraints (UniqueConstraint[] uniqueConstraints)