com.ibm.websphere.sdo.mediator

Interface JDBCMediator


  1. public interface JDBCMediator

Method Summary

Modifier and Type Method and Description
  1. void
applyChanges(boolean sortUpdates,commonj.sdo.DataObject datagraph)
Flush all changes made to the datagraph back to a data source.
  1. void
applyChanges(commonj.sdo.DataObject datagraph)
Flush all changes made to the datagraph back to a data source.
  1. ConnectionWrapper
getConnectionWrapper()
Get the ConnectionWrapper object
  1. commonj.sdo.DataObject
getEmptyGraph()
Create an empty datagraph and return its root data object
  1. commonj.sdo.DataObject
getGraph()
Create a DataGraph and return its root data object
  1. commonj.sdo.DataObject
getGraph(commonj.sdo.DataObject parameters)
Create a DataGraph with the given parameters and return its root data object
  1. long
getKey()
Return a unique key value
  1. commonj.sdo.DataObject
getParameterDataObject()
Create and return a DataObject to be used by getGraph(DataObject).
  1. org.eclipse.emf.ecore.EClass
getSchema()
Return the datagraph schema
  1. void
setConnectionWrapper(ConnectionWrapper connectionWrapper)
Set the ConnectionWrapper object
  1. void
setResultSetInfo(com.ibm.websphere.sdo.mediator.ResultSetInfo info)

Method Detail

applyChanges

  1. void applyChanges(commonj.sdo.DataObject datagraph)
  2. throws MediatorException
Flush all changes made to the datagraph back to a data source. Equivalent to applyChanges(true, datagraph).
Parameters:
datagraph -
Throws:

applyChanges

  1. void applyChanges(boolean sortUpdates,
  2. commonj.sdo.DataObject datagraph)
  3. 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:

getGraph

  1. commonj.sdo.DataObject getGraph( )
  2. throws MediatorException
Create a DataGraph and return its root data object
Returns:
the root data object in the data graph
Throws:

getGraph

  1. commonj.sdo.DataObject getGraph( commonj.sdo.DataObject parameters)
  2. 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:

getSchema

  1. org.eclipse.emf.ecore.EClass getSchema( )
  2. throws MediatorException
Return the datagraph schema
Returns:
the EClass for the root data object in the DataGraph
Throws:

getEmptyGraph

  1. commonj.sdo.DataObject getEmptyGraph( )
  2. throws MediatorException
Create an empty datagraph and return its root data object
Returns:
the root data object
Throws:

getKey

  1. long getKey()
  2. throws MediatorException
Return a unique key value
Returns:
a unique key
Throws:

setConnectionWrapper

  1. void setConnectionWrapper(ConnectionWrapper connectionWrapper)
Set the ConnectionWrapper object
Parameters:
connectionWrapper -

getConnectionWrapper

  1. ConnectionWrapper getConnectionWrapper( )
Get the ConnectionWrapper object
Returns:
the connection wrapper

getParameterDataObject

  1. commonj.sdo.DataObject getParameterDataObject( )
  2. 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:

setResultSetInfo

  1. void setResultSetInfo(com.ibm.websphere.sdo.mediator.ResultSetInfo info)
  2. throws MediatorException
Throws: