org.tynamo.internal.services
Class GenericPersistenceService

java.lang.Object
  extended by org.tynamo.internal.services.GenericPersistenceService
All Implemented Interfaces:
PersistenceService

public abstract class GenericPersistenceService
extends Object
implements PersistenceService


Constructor Summary
GenericPersistenceService(org.apache.tapestry5.ioc.services.PropertyAccess propertyAccess)
           
 
Method Summary
<T> T
addToCollection(CollectionDescriptor descriptor, T element, Object collectionOwner)
          Adds and element to the collectionOwner's collection described by the descriptor
protected  org.apache.tapestry5.ioc.services.PropertyAccess getPropertyAccess()
           
 void removeFromCollection(CollectionDescriptor descriptor, Object element, Object collectionOwner)
          Removes the element from the collectionOwner's collection described by the descriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.tynamo.services.PersistenceService
count, getIdentifier, getIdentifier, getInstance, getInstances, getInstances, getOrphanInstances, remove, removeAll, save
 

Constructor Detail

GenericPersistenceService

public GenericPersistenceService(org.apache.tapestry5.ioc.services.PropertyAccess propertyAccess)
Method Detail

getPropertyAccess

protected final org.apache.tapestry5.ioc.services.PropertyAccess getPropertyAccess()

addToCollection

public <T> T addToCollection(CollectionDescriptor descriptor,
                             T element,
                             Object collectionOwner)
Description copied from interface: PersistenceService
Adds and element to the collectionOwner's collection described by the descriptor

Specified by:
addToCollection in interface PersistenceService

removeFromCollection

public void removeFromCollection(CollectionDescriptor descriptor,
                                 Object element,
                                 Object collectionOwner)
Description copied from interface: PersistenceService
Removes the element from the collectionOwner's collection described by the descriptor

Specified by:
removeFromCollection in interface PersistenceService


Copyright © 2004-2012. All Rights Reserved.