Open Source Repository

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



org/hibernate/dialect/function/StandardJDBCEscapeFunction.java
package org.hibernate.dialect.function;

import java.util.List;

import org.hibernate.type.Type;
import org.hibernate.engine.SessionFactoryImplementor;

/**
 * Analogous to {@link org.hibernate.dialect.function.StandardSQLFunction}
 * except that standard JDBC escape sequences (i.e. {fn blah}) are used when
 * rendering the SQL.
 *
 @author Steve Ebersole
 */
public class StandardJDBCEscapeFunction extends StandardSQLFunction {
  public StandardJDBCEscapeFunction(String name) {
    supername );
  }

  public StandardJDBCEscapeFunction(String name, Type typeValue) {
    supername, typeValue );
  }

  public String render(List args, SessionFactoryImplementor factory) {
    return "{fn " super.renderargs, factory "}";
  }

  public String toString() {
    return "{fn " + getName() "...}";
  }
}