| java.lang.Object com.xoetrope.data.pojo.XPojoAdapterEx
All known Subclasses: com.xoetrope.data.pojo.XPersistentPojoAdapterEx,
XPojoAdapterEx | public class XPojoAdapterEx (Code) | | A POJO adapter that extends the basic pojo to support listing and querying of
all possible properties.
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
|
XPojoAdapterEx | public XPojoAdapterEx(Class cl, XPojoDataSourceEx ds)(Code) | | Creates a new instance of XPojoAdapterEx
Parameters: cl - the class to be adapted Parameters: ds - the data source object. |
addCollectionType | protected void addCollectionType(String propertyName, String className)(Code) | | Marks that the specified collection is intended to store the elements
of the specified type
Parameters: propertyName - the name of the property representing the collection Parameters: className - the type of the collection elements |
addTransientCollectionType | protected void addTransientCollectionType(String propertyName, String className)(Code) | | Marks that the specified transient collection is intended to store elements
of the specified type.
Parameters: className - the type of the collection elements. |
addTransientProperty | protected void addTransientProperty(String propertyName, String className)(Code) | | Adds the transient property of the POJO
Parameters: propertyName - the name of the transient property Parameters: className - the name of the class whose instance will be "stored" bythis property |
customizePojoProperty | protected void customizePojoProperty(String propertyName, String propGetter, String propSetter)(Code) | | Adapt a property by replacing the getter and setter names
determined by reflection
Parameters: propName - the property being customized Parameters: propGetter - the getter method Parameters: propSetter - the setter method |
findAccessors | protected void findAccessors()(Code) | | |
findProperties | protected void findProperties()(Code) | | Finds and saves all properties of the adapted class.
|
getAdaptedClass | public Class getAdaptedClass()(Code) | | Gets the type adapted by this object.
class object |
getMethod | protected Method getMethod(String method)(Code) | | Gets the method described by the passed String.
Parameters: String - describing the method requested method |
getNumChildren | public int getNumChildren()(Code) | | Gets the number of properties
number of properties |
getPojoDataSourceEx | public XPojoDataSourceEx getPojoDataSourceEx()(Code) | | Gets the XPojoDataSourceEx object used to construct
POJO's model.
the XPojoDataSourceEx object. |
getProperties | protected XPojoProperties getProperties()(Code) | | Gets the properties of the Class being
adapted by this object.
|
getProperty | public XModel getProperty(String propertyName, XModel parentNode)(Code) | | Gets a model node wrapping property value of the passed object.
Parameters: obj - the object whose property is to be retrieved Parameters: propertyName - the name of the property Parameters: parentNode - the parent model node for the returned object XModel instance wrapping property value of the obj |
getSignature | protected static String getSignature(String method)(Code) | | Gets the method signature
Parameters: method - the name of the method + signature signature |
getSignature | protected static String getSignature(Method method)(Code) | | Gets the String describing the signature of the
specified method.
Parameters: method - the method whose signature is to beobtained the method signature |
|
|