org.axiondb.util
Class Utils

java.lang.Object
  extended by org.axiondb.util.Utils

public class Utils
extends Object


Constructor Summary
Utils()
           
 
Method Summary
static boolean containsAny(Collection coll1, Collection coll2)
          Returns true iff at least one element is in both collections.
static boolean isBinary(int jdbcType)
           
static boolean isPrecisionRequired(int jdbcType)
           
static boolean isScaleRequired(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
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 #intersection 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

isPrecisionRequired

public static boolean isPrecisionRequired(int jdbcType)

isScaleRequired

public static boolean isScaleRequired(int type)

isBinary

public static boolean isBinary(int jdbcType)