public static Condition[] buildConditions(Entity entity) {
		if (null == entity || entity.isEmpty()) {
			return null;
		}

		final Condition[] conditions = new Condition[entity.size()];
		int i = 0;
		Object value;
		for (Entry<String, Object> entry : entity.entrySet()) {
			value = entry.getValue();
			if (value instanceof Condition) {
				conditions[i++] = (Condition) value;
			} else {
				conditions[i++] = new Condition(entry.getKey(), value);
			}
		}

		return conditions;
	}
public static Condition [ ] buildConditions ( Entity entity ) { if ( null == entity || entity . isEmpty ( ) ) { return null ; } final Condition [ ] conditions = new Condition [ entity . size ( ) ] ; int i = 0 ; Object value ; for ( Entry < String , Object > entry : entity . entrySet ( ) ) { value = entry . getValue ( ) ; if ( value instanceof Condition ) { conditions [ i ++ ] = ( Condition ) value ; } else { conditions [ i ++ ] = new Condition ( entry . getKey ( ) , value ) ; } } return conditions ; }
通过实体对象构建条件对象

@param entity 实体对象
@return 条件对象