|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.introspection.WTIntrospector
WTIntrospector is a factory for class info objects.
Supported API: true
Extendable: false
ClassInfo
,
LinkInfo
Field Summary | |
static String |
ARRAY_TYPE
Key to access the Array ObjectType extended value from a ClassInfo. |
static String |
CHANGEABLE
Key to access the Changeable setting (as a wt.introspection.ChangeableKind) from a PropertyDescriptor obtained from a ClassInfo. |
private static Hashtable |
classInfoCache
|
private static String |
CLASSNAME
|
static String |
CONSTRAINED_TYPE
Key to access the ConstrainedType (as a String), if it is constrained, from a PropertyDescriptor obtained from a ClassInfo. |
static boolean |
DEBUG
|
static String |
DEFINED_AS
Key to access the Fully Qualified Name of the Property, as it was defined (modeled). |
static String |
DERIVED
Key to access the Derived setting from a PropertyDescriptor obtained from a ClassInfo. |
(package private) static String |
DISPLAY_ENTRY
Temporary, to support display name utility |
static String |
INCREMENT
Key to access the Sequence Increment extended value from a ClassInfo. |
static String |
INFO_EXTENSION
The extension used for serialized ClassInfo files. |
private static Hashtable |
infoCache
|
static String |
INITIAL_VALUE
Key to access the Initial Value setting from a PropertyDescriptor obtained from a ClassInfo. |
static String |
LOCALIZABLE
Key to access the Localizable setting from a PropertyDescriptor obtained from a ClassInfo. |
private static DebugWriter |
LOG
|
static String |
LOWER_LIMIT
Key to access the Lower Limit from a PropertyDescriptor obtained from a ClassInfo. |
static String |
MODEL_RESOURCE_SUFFIX
The suffix used for resource files related to modeled information. |
static String |
MODELED_PERSISTENT_TYPE
Key to access the ColumnType from a PropertyDescriptor obtained from a ClassInfo. |
private static MappedRegistry |
modelRegistry
|
private static String |
MODELREGISTRY
|
private static Hashtable |
noClassInfo
|
static String |
OBJECT_NAME
Key to access the datastore ObjectName extended value from a ClassInfo. |
static String |
ORACLE_OPTIONS
Key to access the Oracle Options extended value from a ClassInfo. |
static String |
PERSISTENT
Key to access the Persistence setting from a PropertyDescriptor obtained from a ClassInfo. |
static String |
QUERY_NAME
Key to access the Query Name from a PropertyDescriptor obtained from a ClassInfo. |
static String |
REQUIRED
Key to access the Required setting from a PropertyDescriptor obtained from a ClassInfo. |
private static String |
RESOURCE
|
static String |
SEED
Key to access the Sequence Seed extended value from a ClassInfo. |
private static String |
SIMPLE_CLASSNAME
|
static String |
SQL_SERVER_OPTIONS
Key to access the SQLServer Options extended value from a ClassInfo. |
static String |
STEREOTYPE
Key to access the Stereotype from a PropertyDescriptor obtained from a ClassInfo. |
static String |
STRING_CASE
Key to access the StringCase setting (as a wt.util.CaseKind) from a PropertyDescriptor obtained from a ClassInfo. |
static String |
UPDATEABLE
Key to access the Updateable setting from a PropertyDescriptor obtained from a ClassInfo. |
static String |
UPPER_LIMIT
Key to access the Upper Limit from a PropertyDescriptor obtained from a ClassInfo. |
static String |
VALUE_SET_METHOD
Key to access the Method object, that returns the valid value set, from a PropertyDescriptor obtained from a ClassInfo. |
Constructor Summary | |
private |
WTIntrospector()
|
Method Summary | |
static ClassInfo |
getClassInfo(Class aClass)
Gets class meta info. |
static ClassInfo |
getClassInfo(String aClassname)
Gets class meta info. |
static ClassInfo |
getClassInfo(String aClassname,
String dir)
Gets class meta info. |
static ClassInfo |
getClassInfoByAttribute(String attribute)
Gets class meta info. |
static DatabaseInfo |
getDatabaseInfo(String aClassname)
Gets database meta info for a class. |
static DatabaseInfo |
getDatabaseInfo(String aClassname,
String dir)
Gets database meta info for a class. |
static LinkInfo |
getLinkInfo(Class aClass)
Gets class meta info. |
static LinkInfo |
getLinkInfo(String aClassname)
Gets link class meta info. |
static LinkInfo |
getLinkInfo(String aClassname,
String dir)
Gets link class meta info. |
static Class |
getValidType(PropertyDescriptor pd)
Get the valid type for a PropertyDescriptor. |
static String |
getValidTypeName(PropertyDescriptor pd)
Get the name of the valid type for a PropertyDescriptor. |
static boolean |
isFunction(String expression)
Determines if an expression contains a function call. |
private static ClassInfo |
loadInfo(String aClassname,
String dir)
|
static PropertyDescriptor |
newPropertyDescriptor(PropertyDescriptor old)
Create a new PropertyDescriptor by copying values from an existing PropertyDescriptor. |
static PropertyDescriptor |
newPropertyDescriptor(PropertyDescriptor x,
PropertyDescriptor y)
Merge information from two PropertyDescriptors. |
static String |
truncatedColumnName(String columnName)
Computes the truncated column name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String CLASSNAME
private static final String SIMPLE_CLASSNAME
public static final boolean DEBUG
private static final DebugWriter LOG
private static final String RESOURCE
private static final String MODELREGISTRY
private static Hashtable infoCache
private static Hashtable classInfoCache
private static Hashtable noClassInfo
private static MappedRegistry modelRegistry
public static final String INFO_EXTENSION
public static final String MODEL_RESOURCE_SUFFIX
public static final String STEREOTYPE
public static final String DERIVED
public static final String PERSISTENT
public static final String QUERY_NAME
public static final String STRING_CASE
public static final String INITIAL_VALUE
public static final String REQUIRED
public static final String LOWER_LIMIT
public static final String UPPER_LIMIT
public static final String UPDATEABLE
public static final String CHANGEABLE
public static final String VALUE_SET_METHOD
public static final String CONSTRAINED_TYPE
public static final String DEFINED_AS
public static final String LOCALIZABLE
public static final String MODELED_PERSISTENT_TYPE
static final String DISPLAY_ENTRY
public static final String OBJECT_NAME
public static final String ORACLE_OPTIONS
public static final String SQL_SERVER_OPTIONS
public static final String ARRAY_TYPE
public static final String SEED
public static final String INCREMENT
Constructor Detail |
private WTIntrospector()
Method Detail |
public static ClassInfo getClassInfo(Class aClass) throws WTIntrospectionException
aClass
- is the target class
WTIntrospectionException
- if class info cannot be loadedpublic static ClassInfo getClassInfo(String aClassname) throws WTIntrospectionException
aClassname
- is the full qualified name of the target class
WTIntrospectionException
- if class info cannot be loadedpublic static ClassInfo getClassInfo(String aClassname, String dir) throws WTIntrospectionException
aClassname
- is the full qualified name of the target classdir
- is the root directory under which ClassInfo's are located
WTIntrospectionException
- if class info cannot be loadedpublic static ClassInfo getClassInfoByAttribute(String attribute) throws WTIntrospectionException
attribute
- is a fully qualified attribute name
WTIntrospectionException
- if class info cannot be loadedpublic static boolean isFunction(String expression)
expression
- string that may contain function call
public static DatabaseInfo getDatabaseInfo(String aClassname) throws WTIntrospectionException
aClassname
- is the full qualified name of the target class
WTIntrospectionException
- if database info cannot be loadedpublic static DatabaseInfo getDatabaseInfo(String aClassname, String dir) throws WTIntrospectionException
aClassname
- is the full qualified name of the target classdir
- is the root directory under which ClassInfo's are located
WTIntrospectionException
- if database info cannot be loadedpublic static LinkInfo getLinkInfo(Class aClass) throws WTIntrospectionException
aClass
- is the target link class
WTIntrospectionException
- if class info cannot be loadedpublic static LinkInfo getLinkInfo(String aClassname) throws WTIntrospectionException
aClassname
- is the full qualified name of the target class
WTIntrospectionException
- if class info cannot be loadedpublic static LinkInfo getLinkInfo(String aClassname, String dir) throws WTIntrospectionException
aClassname
- is the full qualified name of the target classdir
- is the root directory under which ClassInfo's are located
WTIntrospectionException
- if class info cannot be loadedpublic static Class getValidType(PropertyDescriptor pd) throws WTIntrospectionException
pd
- The target PropertyDescriptor.
WTIntrospectionException
- if fails to construct new PropertyDescriptor.public static String getValidTypeName(PropertyDescriptor pd) throws WTIntrospectionException
pd
- The target PropertyDescriptor.
WTIntrospectionException
- if fails to construct new PropertyDescriptor.private static ClassInfo loadInfo(String aClassname, String dir) throws WTIntrospectionException
WTIntrospectionException
public static PropertyDescriptor newPropertyDescriptor(PropertyDescriptor old) throws IntrospectionException
old
- existing PropertyDescriptor
IntrospectionException
- if fails to construct new PropertyDescriptorpublic static PropertyDescriptor newPropertyDescriptor(PropertyDescriptor x, PropertyDescriptor y) throws IntrospectionException
x
- The first (lower priority) PropertyDescriptory
- The second (higher priority) PropertyDescriptor
IntrospectionException
- if fails to construct new PropertyDescriptorpublic static String truncatedColumnName(String columnName)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |