wt.query.qml
Class IntrospectionUtil

java.lang.Object
  extended bywt.query.qml.IntrospectionUtil
All Implemented Interfaces:
RemoteAccess

public class IntrospectionUtil
extends Object
implements RemoteAccess


Nested Class Summary
static class IntrospectionUtil.PropertyInfo
           
 
Field Summary
private static String CLASSNAME
           
private static Hashtable columnCache
           
static boolean DEBUG
           
private static int DISPLAY_INDEX
           
private static Hashtable displayNameCache
           
private static Object EMPTY
           
private static DebugWriter LOG
           
private static int MAX_THREAD_COUNT
           
private static Class[] METHOD_ARG_TYPES
           
private static Class[] methodArgTypes
           
private static int NAME_DISPLAY_INDEX
           
private static char NAME_SEPERATOR
           
private static Hashtable propertyCache
           
private static Hashtable propertyNameCache
           
private static int REFERENCE_DISPLAY_INDEX
           
private static int REFERENCE_NAME_DISPLAY_INDEX
           
(package private) static boolean SERVER
           
protected static int threadCount
           
protected static Object threadCountLock
           
 
Fields inherited from interface wt.method.RemoteAccess
versionID
 
Constructor Summary
IntrospectionUtil()
           
 
Method Summary
static String _getPropertyDisplayName(String a_className, String a_propertyName, String a_seperator)
           
static ArrayList _retrievePropertyInfos(ClassInfo a_classInfo, Locale a_locale)
           
private static void buildProperties(IntrospectionUtil.PropertyInfo[] a_properties, PropertyDisplayInfo a_displayInfo, PropertyNameDisplayInfo a_nameDisplayInfo)
           
private static void buildQueryNameMap(String a_baseQueryName, ClassInfo a_baseClassInfo, ClassInfo a_classInfo, Hashtable a_map, Locale a_locale)
           
private static void buildReferences(IntrospectionUtil.PropertyInfo[] a_properties, PropertyDisplayInfo a_referenceDisplayInfo, PropertyNameDisplayInfo a_referenceNameDisplayInfo, String a_baseName, String a_baseDisplayName, Locale a_locale)
           
static Vector getNonPropertyColumnDescriptors(ClassInfo a_classInfo, Locale a_locale)
           
static PropertyDisplayInfo getPropertyDisplayInfo(String a_className, Locale a_locale)
           
static String getPropertyDisplayName(String a_className, String a_propertyName, String a_seperator)
           
private static Object[] getPropertyInfo(ClassInfo a_classInfo, Locale a_locale)
           
static IntrospectionUtil.PropertyInfo[] getPropertyInfos(ClassInfo a_classInfo, Locale a_locale)
           
static String getPropertyName(String a_className, String a_propertyName, String a_seperator, Locale a_locale)
           
static PropertyNameDisplayInfo getPropertyNameDisplayInfo(String a_className, Locale a_locale)
           
static PropertyDisplayInfo getReferenceDisplayInfo(String a_className, Locale a_locale)
           
private static Object[] getReferenceInfo(ClassInfo a_classInfo, Locale a_locale)
           
static PropertyNameDisplayInfo getReferenceNameDisplayInfo(String a_className, Locale a_locale)
           
static boolean hasValidQueryName(IntrospectionUtil.PropertyInfo a_propertyInfo, String a_baseQueryName, ClassInfo a_baseClassInfo, Locale a_locale)
           
static boolean isAssignableFrom(ClassInfo a_parentClassInfo, ClassInfo a_targetClassInfo)
           
static boolean isAssignableFrom(String a_parentClassName, String a_targetClassName)
           
private static Vector retrieveNonPropertyColumnDescriptors(ClassInfo a_classInfo, Locale a_locale)
           
private static IntrospectionUtil.PropertyInfo[] retrievePropertyInfos(ClassInfo a_classInfo, Locale a_locale)
           
static void startBackgroundRetrieve(ClassInfo a_classInfo, boolean a_recurse, Locale a_locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSNAME

private static final String CLASSNAME

DEBUG

public static final boolean DEBUG

LOG

private static final DebugWriter LOG

SERVER

static final boolean SERVER

propertyCache

private static Hashtable propertyCache

propertyNameCache

private static Hashtable propertyNameCache

displayNameCache

private static Hashtable displayNameCache

columnCache

private static Hashtable columnCache

threadCount

protected static int threadCount

threadCountLock

protected static Object threadCountLock

EMPTY

private static final Object EMPTY

methodArgTypes

private static Class[] methodArgTypes

REFERENCE_DISPLAY_INDEX

private static final int REFERENCE_DISPLAY_INDEX
See Also:
Constant Field Values

REFERENCE_NAME_DISPLAY_INDEX

private static final int REFERENCE_NAME_DISPLAY_INDEX
See Also:
Constant Field Values

DISPLAY_INDEX

private static final int DISPLAY_INDEX
See Also:
Constant Field Values

NAME_DISPLAY_INDEX

private static final int NAME_DISPLAY_INDEX
See Also:
Constant Field Values

NAME_SEPERATOR

private static final char NAME_SEPERATOR
See Also:
Constant Field Values

MAX_THREAD_COUNT

private static final int MAX_THREAD_COUNT
See Also:
Constant Field Values

METHOD_ARG_TYPES

private static final Class[] METHOD_ARG_TYPES
Constructor Detail

IntrospectionUtil

public IntrospectionUtil()
Method Detail

getPropertyDisplayName

public static String getPropertyDisplayName(String a_className,
                                            String a_propertyName,
                                            String a_seperator)
                                     throws WTException
Throws:
WTException

getPropertyName

public static String getPropertyName(String a_className,
                                     String a_propertyName,
                                     String a_seperator,
                                     Locale a_locale)
                              throws WTException
Throws:
WTException

_getPropertyDisplayName

public static String _getPropertyDisplayName(String a_className,
                                             String a_propertyName,
                                             String a_seperator)
                                      throws WTException
Throws:
WTException

isAssignableFrom

public static boolean isAssignableFrom(String a_parentClassName,
                                       String a_targetClassName)
                                throws WTException
Throws:
WTException

isAssignableFrom

public static boolean isAssignableFrom(ClassInfo a_parentClassInfo,
                                       ClassInfo a_targetClassInfo)
                                throws WTException
Throws:
WTException

hasValidQueryName

public static boolean hasValidQueryName(IntrospectionUtil.PropertyInfo a_propertyInfo,
                                        String a_baseQueryName,
                                        ClassInfo a_baseClassInfo,
                                        Locale a_locale)
                                 throws WTException
Throws:
WTException

getPropertyInfos

public static IntrospectionUtil.PropertyInfo[] getPropertyInfos(ClassInfo a_classInfo,
                                                                Locale a_locale)
                                                         throws WTException
Throws:
WTException

getNonPropertyColumnDescriptors

public static Vector getNonPropertyColumnDescriptors(ClassInfo a_classInfo,
                                                     Locale a_locale)
                                              throws WTException
Throws:
WTException

getReferenceDisplayInfo

public static PropertyDisplayInfo getReferenceDisplayInfo(String a_className,
                                                          Locale a_locale)
                                                   throws WTException
Throws:
WTException

getReferenceNameDisplayInfo

public static PropertyNameDisplayInfo getReferenceNameDisplayInfo(String a_className,
                                                                  Locale a_locale)
                                                           throws WTException
Throws:
WTException

getPropertyDisplayInfo

public static PropertyDisplayInfo getPropertyDisplayInfo(String a_className,
                                                         Locale a_locale)
                                                  throws WTException
Throws:
WTException

getPropertyNameDisplayInfo

public static PropertyNameDisplayInfo getPropertyNameDisplayInfo(String a_className,
                                                                 Locale a_locale)
                                                          throws WTException
Throws:
WTException

startBackgroundRetrieve

public static void startBackgroundRetrieve(ClassInfo a_classInfo,
                                           boolean a_recurse,
                                           Locale a_locale)
                                    throws WTException
Throws:
WTException

getReferenceInfo

private static Object[] getReferenceInfo(ClassInfo a_classInfo,
                                         Locale a_locale)
                                  throws WTException
Throws:
WTException

getPropertyInfo

private static Object[] getPropertyInfo(ClassInfo a_classInfo,
                                        Locale a_locale)
                                 throws WTException
Throws:
WTException

buildReferences

private static void buildReferences(IntrospectionUtil.PropertyInfo[] a_properties,
                                    PropertyDisplayInfo a_referenceDisplayInfo,
                                    PropertyNameDisplayInfo a_referenceNameDisplayInfo,
                                    String a_baseName,
                                    String a_baseDisplayName,
                                    Locale a_locale)
                             throws WTException
Throws:
WTException

retrievePropertyInfos

private static IntrospectionUtil.PropertyInfo[] retrievePropertyInfos(ClassInfo a_classInfo,
                                                                      Locale a_locale)
                                                               throws WTException
Throws:
WTException

_retrievePropertyInfos

public static ArrayList _retrievePropertyInfos(ClassInfo a_classInfo,
                                               Locale a_locale)
                                        throws WTException
Throws:
WTException

retrieveNonPropertyColumnDescriptors

private static Vector retrieveNonPropertyColumnDescriptors(ClassInfo a_classInfo,
                                                           Locale a_locale)
                                                    throws WTException
Throws:
WTException

buildProperties

private static void buildProperties(IntrospectionUtil.PropertyInfo[] a_properties,
                                    PropertyDisplayInfo a_displayInfo,
                                    PropertyNameDisplayInfo a_nameDisplayInfo)
                             throws WTException
Throws:
WTException

buildQueryNameMap

private static void buildQueryNameMap(String a_baseQueryName,
                                      ClassInfo a_baseClassInfo,
                                      ClassInfo a_classInfo,
                                      Hashtable a_map,
                                      Locale a_locale)
                               throws WTException
Throws:
WTException