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

下面列出了怎么用org.hibernate.util.EqualsHelper的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: 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;
}
 
源代码2 项目: 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;
	}
}
 
源代码3 项目: 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;
	}
}
 
源代码4 项目: 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");
		}
	}
}
 
源代码5 项目: 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");
		}
	}
}
 
源代码6 项目: jasypt   文件: EncryptedBigIntegerType.java
public boolean equals(final Object x, final Object y) 
        throws HibernateException {
    return EqualsHelper.equals(x, y);
}
 
源代码7 项目: jasypt   文件: EncryptedBigDecimalType.java
public boolean equals(final Object x, final Object y) 
        throws HibernateException {
    return EqualsHelper.equals(x, y);
}
 
源代码8 项目: jasypt   文件: AbstractEncryptedAsStringType.java
public final boolean equals(final Object x, final Object y) 
        throws HibernateException {
    return EqualsHelper.equals(x, y);
}
 
源代码9 项目: jasypt   文件: EncryptedBigIntegerType.java
public boolean equals(final Object x, final Object y) 
        throws HibernateException {
    return EqualsHelper.equals(x, y);
}
 
源代码10 项目: jasypt   文件: EncryptedBigDecimalType.java
public boolean equals(final Object x, final Object y) 
        throws HibernateException {
    return EqualsHelper.equals(x, y);
}
 
源代码11 项目: jasypt   文件: AbstractEncryptedAsStringType.java
public final boolean equals(final Object x, final Object y) 
        throws HibernateException {
    return EqualsHelper.equals(x, y);
}
 
源代码12 项目: 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);
}
 
源代码13 项目: 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);
}
 
源代码14 项目: cacheonix-core   文件: NullableType.java
public boolean isEqual(Object x, Object y) {
	return EqualsHelper.equals(x, y);
}
 
源代码15 项目: cacheonix-core   文件: AbstractType.java
public boolean isEqual(Object x, Object y, EntityMode entityMode) {
	return EqualsHelper.equals(x, y);
}
 
 类所在包
 类方法
 同包方法