|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jcorporate.expresso.core.dataobjects.BaseDataObject com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject com.jcorporate.expresso.core.dbobj.DBObject com.jcorporate.expresso.core.dbobj.SecuredDBObject com.jcorporate.expresso.core.dbobj.RowSecuredDBObject com.sri.emo.dbobj.WizDefinition
public class WizDefinition
Definition of an Emo Wizard.
DataObjects provide the low-level Object Relational mapping between these objects and a JDBC backend.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
---|
DBObject.FieldError, DBObject.FieldUpdate |
Field Summary | |
---|---|
static String |
DEFAULT_EDITING_CONTROLLER
The default controller for editing a wizard. |
static String |
FLD_ADDITIONAL_INFO
Field that is the classname of any 1-1 mapping database object that provides additional information for this wizard. |
static String |
FLD_CONTROLLER
Name of the controller. |
static String |
FLD_EDITOR_CONTROLLER
The classname of the contorller for adding. |
static String |
FLD_FACTORY
Public constant for access to field "Factory". |
static String |
FLD_ID
Public constant for access to field "Item ID". |
static String |
FLD_NAME
Public constant for access to field "Name". |
static String |
FLD_SUMMARY
Public constant for access to field "Bean". |
static String |
FLD_WIZARD
Public constant for access to field "wizard class". |
static String |
TABLE_NAME
Table name. |
Fields inherited from class com.jcorporate.expresso.core.dbobj.RowSecuredDBObject |
---|
DEFAULT_PERMISSION_CODE |
Fields inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
---|
ADD, ALL_FUNCTIONS, CACHE_NAME, CACHE_TTY, DELETE, SEARCH, SYSTEM_ACCOUNT_NAME, UPDATE |
Fields inherited from class com.jcorporate.expresso.core.dbobj.DBObject |
---|
ATTRIBUTE_ERROR, ATTRIBUTE_ERROR_MESSAGE, ATTRIBUTE_PAGE_LIMIT, BIG_DECIMAL_ZERO, CACHE_LIMIT_PERCENT, CACHE_LIMIT_TTL, EMAIL_MASK, EVENT_ADD, EVENT_DELETE, EVENT_UPDATE, FLOAT_MASK, INT_MASK, IS_CHECK_RELATIONAL_INTEGRITY, IS_MUTABLE, sCacheStats, UPDATE_CHANGED_ONLY, WHERE_KEYWORD |
Fields inherited from class com.jcorporate.expresso.core.dataobjects.jdbc.JDBCDataObject |
---|
anyFieldsDistinct, anyFieldsToInput, anyFieldsToRetrieve, appendCustomWhere, caseSensitiveQuery, customWhereClause, dbKey, distinctFields, inputFields, localConnection, LONGBINARY_READ_DEFAULT_SIZE, maxRecords, myClassName, myUpdates, offsetRecord, recordSet, retrieveFields, sMetadataMap, sortKeys |
Fields inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
---|
currentStatus, globalMask |
Fields inherited from interface com.jcorporate.expresso.core.dataobjects.Securable |
---|
SYSTEM_ACCOUNT |
Fields inherited from interface com.jcorporate.expresso.core.dataobjects.DataObject |
---|
STATUS_CURRENT, STATUS_DELETED, STATUS_NEW, STATUS_UPDATED |
Constructor Summary | |
---|---|
WizDefinition()
Creates an instance of WizDefinition. |
|
WizDefinition(DBConnection connection)
|
|
WizDefinition(DBConnection dbConnection,
int uid)
Creates an instance of WizDefinition that uses an already grabbed DBConnection object. |
Method Summary | |
---|---|
void |
add()
Adds the record to the defined data source and adds the additional info dataobjects bound to this object as well. |
void |
checkField(String fieldName,
String fieldValue)
Override of standard checkfield to verify class name and factory name. |
void |
clear()
Clears all field data as well as additional info. |
void |
delete(boolean deleteDetails)
Override of delete that deletes 'additional info' 1-1 mappings as well. |
JDBCDataObject |
getAdditionalInfo()
Retrieves an additional information object associated with this class. |
Class |
getAdditionalInfoClass()
Retrieves the additional information class. |
String |
getController()
|
String |
getId()
Get the Wizard id. |
Controller |
getManagingController()
Returns the managing contorller |
List |
getPageDefinitions()
Retrieves all page definitions associated with this wizard definition. |
List |
getPertinentDecisionSteps()
Retrieve a list of pertinent decision steps for the current wizard. |
Controller |
getRunningController()
Retrieve the controller to 'run' the wizard. |
String |
getSummary()
|
String |
getSummaryRaw()
|
Transition |
getViewTrans()
Provide a transition for viewing this object, suitable for creating an HTTP link. |
String |
getWizardClass()
|
String |
getWizName()
Get the Wizard name. |
void |
setAdditionalInfo(Class newClass)
Default class for additional information. |
void |
setAdditionalInfo(JDBCDataObject replacementInfo)
Sets a new object to the additional info placeholder. |
void |
setId(int id)
|
void |
setId(String id)
|
protected void |
setupFields()
One time intiialization of all the field types. |
String |
toString()
|
void |
update()
Updates this object and any additional info objects bound to this wizard. |
protected void |
validateClass(String fieldName,
String className,
Class requiredSuperclass)
Validates a class by (1) name, and (2) makes sure it derives from the specified class. |
Methods inherited from class com.jcorporate.expresso.core.dbobj.RowSecuredDBObject |
---|
add, addGroupPerm, canRequesterAdministrate, canRequesterRead, canRequesterWrite, checkDeleteDetailPerm, checkKeyLength, defaultGroup, defaultPermissions, deleteAll, find, getAdministrateGroups, getGroups, getPermissions, getReadGroups, getWriteGroups, isAdminGroup, isReadGroup, isRowAllowed, isRowAllowed, isWriteGroup, ownerID, removeGroup, retrieve, searchAndRetrieveList, searchAndRetrieveList, setPermissions, setPermissions |
Methods inherited from class com.jcorporate.expresso.core.dbobj.SecuredDBObject |
---|
canRequesterAdd, canRequesterDelete, canRequesterUpdate, checkAllowed, copyAttributes, count, createSecurityCache, delete, getRequestingUid, getRequestingUser, getString, getString, getString, getString, getString, getString, getSystemUid, instantiate, isAllowed, search, setRequestingUid, setRequestingUser |
Methods inherited from class com.jcorporate.expresso.core.dataobjects.BaseDataObject |
---|
getGlobalMask, getStatus, isGlobalMasked, setFieldsWithDefaults, setGlobalMask, setStatus |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String FLD_ID
public static final String FLD_NAME
public static final String FLD_WIZARD
public static final String FLD_FACTORY
public static final String FLD_SUMMARY
public static final String TABLE_NAME
public static final String FLD_CONTROLLER
public static final String FLD_EDITOR_CONTROLLER
public static final String FLD_ADDITIONAL_INFO
public static final String DEFAULT_EDITING_CONTROLLER
Constructor Detail |
---|
public WizDefinition() throws DBException
DBException
- upon initialization exception.SecuredDBObject.SecuredDBObject(java.lang.String, int)
public WizDefinition(DBConnection dbConnection, int uid) throws DBException
Example:
DBConnection oneConnection = DBConnectionPool
.getInstance("default").getConnection();
oneConnection.setAutoCommit(false);
WizDefinition myObj = new WizDefinition(oneConnection);
//Set fields here....
myObj.add();
myObj.clear();
//more set fields
myObj.add();
//Commit the transaction
oneConnection.commit();
oneConnection.release();
dbConnection
- com.jcorporate.expresso.core.db.DBConnectionuid
- the user id
DBException
- upon construction errorpublic WizDefinition(DBConnection connection) throws DBException
DBException
Method Detail |
---|
public Controller getManagingController() throws DBException, ControllerException
DBException
ControllerException
public Controller getRunningController() throws DBException, ControllerException
DBException
ControllerException
public List getPageDefinitions() throws DBException
DBException
- upon error.protected void setupFields() throws DBException
setupFields
in class DBObject
DBException
- upon errorpublic void setAdditionalInfo(Class newClass) throws DBException
newClass
- Class
DBException
public Class getAdditionalInfoClass() throws DBException
DBException
public void setAdditionalInfo(JDBCDataObject replacementInfo)
replacementInfo
- DataObjectpublic JDBCDataObject getAdditionalInfo() throws DBException, DBRecordNotFoundException
DBException
- upon general database error.
DBRecordNotFoundException
- if unable to locate the additional info.public void checkField(String fieldName, String fieldValue) throws DBException
checkField
in interface DataObject
checkField
in class DBObject
fieldName
- the name of the field to check.fieldValue
- the value of the field to check.
DBException
- upon validation error.protected void validateClass(String fieldName, String className, Class requiredSuperclass) throws DBException
className
- the name of the class.requiredSuperclass
- the required superclass.fieldName
- the name of the field we're validating.
DBException
- upon validation error.public List getPertinentDecisionSteps() throws DBException
DBException
- upon error.
Only useful for Selection Wizardspublic Transition getViewTrans() throws DBException
getViewTrans
in interface IViewable
DBException
- upon error.public String getId() throws DBException
DBException
- upon getField errorpublic String getWizName() throws DBException
DBException
- upon getField errorpublic void setId(String id) throws DBException
DBException
public String getWizardClass() throws DBException
DBException
public String getSummary() throws DBException
DBException
public String getController() throws DBException
DBException
public void setId(int id) throws DBException
DBException
public String getSummaryRaw() throws DBException
DBException
public void delete(boolean deleteDetails) throws DBException
delete
in class RowSecuredDBObject
DBException
public void add() throws DBException
add
in interface DataObject
add
in class RowSecuredDBObject
DBException
- upon error.public void update() throws DBException
update
in interface DataObject
update
in class RowSecuredDBObject
DBException
- upon error.public void clear() throws DBException
clear
in interface DataObject
clear
in class DBObject
DBException
- upon error.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |