net.sourceforge.domian.repository
Class UnsupportedRepository<T extends Entity>
java.lang.Object
  
net.sourceforge.domian.repository.AbstractRepository<T>
      
net.sourceforge.domian.repository.AbstractDomianCoreRepository<T>
          
net.sourceforge.domian.repository.UnsupportedRepository<T>
- All Implemented Interfaces: 
 - FakeRepository<T>, Repository<T>
 
public class UnsupportedRepository<T extends Entity>
- extends AbstractDomianCoreRepository<T>
- implements FakeRepository<T>
  
Repository to be used if a Repository implementation is needed,
 but any usage of it is for some reason unsupported/prohibited.
 
 This repository is also suitable as a dummy object.
 (A dummy object is a test double.
 For instance, when a non-null Repository object is necessary in some test method,
 and that object is never invoked; then a dummy object is appropriate.)
- Since:
 
  - 0.4
 
- Author:
 
  - Eirik Torske
 
 
 
 
 
 
 
| Methods inherited from class net.sourceforge.domian.repository.AbstractRepository | 
contains, count, countAll, countAllEntitiesSpecifiedBy, find, findAll, findSingle, findSingleEntitySpecifiedBy, isIndexingEntitiesRecursively, isPartitioningNatively, iterate, iterateAll, putAll, remove, removeAll, update | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
| Methods inherited from interface net.sourceforge.domian.repository.Repository | 
count, countAll, countAllEntitiesSpecifiedBy, find, findAll, findSingle, findSingleEntitySpecifiedBy, isIndexingEntitiesRecursively, isPartitioningNatively, iterate, iterateAll, makePartition, putAll, remove, removeAll, update | 
 
UNSUPPORTED_MESSAGE
static final java.lang.String UNSUPPORTED_MESSAGE
- See Also:
 - Constant Field Values
 
UnsupportedRepository
public UnsupportedRepository()
iterateAllEntitiesSpecifiedBy
public <V extends T> java.util.Iterator<V> iterateAllEntitiesSpecifiedBy(Specification<V> specification)
- Specified by:
 iterateAllEntitiesSpecifiedBy in interface Repository<T extends Entity>
 
 
findAllEntitiesSpecifiedBy
public <V extends T> java.util.Collection<V> findAllEntitiesSpecifiedBy(Specification<V> specification)
- Specified by:
 findAllEntitiesSpecifiedBy in interface Repository<T extends Entity>
 
 
put
public <V extends T> void put(V entity)
- Specified by:
 put in interface Repository<T extends Entity>
 
 
update
public <V extends T> void update(V entity)
- Specified by:
 update in interface Repository<T extends Entity>
 
 
removeAllEntitiesSpecifiedBy
public <V extends T> java.lang.Long removeAllEntitiesSpecifiedBy(Specification<V> specification)
- Specified by:
 removeAllEntitiesSpecifiedBy in interface Repository<T extends Entity>
 
 
remove
public <V extends T> java.lang.Boolean remove(V entity)
- Specified by:
 remove in interface Repository<T extends Entity>
 
 
Copyright © 2006-2010. All Rights Reserved.