| java.lang.Object com.jcorporate.expresso.core.dataobjects.DataObjectFactory
DataObjectFactory | final public class DataObjectFactory (Code) | | Constructs 'often' DataObjects based upon standard order of initialization
and the interfaces it implements. For example, Defineable objects must
have setDefinition() called first, then setDataContext(), then setUid()
author: Michael Rimov |
Method Summary | |
public static DataObject | createDataObject(Class clazz, String dataContext, int uid) | public static DataObject | createDataObject(Class clazz, String dataContext, String definition, int uid) Typesafe way of creating a dataobject
Parameters: definition - The definition to define the Defineable Object. | public static Object | createObject(Class clazz, String dataContext, int uid) Creates an object that doesn't implement Defineable. | public static Object | createObject(Class clazz, String dataContext, String definition, int uid) Create an object given the class, datacontext, definition and uid.
Parameters: definition - The definition to define the Defineable Object. |
createDataObject | public static DataObject createDataObject(Class clazz, String dataContext, int uid) throws DataException(Code) | | Typesafe way of creating a data object that doesn't implement Defineable
Parameters: clazz - Object class Parameters: dataContext - Database context Parameters: uid - the user id that will be set if the object is Securable an instantiated and properly constructed object. throws: DataException - upon error |
createDataObject | public static DataObject createDataObject(Class clazz, String dataContext, String definition, int uid) throws DataException(Code) | | Typesafe way of creating a dataobject
Parameters: definition - The definition to define the Defineable Object. Ifthe object does not implement Defineable, this parameter may be null. Parameters: clazz - Object class Parameters: dataContext - Database context Parameters: uid - the user id that will be set if the object is Securable an instantiated and properly constructed DataObject. throws: DataException - upon error |
createObject | public static Object createObject(Class clazz, String dataContext, int uid) throws DataException(Code) | | Creates an object that doesn't implement Defineable.
Parameters: clazz - Object class name Parameters: dataContext - Database context Parameters: uid - the user id that will be set if the object is Securable an instantiated and properly constructed object. throws: DataException - upon error |
createObject | public static Object createObject(Class clazz, String dataContext, String definition, int uid) throws DataException(Code) | | Create an object given the class, datacontext, definition and uid.
Parameters: definition - The definition to define the Defineable Object. Ifthe object does not implement Defineable, this parameter may be null. Parameters: clazz - Object class Parameters: dataContext - Database context Parameters: uid - the user id that will be set if the object is Securable an instantiated and properly constructed object. throws: DataException - upon error |
|
|