|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.datasource.Domain
A utility class to access a XMA-domain-table (see ITabularDomData).
This class can be used to get long or short values of domain keys or to retrieved the complete domain.
Usually this is not needed, as the domain handling is done by widget models.
All domain values can be retrieved by this class or one domain row identfied by its key.
Domain rows are returned as IDomRow objects.
This class itself does not store any domain specific values beside the specTable given by getInstance() identifying a domain.
At construction time, the domain-table is specified by providing a specification String, see
ITabularDataSource.
This class may only be used at the server side of XMA.
| Method Summary | |
java.lang.String |
getDomainType()
Extracts the value of the type-parameter from the baseSpec. |
IDomRow |
getDomRow(java.lang.String key)
Returns an object providing information about a domain value whose key is given. |
IDomRow[] |
getDomRows()
Returns an array with all time valid IDomRows of a domain. |
IDomRow[] |
getDomRows(boolean onlyInValidTimeRange)
Returns an array with all IDomRows of a domain. |
ITabularDomData |
getDomTable()
Returns the table of domain values associated with the current environment. |
static Domain |
getInstance(java.lang.String specTable)
Returns an Domain object associated with a domain identified by specTable |
java.lang.String |
getLongValue(java.lang.String key)
Returns the Locale-dependent long value associated with the key stored in this. |
java.lang.String |
getShortValue(java.lang.String key)
Returns the Locale-dependent short value associated with the key. |
java.lang.String |
getSpecTable()
Returns the String that specifies the domain table. |
boolean |
isInTable(java.lang.String key)
Returns whether there exists a row in the associated domain table whose key is the one stored in this. |
boolean |
isValid(java.lang.String key)
Returns whether the key identifies a row in the associated domain table and the row is valid with respect to the valid-begin- and end-dates. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Domain getInstance(java.lang.String specTable)
specTable - Example: "type=rsc,bundle=at.spardat.xma.samplespar.data.kestpflicht"
public java.lang.String getSpecTable()
public ITabularDomData getDomTable()
Note that this method may only be used if the executing thread is the same that dispatched the XMA-RemoteCall.
public IDomRow getDomRow(java.lang.String key)
Note that this method may only be used if the executing thread is the same that dispatched the XMA-RemoteCall.
public java.lang.String getShortValue(java.lang.String key)
public java.lang.String getLongValue(java.lang.String key)
public boolean isValid(java.lang.String key)
ITabularDomDatapublic boolean isInTable(java.lang.String key)
public java.lang.String getDomainType()
public IDomRow[] getDomRows(boolean onlyInValidTimeRange)
onlyInValidTimeRange - if true then only rows with IDomRow.isInValidTimeRange() are returned
- if false all rows are returned.
public IDomRow[] getDomRows()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||