Open Source Repository

Home /hibernate/hibernate-3.2.4.ga | Repository Home



org/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.addJointableName, alias, fkColumns, pkColumns, joinType, on );
  }

}