Opf
Class IObjectManager


public class IObjectManager


Interface for brokering objects

summary
Interface for brokering objects

Method Summary
 voidAddObject(object domainObject)
          
Insert the object to the datasource
 voidBeginTransaction()
           
 voidCommitTransaction()
           
 voidDeleteObject(object domainObject)
          
Delete the object from the datasource
 voidFlush(object domainObject)
          
Execute the appropriate datasource command for the specified object
 voidFlush()
          
Execute the appropriate datasource commands for all traced objects
 objectGetObject(Type type, object key)
          
Retrieves an object from the datasource
based on a single PK
 objectGetObject(Type type, object[] keys)
          
Retrieves an object from the datasource
based on a composite PK
 objectGetObject(Type type, IQuery query)
          
Retrieves an object from the datasource
based on a query.
 IListGetObjects(Type type, IQuery query)
          
Retrieves an object from the datasource
based on a Query object
 voidRollbackTransaction()
           

Method Detail

AddObject

public void AddObject(object domainObject)

Insert the object to the datasource
Parameters:
summary
Insert the object to the datasource

BeginTransaction

public void BeginTransaction()

CommitTransaction

public void CommitTransaction()

DeleteObject

public void DeleteObject(object domainObject)

Delete the object from the datasource
Parameters:
summary
Delete the object from the datasource

Flush

public void Flush(object domainObject)

Execute the appropriate datasource command for the specified object
Parameters:
summary
Execute the appropriate datasource command for the specified object

Flush

public void Flush()

Execute the appropriate datasource commands for all traced objects
Parameters:
summary
Execute the appropriate datasource commands for all traced objects

GetObject

public object GetObject(Type type, object key)

Retrieves an object from the datasource
based on a single PK
Parameters:
summary
Retrieves an object from the datasource
based on a single PK
returns

GetObject

public object GetObject(Type type, object[] keys)

Retrieves an object from the datasource
based on a composite PK
Parameters:
summary
Retrieves an object from the datasource
based on a composite PK
returns

GetObject

public object GetObject(Type type, IQuery query)

Retrieves an object from the datasource
based on a query. Throws exception if more than 1 object found.
Parameters:
summary
Retrieves an object from the datasource
based on a query. Throws exception if more than 1 object found.
returns

GetObjects

public IList GetObjects(Type type, IQuery query)

Retrieves an object from the datasource
based on a Query object
summary
Retrieves an object from the datasource
based on a Query object

RollbackTransaction

public void RollbackTransaction()