|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--planetj.dataengine.AbstractContext
!!DA (6/11/2003 8:06:21 AM) documentation needed
| Field Summary | |
static String |
className
Class name. |
static int |
DEFAULT_TYPE
Default type for parameter values. |
static String |
PARAM_ESCAPE_NUMBERED
|
static String |
PARAM_ESCAPE_TABLE
|
static String |
PARAM_ESCAPE_USAGE_ID
|
static String |
PARAM_ESCAPE_USER
|
static String |
PARAM_ESCAPE_USER_USAGE_ID
|
static String |
PARAM_NUMBERED
|
static String |
PARAM_TABLE
|
static String |
PARAM_USAGE_ID
|
static String |
PARAM_USER
|
static String |
PARAM_USER_USAGE_ID
|
| Constructor Summary | |
AbstractContext()
AbstractContext constructor comment. |
|
AbstractContext(IUser user)
AbstractContext constructor comment. |
|
| Method Summary | |
void |
clear()
Wipes out info in this context, restoring the default values. |
void |
clearParameterValues()
Clears all the parameter values for this context, as well as any validation exceptions. |
Object |
clone()
Creates an unlocked copy of this context. |
static boolean |
equals(Object one,
Object two)
|
abstract Object |
execute()
Executes this context. |
String |
getCode()
Gets this context's code string. |
long |
getDataTimestamp()
Gets the time when the data in this context was read from its source. |
Iterator |
getDisplayParameters()
Iterates over the parameters in this context which should be displayed to the user. |
ExecutingContext |
getExecutingContext()
Gets this context's executing context. |
String |
getNavigationKey()
Get the key used to store/retrieve this Row to/from navigation. |
String |
getNavigationListKey()
Get the key used to store and retrieve a List of Rows that have been put into navigation. |
String |
getOriginalCode()
Gets this context's original code string. |
IParameter |
getParameter(int index)
Gets a parameter, based on its index |
IParameter |
getParameter(String uniqueId)
Gets a parameter by its unique id, or by its context specific id |
ParameterCollection |
getParameterCollection()
Gets the ParameterCollection which contains this context's parameters |
int |
getParameterCount()
Gets the number of parameters present in this context |
int |
getParameterCount(Class paramClass)
Gets the number of parameters present in this context which are of the specified class (or are subclasses of the specified class) |
Iterator |
getParameterDisplayFields()
Deprecated. (6/11/2003 8:01:23 AM) This method will not allow setting the Field's default value from a user property. Replaced by getParameterDisplayFields(ExecutingContext) |
Iterator |
getParameterDisplayFields(ExecutingContext ec)
Gets an Iterator for all of the display fields for this context's display parameters. |
List |
getParameters()
Gets a List of this context's IParameter objects. |
Iterator |
getParameters(Class paramType)
Iterates over the parameters in this context which are compatable with the specified Java type |
Row |
getParameterSource()
Gets the row that was used to set the named parameters in this context, or null if no such row exists. |
ValidationExceptionCollection |
getParameterValidationExceptions()
Be careful when you call this method because it is derived and spins through all the fields. |
PropertyGroup |
getPropertyGroup(String groupName)
Gets the first PropertyGroup with the given property group name. |
abstract PropertyGroupList |
getPropertyGroups()
Get all the property groups associated with this context. |
List |
getPropertyGroups(String groupName)
Get this RowCollection's property groups with the given group name. |
Iterator |
getRowParameters()
Gets an Iterator for iterating over this context's RowParameter objects |
boolean |
isCloneNeeded()
Test to see if tiis navigation object should be clone upon storing and retrieving. |
boolean |
isContainsDisplayParameters()
Tests if there are any parameters which should be displayed |
boolean |
isContainsParameters(Class paramType)
Tests if this context contains any parameters which are of the specified Java type, or are subclasses of the specified Java type. |
boolean |
isLocked()
Check to see if this context is locked. |
boolean |
isParameterized()
Check if this context code is parameterized. |
void |
loadUserAndExecutingContextValues()
When this method is invoked, values are taken from the user object and executing context and set on the appropriate Parameters. |
void |
loadUserValues()
Deprecated. Use loadUserAndExecutingContextValues instead |
void |
lock()
Locks this context, preventing its state from being altered. |
void |
parameterAltered()
Callback method so that parameters can inform their context when they are alerted |
void |
removeNavigationKey()
Clears out any navigation key that may have been set on this Row. |
void |
setCode(String code)
Sets this context's code string. |
void |
setCode(String code,
boolean shadowize)
Sets this context's code string. |
void |
setDataTimestamp(long timestamp)
Sets the time when the data in this context was read from its source. |
void |
setExecutingContext(ExecutingContext excontext)
Sets this context's executing context. |
void |
setNavigationKey(String key)
Set the key used to store/retrieve this Row to/from navigation. |
void |
setParameterCollection(ParameterCollection newParameters)
Sets the ParameterCollection which contains this context's parameters. |
void |
setParameterDisplayValues(Row row)
Provides values for all of this context's display parameters. |
void |
setParameterValue(int position,
int value)
Provides a value to a parameter for this context's code string. |
void |
setParameterValue(int position,
Object value)
Provides a value to a parameter for this context's code string. |
void |
setParameterValues(Row row)
Provides values for all of this context's RowParameters and ContextParameterParameters. |
void |
setParameterValues(String parameterId,
Object value)
Sets the value of parameters in this context |
String |
toString()
Gets a String representation of this context |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String className
public static final String PARAM_USER
public static final String PARAM_NUMBERED
public static final String PARAM_USAGE_ID
public static final String PARAM_USER_USAGE_ID
public static final String PARAM_TABLE
public static final String PARAM_ESCAPE_USER
public static final String PARAM_ESCAPE_NUMBERED
public static final String PARAM_ESCAPE_USAGE_ID
public static final String PARAM_ESCAPE_USER_USAGE_ID
public static final String PARAM_ESCAPE_TABLE
public static final int DEFAULT_TYPE
| Constructor Detail |
public AbstractContext()
public AbstractContext(IUser user)
| Method Detail |
public void clear()
throws DataEngineException
DataEngineException
public void clearParameterValues()
throws CMException
CMExceptionpublic Object clone()
clone in interface INavigationObjectclone in class Object
public static final boolean equals(Object one,
Object two)
public abstract Object execute()
throws CMException
CMExceptionpublic String getCode()
public long getDataTimestamp()
public Iterator getDisplayParameters()
getDisplayParameters in interface IContextpublic ExecutingContext getExecutingContext()
getExecutingContext in interface IContextpublic String getNavigationKey()
getNavigationKey in interface INavigationObjectpublic String getNavigationListKey()
getNavigationListKey in interface INavigationObjectpublic String getOriginalCode()
getOriginalCode in interface IContextpublic IParameter getParameter(int index)
getParameter in interface IContextpublic IParameter getParameter(String uniqueId)
getParameter in interface IContextpublic ParameterCollection getParameterCollection()
public int getParameterCount()
getParameterCount in interface IContextpublic int getParameterCount(Class paramClass)
getParameterCount in interface IContextpublic Iterator getParameterDisplayFields()
public Iterator getParameterDisplayFields(ExecutingContext ec)
ec - current context in which code is executing.
public List getParameters()
getParameters in interface IContextpublic Iterator getParameters(Class paramType)
getParameters in interface IContextpublic Row getParameterSource()
public ValidationExceptionCollection getParameterValidationExceptions()
getParameterValidationExceptions in interface IContextpublic PropertyGroup getPropertyGroup(String groupName)
getPropertyGroup in interface IContextpublic abstract PropertyGroupList getPropertyGroups()
getPropertyGroups in interface IContextpublic List getPropertyGroups(String groupName)
getPropertyGroups in interface IContextpublic Iterator getRowParameters()
public boolean isCloneNeeded()
INavigationObject
isCloneNeeded in interface INavigationObjectpublic boolean isContainsDisplayParameters()
public boolean isContainsParameters(Class paramType)
public boolean isLocked()
public boolean isParameterized()
public void loadUserAndExecutingContextValues()
throws DataEngineException
DataEngineException
public void loadUserValues()
throws DataEngineException
DataEngineExceptionpublic void lock()
public void parameterAltered()
throws DataEngineException
parameterAltered in interface IContextDataEngineExceptionpublic void removeNavigationKey()
removeNavigationKey in interface INavigationObjectpublic void setCode(String code)
public void setCode(String code,
boolean shadowize)
public void setDataTimestamp(long timestamp)
public void setExecutingContext(ExecutingContext excontext)
setExecutingContext in interface IContextpublic void setNavigationKey(String key)
setNavigationKey in interface INavigationObjectpublic void setParameterCollection(ParameterCollection newParameters)
public void setParameterDisplayValues(Row row)
throws CMException
CMException
public void setParameterValue(int position,
int value)
throws CMException
position - The index of the parameter whose value is being supplied. The
first parameter is 0, the second is 1, etc.value - The value to give to the parameter.
CMException
public void setParameterValue(int position,
Object value)
throws CMException
position - The index of the parameter whose value is being supplied. The
first parameter is 0, the second is 1, etc.value - The value to give to the parameter. This value may be null. After
the value is passed to this method it must never be
changed. If it is possible for this value to change, you should
clone it and pass a clone which will not change to this method.
CMException
public void setParameterValues(String parameterId,
Object value)
throws CMException
setParameterValues in interface IContextparameterId - A String which identifies the parameters whose values will be set. This String can either be
a context specific id, a name, or by a named index.
The context specific id looks like ¤3¿ or ¤0¿
The parameter name is the string corresponding to the parameter's key or column (e.g. BALANCE or VAL)
A parameter name may correspond to multiple parameters, in which case all of these parameters will have their
values set by this method
The named index is the string "_parm" with the parameter's index appended on the end (e.g. _parm0 or _parm2)value - The value to set parameters to
CMException
public void setParameterValues(Row row)
throws CMException
setParameterValues in interface IContextCMExceptionpublic String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||