com.ibm.websphere.sdo.mediator
Interface JDBCMediator
-
public interface JDBCMediator
-
-
Method Summary
Methods Modifier and Type Method and Description void
applyChanges(boolean sortUpdates, commonj.sdo.DataObject datagraph)
Flush all changes made to the datagraph back to a data source.void
applyChanges(commonj.sdo.DataObject datagraph)
Flush all changes made to the datagraph back to a data source.ConnectionWrapper
getConnectionWrapper()
Get the ConnectionWrapper objectcommonj.sdo.DataObject
getEmptyGraph()
Create an empty datagraph and return its root data objectcommonj.sdo.DataObject
getGraph()
Create a DataGraph and return its root data objectcommonj.sdo.DataObject
getGraph(commonj.sdo.DataObject parameters)
Create a DataGraph with the given parameters and return its root data objectlong
getKey()
Return a unique key valuecommonj.sdo.DataObject
getParameterDataObject()
Create and return a DataObject to be used by getGraph(DataObject).org.eclipse.emf.ecore.EClass
getSchema()
Return the datagraph schemavoid
setConnectionWrapper(ConnectionWrapper connectionWrapper)
Set the ConnectionWrapper objectvoid
setResultSetInfo(com.ibm.websphere.sdo.mediator.ResultSetInfo info)
-
-
-
Method Detail
-
applyChanges
void applyChanges(commonj.sdo.DataObject datagraph) throws MediatorException
Flush all changes made to the datagraph back to a data source. Equivalent to applyChanges(true, datagraph).- Parameters:
datagraph
-- Throws:
MediatorException
-
applyChanges
void applyChanges(boolean sortUpdates, commonj.sdo.DataObject datagraph) throws MediatorException
Flush all changes made to the datagraph back to a data source. If sortUpdates is true, updates to the database will be sorted to avoid referential integrity constraint violations.- Parameters:
sortUpdates
-datagraph
-- Throws:
MediatorException
-
getGraph
commonj.sdo.DataObject getGraph() throws MediatorException
Create a DataGraph and return its root data object- Returns:
- the root data object in the data graph
- Throws:
MediatorException
-
getGraph
commonj.sdo.DataObject getGraph(commonj.sdo.DataObject parameters) throws MediatorException
Create a DataGraph with the given parameters and return its root data object- Parameters:
parameters
-- Returns:
- the root data object in the data graph
- Throws:
MediatorException
-
getSchema
org.eclipse.emf.ecore.EClass getSchema() throws MediatorException
Return the datagraph schema- Returns:
- the EClass for the root data object in the DataGraph
- Throws:
MediatorException
-
getEmptyGraph
commonj.sdo.DataObject getEmptyGraph() throws MediatorException
Create an empty datagraph and return its root data object- Returns:
- the root data object
- Throws:
MediatorException
-
getKey
long getKey() throws MediatorException
Return a unique key value- Returns:
- a unique key
- Throws:
MediatorException
-
setConnectionWrapper
void setConnectionWrapper(ConnectionWrapper connectionWrapper)
Set the ConnectionWrapper object- Parameters:
connectionWrapper
-
-
getConnectionWrapper
ConnectionWrapper getConnectionWrapper()
Get the ConnectionWrapper object- Returns:
- the connection wrapper
-
getParameterDataObject
commonj.sdo.DataObject getParameterDataObject() throws MediatorException
Create and return a DataObject to be used by getGraph(DataObject). If generated select statements are being used, the DataObject will contain Properties for each FilterArgument defined in the Metadata. If the select statement has been supplied, the DataObject will contain a Property for each '?' placeholder in the select string. These properties will be named arg0,arg1,...,argn- Returns:
- the data object
- Throws:
MediatorException
-
setResultSetInfo
void setResultSetInfo(com.ibm.websphere.sdo.mediator.ResultSetInfo info) throws MediatorException
- Throws:
MediatorException
-
-