FileDocCategorySizeDatePackage
Join.javaAPI DocHibernate 3.2.54351Thu Jun 22 14:51:44 BST 2006org.hibernate.mapping

Join

public class Join extends Object implements Serializable
author
Gavin King

Fields Summary
private static final org.hibernate.sql.Alias
PK_ALIAS
private ArrayList
properties
private Table
table
private KeyValue
key
private PersistentClass
persistentClass
private boolean
sequentialSelect
private boolean
inverse
private boolean
optional
private String
customSQLInsert
private boolean
customInsertCallable
private org.hibernate.engine.ExecuteUpdateResultCheckStyle
insertCheckStyle
private String
customSQLUpdate
private boolean
customUpdateCallable
private org.hibernate.engine.ExecuteUpdateResultCheckStyle
updateCheckStyle
private String
customSQLDelete
private boolean
customDeleteCallable
private org.hibernate.engine.ExecuteUpdateResultCheckStyle
deleteCheckStyle
Constructors Summary
Methods Summary
public voidaddProperty(Property prop)


	    
		properties.add(prop);
		prop.setPersistentClass( getPersistentClass() );
	
public booleancontainsProperty(Property prop)

		return properties.contains(prop);
	
public voidcreateForeignKey()

		getKey().createForeignKeyOfEntity( persistentClass.getEntityName() );
	
public voidcreatePrimaryKey()

		//Primary key constraint
		PrimaryKey pk = new PrimaryKey();
		pk.setTable(table);
		pk.setName( PK_ALIAS.toAliasString( table.getName() ) );
		table.setPrimaryKey(pk);

		pk.addColumns( getKey().getColumnIterator() );
	
public java.lang.StringgetCustomSQLDelete()

		return customSQLDelete;
	
public org.hibernate.engine.ExecuteUpdateResultCheckStylegetCustomSQLDeleteCheckStyle()

		return deleteCheckStyle;
	
public java.lang.StringgetCustomSQLInsert()

		return customSQLInsert;
	
public org.hibernate.engine.ExecuteUpdateResultCheckStylegetCustomSQLInsertCheckStyle()

		return insertCheckStyle;
	
public java.lang.StringgetCustomSQLUpdate()

		return customSQLUpdate;
	
public org.hibernate.engine.ExecuteUpdateResultCheckStylegetCustomSQLUpdateCheckStyle()

		return updateCheckStyle;
	
public KeyValuegetKey()

		return key;
	
public PersistentClassgetPersistentClass()

		return persistentClass;
	
public java.util.IteratorgetPropertyIterator()

		return properties.iterator();
	
public intgetPropertySpan()

		return properties.size();
	
public TablegetTable()

		return table;
	
public booleanisCustomDeleteCallable()

		return customDeleteCallable;
	
public booleanisCustomInsertCallable()

		return customInsertCallable;
	
public booleanisCustomUpdateCallable()

		return customUpdateCallable;
	
public booleanisInverse()

		return inverse;
	
public booleanisLazy()

		Iterator iter = getPropertyIterator();
		while ( iter.hasNext() ) {
			Property prop = (Property) iter.next();
			if ( !prop.isLazy() ) return false;
		}
		return true;
	
public booleanisOptional()

		return optional;
	
public booleanisSequentialSelect()

		return sequentialSelect;
	
public voidsetCustomSQLDelete(java.lang.String customSQLDelete, boolean callable, org.hibernate.engine.ExecuteUpdateResultCheckStyle checkStyle)

		this.customSQLDelete = customSQLDelete;
		this.customDeleteCallable = callable;
		this.deleteCheckStyle = checkStyle;
	
public voidsetCustomSQLInsert(java.lang.String customSQLInsert, boolean callable, org.hibernate.engine.ExecuteUpdateResultCheckStyle checkStyle)

		this.customSQLInsert = customSQLInsert;
		this.customInsertCallable = callable;
		this.insertCheckStyle = checkStyle;
	
public voidsetCustomSQLUpdate(java.lang.String customSQLUpdate, boolean callable, org.hibernate.engine.ExecuteUpdateResultCheckStyle checkStyle)

		this.customSQLUpdate = customSQLUpdate;
		this.customUpdateCallable = callable;
		this.updateCheckStyle = checkStyle;
	
public voidsetInverse(boolean leftJoin)

		this.inverse = leftJoin;
	
public voidsetKey(KeyValue key)

		this.key = key;
	
public voidsetOptional(boolean nullable)

		this.optional = nullable;
	
public voidsetPersistentClass(PersistentClass persistentClass)

		this.persistentClass = persistentClass;
	
public voidsetSequentialSelect(boolean deferred)

		this.sequentialSelect = deferred;
	
public voidsetTable(Table table)

		this.table = table;
	
public java.lang.StringtoString()

		return getClass().getName() + '(" + table.toString() + ')";