org.tynamo.services
Interface PersistenceService

All Known Implementing Classes:
GenericPersistenceService

Deprecated.

@Deprecated
public interface PersistenceService


Method Summary
<T> T
addToCollection(CollectionDescriptor descriptor, T element, Object collectionOwner)
          Deprecated. Adds and element to the collectionOwner's collection described by the descriptor
 int count(Class type)
          Deprecated.  
 Serializable getIdentifier(Object data)
          Deprecated. Returns the identifier value of the given entity
 Serializable getIdentifier(Object data, TynamoClassDescriptor classDescriptor)
          Deprecated. Returns the identifier value of the given entity
<T> T
getInstance(Class<T> type, Serializable id)
          Deprecated. Returns the persistent instance of the given entity class with the given identifier, or null if there is no such persistent instance.
<T> List<T>
getInstances(Class<T> type)
          Deprecated.  
<T> List<T>
getInstances(Class<T> type, int startIndex, int maxResults)
          Deprecated.  
 List getOrphanInstances(CollectionDescriptor descriptor, Object owner)
          Deprecated.  
 void remove(Object instance)
          Deprecated.  
 void removeAll(Collection collection)
          Deprecated. Removes all the elements in the specified collection
 void removeFromCollection(CollectionDescriptor descriptor, Object element, Object collectionOwner)
          Deprecated. Removes the element from the collectionOwner's collection described by the descriptor
<T> T
save(T instance)
          Deprecated.  
 

Method Detail

getInstance

<T> T getInstance(Class<T> type,
                  Serializable id)
Deprecated. 
Returns the persistent instance of the given entity class with the given identifier, or null if there is no such persistent instance.


getInstances

<T> List<T> getInstances(Class<T> type)
Deprecated. 

getInstances

<T> List<T> getInstances(Class<T> type,
                         int startIndex,
                         int maxResults)
Deprecated. 

count

int count(Class type)
Deprecated. 

save

<T> T save(T instance)
Deprecated. 

remove

void remove(Object instance)
Deprecated. 

removeAll

void removeAll(Collection collection)
Deprecated. 
Removes all the elements in the specified collection


addToCollection

<T> T addToCollection(CollectionDescriptor descriptor,
                      T element,
                      Object collectionOwner)
Deprecated. 
Adds and element to the collectionOwner's collection described by the descriptor


removeFromCollection

void removeFromCollection(CollectionDescriptor descriptor,
                          Object element,
                          Object collectionOwner)
Deprecated. 
Removes the element from the collectionOwner's collection described by the descriptor


getOrphanInstances

List getOrphanInstances(CollectionDescriptor descriptor,
                        Object owner)
Deprecated. 

getIdentifier

Serializable getIdentifier(Object data,
                           TynamoClassDescriptor classDescriptor)
Deprecated. 
Returns the identifier value of the given entity


getIdentifier

Serializable getIdentifier(Object data)
Deprecated. 
Returns the identifier value of the given entity



Copyright © 2004-2012. All Rights Reserved.