net.java.ao
Class Common

java.lang.Object
  extended by net.java.ao.Common

public final class Common
extends java.lang.Object

WARNING: Not part of the public API. This class is public only to allow its use within other packages in the ActiveObjects library.

Author:
Daniel Spiewak

Constructor Summary
Common()
           
 
Method Summary
static java.lang.String convertDowncaseName(java.lang.String name)
           
static java.lang.String convertSimpleClassName(java.lang.String name)
           
static boolean fuzzyCompare(java.lang.Object a, java.lang.Object b)
           
static boolean fuzzyTypeCompare(int typeA, int typeB)
           
static java.lang.Class<?> getAttributeTypeFromMethod(java.lang.reflect.Method method)
           
static java.lang.Class<?> getCallingClass(int depth)
           
static java.util.List<java.lang.String> getIndexFields(EntityManager manager, java.lang.Class<? extends Entity> type)
           
static java.lang.String[] getMappingFields(java.lang.Class<? extends Entity> from, java.lang.Class<? extends Entity> to)
           
static boolean interfaceInheritsFrom(java.lang.Class<?> type, java.lang.Class<?> superType)
           
static boolean isAccessor(java.lang.reflect.Method method)
           
static boolean isMutator(java.lang.reflect.Method method)
           
static boolean typeInstanceOf(java.lang.Class<?> type, java.lang.Class<?> otherType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Common

public Common()
Method Detail

convertSimpleClassName

public static java.lang.String convertSimpleClassName(java.lang.String name)

convertDowncaseName

public static java.lang.String convertDowncaseName(java.lang.String name)

interfaceInheritsFrom

public static boolean interfaceInheritsFrom(java.lang.Class<?> type,
                                            java.lang.Class<?> superType)

typeInstanceOf

public static boolean typeInstanceOf(java.lang.Class<?> type,
                                     java.lang.Class<?> otherType)

getMappingFields

public static java.lang.String[] getMappingFields(java.lang.Class<? extends Entity> from,
                                                  java.lang.Class<? extends Entity> to)

isAccessor

public static boolean isAccessor(java.lang.reflect.Method method)

isMutator

public static boolean isMutator(java.lang.reflect.Method method)

getAttributeTypeFromMethod

public static java.lang.Class<?> getAttributeTypeFromMethod(java.lang.reflect.Method method)

getCallingClass

public static java.lang.Class<?> getCallingClass(int depth)

getIndexFields

public static java.util.List<java.lang.String> getIndexFields(EntityManager manager,
                                                              java.lang.Class<? extends Entity> type)

fuzzyCompare

public static boolean fuzzyCompare(java.lang.Object a,
                                   java.lang.Object b)

fuzzyTypeCompare

public static boolean fuzzyTypeCompare(int typeA,
                                       int typeB)