org.axiondb.util

Class Utils

public class Utils extends Object

Method Summary
static booleancontainsAny(Collection coll1, Collection coll2)
Returns true iff at least one element is in both collections.
static booleanisBinary(int jdbcType)
static booleanisPrecisionRequired(int jdbcType)
static booleanisScaleRequired(int type)

Method Detail

containsAny

public static boolean containsAny(Collection coll1, Collection coll2)
Returns true iff at least one element is in both collections.

In other words, this method returns true iff the Utils of coll1 and coll2 is not empty.

Parameters: coll1 the first collection, must not be null coll2 the first collection, must not be null

Returns: true iff the intersection of the collections is non-empty

isBinary

public static boolean isBinary(int jdbcType)

isPrecisionRequired

public static boolean isPrecisionRequired(int jdbcType)

isScaleRequired

public static boolean isScaleRequired(int type)