public static boolean objectAssignableTo ( Object object , String className ) throws MjdbcException { AssertUtils . assertNotNull ( object ) ; boolean result = false ; Class clazz = null ; try { clazz = Class . forName ( className ) ; } catch ( ClassNotFoundException ex ) { throw new MjdbcException ( ex ) ; } result = clazz . isAssignableFrom ( object . getClass ( ) ) ; return result ; }
Checks if instance can be cast to specified Class