|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Websphere Data Objects - DataObjectAccessBean Implementation
This interface defines the interface to a DataObject.
DataObjectAccessBean has the following reponsibilities
Nested Class Summary |
Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
Method Summary | |
void |
autoGenerateKey()
Populates the Primary key with values from the Key generator |
void |
close()
Releases any resources, such as database cursors, being held by the DataList for the current page |
void |
commit()
Commit the current Changes that have been made to the back-end |
void |
create()
Inserts this DataObject in the back-end |
void |
emptyDataGraph()
Creates new empty datagraph |
void |
find()
executes the query to find one DataObject |
void |
find(java.util.Map params)
executes the query to find one DataObject |
java.lang.String |
getAction()
get the default action upon initialization of this data list (fill/empty/none) |
DataListAccessBean |
getDataListAccessBean(java.lang.String path)
return the DataListAccessBean at the given path |
java.lang.Long |
getNextGeneratedKey()
Get the next Key Value from the Auto Key Generator |
java.util.Map |
getParams()
Return the current parameters that are used during execution |
java.lang.Class |
getType(java.lang.String key)
Returns the type to which this map maps the specified key. |
boolean |
isReadOnly(java.lang.String key)
Returns whether the object to which this map maps the specified key is read only. |
void |
remove()
Removes the current DataObject from the back-end |
void |
setAction(java.lang.String action)
Set the default action upon initialization of this data list (fill/empty/none) |
void |
setParams(java.util.Map map)
Set the current parameters that are used during execution |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Method Detail |
public void close() throws com.ibm.websphere.wdo.mediator.exception.MediatorException
com.ibm.websphere.wdo.mediator.exception.MediatorException
public void commit() throws com.ibm.websphere.wdo.mediator.exception.MediatorException
com.ibm.websphere.wdo.mediator.exception.MediatorException
public void create() throws com.ibm.websphere.wdo.mediator.exception.MediatorException
com.ibm.websphere.wdo.mediator.exception.MediatorException
public void remove()
public void emptyDataGraph() throws com.ibm.websphere.wdo.mediator.exception.MediatorException
com.ibm.websphere.wdo.mediator.exception.MediatorException
public void find() throws com.ibm.websphere.wdo.mediator.exception.MediatorException
com.ibm.websphere.wdo.mediator.exception.MediatorException
public void find(java.util.Map params) throws com.ibm.websphere.wdo.mediator.exception.MediatorException
params
- takes a Map of input parameters to pass to the executing query
com.ibm.websphere.wdo.mediator.exception.MediatorException
public java.util.Map getParams()
public void setParams(java.util.Map map)
map
- of parameters to be used during executionpublic DataListAccessBean getDataListAccessBean(java.lang.String path) throws java.lang.ClassCastException, com.ibm.websphere.wdo.mediator.exception.MediatorException
com.ibm.websphere.wdo.mediator.exception.MediatorException
java.lang.ClassCastException
- if it is not a DataList at that pathpublic java.lang.Class getType(java.lang.String key) throws com.ibm.websphere.wdo.mediator.exception.MediatorException
key
- key whose associated value is to be returned.
java.lang.ClassCastException
- if the key is of an inappropriate type for
this map.
java.lang.NullPointerException
- key is null and this map does not
not permit null keys.
com.ibm.websphere.wdo.mediator.exception.MediatorException
Map.get(Object)
public boolean isReadOnly(java.lang.String key) throws com.ibm.websphere.wdo.mediator.exception.MediatorException
key
- key whose associated value is to be returned.
java.lang.ClassCastException
- if the key is of an inappropriate type for
this map.
java.lang.NullPointerException
- key is null and this map does not
not permit null keys.
com.ibm.websphere.wdo.mediator.exception.MediatorException
Map.get(Object)
public void setAction(java.lang.String action)
action
- the default action to perform upon initialization of this data listpublic java.lang.String getAction()
public void autoGenerateKey() throws com.ibm.websphere.wdo.mediator.exception.MediatorException
com.ibm.websphere.wdo.mediator.exception.MediatorException
public java.lang.Long getNextGeneratedKey() throws com.ibm.websphere.wdo.mediator.exception.MediatorException
com.ibm.websphere.wdo.mediator.exception.MediatorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |