|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.mapper.MapperAdapter
A default implementation of the Mapper interface that throws
UnsupportedOperationExceptions for all methods. This
makes it easy to define an anonymous inner class Mapper implementation.
| Constructor Summary | |
MapperAdapter()
Default constructor for MapperAdapter. |
|
| Method Summary | |
java.lang.Object |
create(java.lang.Object object)
Create the given object in a persistent data store. |
void |
delete(java.lang.Object object)
Remove an object from the data store. |
java.util.Collection |
findAllObjects()
Returns a Collection of all objects for the given mapper. |
java.lang.Object |
findByUniqueId(java.lang.Object id)
Find the given Object based on its unique identifier. |
void |
update(java.lang.Object object)
Update the given object in the data store. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MapperAdapter()
| Method Detail |
public java.lang.Object create(java.lang.Object object)
throws MapperException
Mapper
create in interface MapperMapperExceptionMapper.create(java.lang.Object)
public java.lang.Object findByUniqueId(java.lang.Object id)
throws MapperException
Mapper
findByUniqueId in interface Mapperid - An Object that represents a unique ID or a container for
composite key values.
MapperExceptionMapper.findByUniqueId(java.lang.Object)
public void delete(java.lang.Object object)
throws MapperException
Mapper
delete in interface MapperMapperExceptionMapper.delete(java.lang.Object)
public void update(java.lang.Object object)
throws MapperException
Mapper
update in interface MapperMapperExceptionMapper.update(java.lang.Object)
public java.util.Collection findAllObjects()
throws MapperException
Mapper
findAllObjects in interface MapperMapperExceptionMapper.findAllObjects()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||