Top Fields Constructors Methods
org.hibernate.cfg

public Class IndexOrUniqueKeySecondPass

extends Object
implements SecondPass
Class Inheritance
All Implemented Interfaces
org.hibernate.cfg.SecondPass, java.io.Serializable
Imports
java.util.Map, org.hibernate.AnnotationException, .MappingException, org.hibernate.mapping.Column, .Table

Author
Emmanuel Bernard

Field Summary

Modifier and TypeField and Description
private final Ejb3Column
private final String[]
private final String
private final Mappings
private Table
private final boolean

Constructor Summary

AccessConstructor and Description
public
IndexOrUniqueKeySecondPass(Table table, String indexName, String[] columns, Mappings mappings)

Build an index

public
IndexOrUniqueKeySecondPass(String indexName, Ejb3Column column, Mappings mappings)

Build an index

public
IndexOrUniqueKeySecondPass(String indexName, Ejb3Column column, Mappings mappings, boolean unique)

Build an index if unique is false or a Unique Key if unique is true

Method Summary

Modifier and TypeMethod and Description
private void
public void
doSecondPass(Map<K, V> persistentClasses)

Implements org.hibernate.cfg.SecondPass.doSecondPass.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnback to summary
private final Ejb3Column column
columnsback to summary
private final String[] columns
indexNameback to summary
private final String indexName
mappingsback to summary
private final Mappings mappings
tableback to summary
private Table table
uniqueback to summary
private final boolean unique

Constructor Detail

IndexOrUniqueKeySecondPassback to summary
public IndexOrUniqueKeySecondPass(Table table, String indexName, String[] columns, Mappings mappings)

Build an index

IndexOrUniqueKeySecondPassback to summary
public IndexOrUniqueKeySecondPass(String indexName, Ejb3Column column, Mappings mappings)

Build an index

IndexOrUniqueKeySecondPassback to summary
public IndexOrUniqueKeySecondPass(String indexName, Ejb3Column column, Mappings mappings, boolean unique)

Build an index if unique is false or a Unique Key if unique is true

Method Detail

addConstraintToColumnback to summary
private void addConstraintToColumn(String columnName)
doSecondPassback to summary
public void doSecondPass(Map<K, V> persistentClasses) throws MappingException

Implements org.hibernate.cfg.SecondPass.doSecondPass.