com.siebel.rf.offline.branch.datastore
Class RDBMSPersister

java.lang.Object
  |
  +--com.siebel.rf.offline.branch.datastore.RDBMSPersister
All Implemented Interfaces:
Persister
Direct Known Subclasses:
OfflineRequestRDBMSPersister

public class RDBMSPersister
extends java.lang.Object
implements Persister

The RDBMSPersister class


Constructor Summary
RDBMSPersister()
           
 
Method Summary
 void amend(Persisted obj)
          Gets the parameter value from the given Persisted obj then amends the persisted objects
 Persisted create(Persisted obj)
          Gets the parameter value from the given Persisted obj then creates it and returns the persisted objects
 Persisted createAmend(Persisted obj)
          Gets the pk attributes from the given Persisted obj then finds the object by primary key , if there is finder exception then creates the object otherwise amend the object and return the persisted object
 java.util.Collection findBy(java.util.Map params, java.lang.Class persistedClass)
          Returns the Collection of persisted objects
 java.util.Collection findBy(java.util.Map params, java.lang.Class persistedClass, java.lang.String[][] orderBy)
          Returns the Collection of persisted objects
 java.lang.Object findByPrimaryKey(java.util.Map params, java.lang.Class persistedClass)
          Returns the persisted objects
 java.util.Collection findDistinct(java.util.Collection params, java.lang.Class persistedClass)
          Returns the Collection of distinct persisted objects
 void purgeProcessedData(java.util.Map params, java.lang.Class persistedClass)
          Deletes the processed data on BDS
 void remove(Persisted obj)
          Gets the parameter value from the given Persisted obj then removes the persisted object
 void removeAll(Persisted obj)
          Removes all from persisted object from the given Persisted obj
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDBMSPersister

public RDBMSPersister()
Method Detail

findBy

public java.util.Collection findBy(java.util.Map params,
                                   java.lang.Class persistedClass,
                                   java.lang.String[][] orderBy)
Returns the Collection of persisted objects
Specified by:
findBy in interface Persister
Parameters:
params - Map
persistedClass - Class
orderBy - String[][]
Returns:
the Collection of persisted objects in ordered form which matches the query

findBy

public java.util.Collection findBy(java.util.Map params,
                                   java.lang.Class persistedClass)
Returns the Collection of persisted objects
Specified by:
findBy in interface Persister
Parameters:
params - Map
persistedClass - Class
Returns:
the Collection of persisted objects which matches the query

findDistinct

public java.util.Collection findDistinct(java.util.Collection params,
                                         java.lang.Class persistedClass)
Returns the Collection of distinct persisted objects
Specified by:
findDistinct in interface Persister
Parameters:
params - Collection
persistedClass - Class
Returns:
the Collection of distinct persisted objects which matches the query

findByPrimaryKey

public java.lang.Object findByPrimaryKey(java.util.Map params,
                                         java.lang.Class persistedClass)
                                  throws FinderException
Returns the persisted objects
Specified by:
findByPrimaryKey in interface Persister
Parameters:
params - Map
persistedClass - Class
Returns:
the persisted objects which matches the query based on primary key attributes

create

public Persisted create(Persisted obj)
Gets the parameter value from the given Persisted obj then creates it and returns the persisted objects
Specified by:
create in interface Persister
Parameters:
obj - Persisted
Returns:
the persisted objects after creating it

amend

public void amend(Persisted obj)
Gets the parameter value from the given Persisted obj then amends the persisted objects
Specified by:
amend in interface Persister
Parameters:
obj - Persisted

remove

public void remove(Persisted obj)
Gets the parameter value from the given Persisted obj then removes the persisted object
Specified by:
remove in interface Persister
Parameters:
obj - Persisted

createAmend

public Persisted createAmend(Persisted obj)
Gets the pk attributes from the given Persisted obj then finds the object by primary key , if there is finder exception then creates the object otherwise amend the object and return the persisted object
Specified by:
createAmend in interface Persister
Parameters:
obj - Persisted
Returns:
the persisted object after finding by primary key and amneding it

removeAll

public void removeAll(Persisted obj)
Removes all from persisted object from the given Persisted obj
Specified by:
removeAll in interface Persister
Parameters:
obj - Persisted

purgeProcessedData

public void purgeProcessedData(java.util.Map params,
                               java.lang.Class persistedClass)
Deletes the processed data on BDS
Specified by:
purgeProcessedData in interface Persister
Parameters:
params - Map
persistedClass - Class