Example usage for org.hibernate.sql JoinType parse

List of usage examples for org.hibernate.sql JoinType parse

Introduction

In this page you can find the example usage for org.hibernate.sql JoinType parse.

Prototype

public static JoinType parse(int joinType) 

Source Link

Usage

From source file:org.jspresso.framework.model.persistence.hibernate.criterion.EnhancedDetachedCriteria.java

License:Open Source License

/**
 * Creates or gets a previously registered sub-criteria.
 *
 * @param masterCriteria//from w  w  w  .  ja  va  2  s  . co  m
 *          the parent criteria holding the sub-criteria.
 * @param associationPath
 *          the association path.
 * @param joinType
 *          the join type.
 * @return the new or previously registered sub-criteria.
 * @deprecated Use
 *             {@link #getSubCriteriaFor(DetachedCriteria, String, JoinType)}
 *             instead.
 */
@Deprecated
public DetachedCriteria getSubCriteriaFor(DetachedCriteria masterCriteria, String associationPath,
        int joinType) {
    return getSubCriteriaFor(masterCriteria, associationPath, JoinType.parse(joinType));
}

From source file:org.jspresso.framework.model.persistence.hibernate.criterion.EnhancedDetachedCriteria.java

License:Open Source License

/**
 * Creates or gets a previously registered sub-criteria.
 *
 * @param masterCriteria/*  www .  j  a  v a 2s  .c o m*/
 *          the parent criteria holding the sub-criteria.
 * @param associationPath
 *          the association path.
 * @param alias
 *          the alias.
 * @param joinType
 *          the join type.
 * @return the new or previously registered sub-criteria.
 * @deprecated use
 *             {@link #getSubCriteriaFor(DetachedCriteria, String, String, JoinType)}
 *             instead.
 */
@Deprecated
public DetachedCriteria getSubCriteriaFor(DetachedCriteria masterCriteria, String associationPath, String alias,
        int joinType) {
    return getSubCriteriaFor(masterCriteria, associationPath, alias, JoinType.parse(joinType));
}

From source file:pe.com.bbva.pic.dominio.Busqueda.java

License:Open Source License

/**
 * @deprecated use {@link #createAlias(String, String, JoinType)}
 *///w  w w .j ava2 s  .  c om
@Deprecated
public Busqueda createAlias(String associationPath, String alias, int joinType) throws HibernateException {
    return createAlias(associationPath, alias, JoinType.parse(joinType));
}

From source file:pe.com.bbva.pic.dominio.Busqueda.java

License:Open Source License

/**
 * @deprecated use {@link #createAlias(String, String, JoinType, Criterion)}
 *///from w w w .  ja va 2 s . com
@Deprecated
public Busqueda createAlias(String associationPath, String alias, int joinType, Criterion withClause)
        throws HibernateException {
    return createAlias(associationPath, alias, JoinType.parse(joinType), withClause);
}

From source file:pe.com.bbva.pic.dominio.Busqueda.java

License:Open Source License

/**
 * @deprecated use {@link #createCriteria(String, JoinType)}
 *//*from w  w  w .  ja v  a 2  s  .  co m*/
@Deprecated
public Busqueda createCriteria(String associationPath, int joinType) throws HibernateException {
    return createCriteria(associationPath, JoinType.parse(joinType));
}

From source file:pe.com.bbva.pic.dominio.Busqueda.java

License:Open Source License

/**
 * @deprecated use {@link #createCriteria(String, String, JoinType)}
 *//*from w w  w  . j  ava  2s  .  co  m*/
@Deprecated
public Busqueda createCriteria(String associationPath, String alias, int joinType) throws HibernateException {
    return createCriteria(associationPath, alias, JoinType.parse(joinType));
}

From source file:pe.com.bbva.pic.dominio.Busqueda.java

License:Open Source License

/**
 * @deprecated use {@link #createCriteria(String, String, JoinType, Criterion)}
 */// w ww .  j av  a 2s. c o m
@Deprecated
public Busqueda createCriteria(String associationPath, String alias, int joinType, Criterion withClause)
        throws HibernateException {
    return createCriteria(associationPath, alias, JoinType.parse(joinType), withClause);
}