FileDocCategorySizeDatePackage
CacheJoinFragment.javaAPI DocHibernate 3.2.5634Wed Nov 08 09:56:52 GMT 2006org.hibernate.sql

CacheJoinFragment.java

//$Id: $
package org.hibernate.sql;

import org.hibernate.AssertionFailure;

/**
 * A Caché dialect join.  Differs from ANSI only in that full outer join
 * is not supported.
 *
 * @author Jeff Miller
 * @author Jonathan Levinson
 */
public class CacheJoinFragment extends ANSIJoinFragment {

	public void addJoin(String tableName, String alias, String[] fkColumns, String[] pkColumns, int joinType, String on) {
		if ( joinType == FULL_JOIN ) {
			throw new AssertionFailure( "Cache does not support full outer joins" );
		}
		super.addJoin( tableName, alias, fkColumns, pkColumns, joinType, on );
	}

}