Java 类org.hibernate.util.EqualsHelper 实例源码

项目:cacheonix-core    文件:QueryKey.java   
public boolean equals(Object other) {
    QueryKey that = (QueryKey) other;
    if ( !sqlQueryString.equals(that.sqlQueryString) ) return false;
    if ( !EqualsHelper.equals(firstRow, that.firstRow) || !EqualsHelper.equals(maxRows, that.maxRows) ) return false;
    if ( !EqualsHelper.equals(customTransformer, that.customTransformer) ) return false;
    if (types==null) {
        if (that.types!=null) return false;
    }
    else {
        if (that.types==null) return false;
        if ( types.length!=that.types.length ) return false;
        for ( int i=0; i<types.length; i++ ) {
            if ( types[i].getReturnedClass() != that.types[i].getReturnedClass() ) return false;
            if ( !types[i].isEqual( values[i], that.values[i], entityMode ) ) return false;
        }
    }
    if ( !EqualsHelper.equals(filters, that.filters) ) return false;
    if ( !EqualsHelper.equals(namedParameters, that.namedParameters) ) return false;
    return true;
}
项目:cacheonix-core    文件:CustomPersister.java   
public int[] findDirty(
    Object[] x,
    Object[] y,
    Object owner,
    SessionImplementor session
) throws HibernateException {
    if ( !EqualsHelper.equals( x[0], y[0] ) ) {
        return new int[] { 0 };
    }
    else {
        return null;
    }
}
项目:cacheonix-core    文件:CustomPersister.java   
public int[] findModified(
    Object[] x,
    Object[] y,
    Object owner,
    SessionImplementor session
) throws HibernateException {
    if ( !EqualsHelper.equals( x[0], y[0] ) ) {
        return new int[] { 0 };
    }
    else {
        return null;
    }
}
项目:training    文件:BatchUploadProcessor.java   
private void validateLinesHaveTheSamePrice(BatchOrder order) {
    BatchOrderLine firstLine = order.getLines().iterator().next();
    for (BatchOrderLine line : order.getLines()) {
        if (!EqualsHelper.equals(firstLine.getPrice(), line.getPrice())) {
            throw new InvalidOrder("Lines of this order have different prices");
        }
    }
}
项目:training    文件:BatchOrderProcessor.java   
private void validateLinesHaveTheSamePrice() {
    BatchOrderLine firstLine = order.getLines().iterator().next();
    for (BatchOrderLine line : order.getLines()) {
        if (!EqualsHelper.equals(firstLine.getPrice(), line.getPrice())) {
            throw new InvalidOrder("Lines of this order have different prices");
        }
    }
}
项目:Equella    文件:ImmutableHibernateXStreamType.java   
@Override
public boolean equals(Object x, Object y) throws HibernateException // NOSONAR
{
    return EqualsHelper.equals(x, y);
}
项目:lams    文件:AbstractLobType.java   
/**
 * This implementation delegates to the Hibernate EqualsHelper.
 * @see org.hibernate.util.EqualsHelper#equals
 */
@Override
public boolean equals(Object x, Object y) throws HibernateException {
    return EqualsHelper.equals(x, y);
}
项目:spring4-understanding    文件:AbstractLobType.java   
/**
 * This implementation delegates to the Hibernate EqualsHelper.
 * @see org.hibernate.util.EqualsHelper#equals
 */
@Override
public boolean equals(Object x, Object y) throws HibernateException {
    return EqualsHelper.equals(x, y);
}
项目:cacheonix-core    文件:NullableType.java   
public boolean isEqual(Object x, Object y) {
    return EqualsHelper.equals(x, y);
}
项目:cacheonix-core    文件:AbstractType.java   
public boolean isEqual(Object x, Object y, EntityMode entityMode) {
    return EqualsHelper.equals(x, y);
}
项目:class-guard    文件:AbstractLobType.java   
/**
 * This implementation delegates to the Hibernate EqualsHelper.
 * @see org.hibernate.util.EqualsHelper#equals
 */
public boolean equals(Object x, Object y) throws HibernateException {
    return EqualsHelper.equals(x, y);
}