About this task
Bean Collection's TypeManager object maintains a list of
simple data types, such as String, Date, Number, and so on. The simple
data type object is initialized as BeanDataField, when you access
its value. Following is the code sample of how to view the data type
list:
TypeManager tm = new TypeManager();
ArrayList<Class<?>> classSimpleType = tm.getType();
All the defined simple data types are stored
in ArrayList. You can also extend some predefined objects as simple
data types to store data in your application. Following is the code
sample of how TypeManager supports customer extension:
TypeManager tm = new TypeManager();
tm.treatClassAsSimpleType(Locale.class);
where
treatClassAsSimpleType is the class
for the targeted simple Java Bean,
such as java.util.Locale.