|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.mapper.MapperAdapter
public class 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 | |
---|---|
Object |
create(Object object)
Create the given object in a persistent data store. |
void |
delete(Object object)
Remove an object from the data store. |
Collection |
findAllObjects()
Returns a Collection of all objects for the given mapper. |
Object |
findByUniqueId(Object id)
Find the given Object based on its unique identifier. |
void |
update(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 Object create(Object object) throws MapperException
Mapper
create
in interface Mapper
MapperException
Mapper.create(java.lang.Object)
public Object findByUniqueId(Object id) throws MapperException
Mapper
findByUniqueId
in interface Mapper
id
- An Object that represents a unique ID or a container for
composite key values.
MapperException
Mapper.findByUniqueId(java.lang.Object)
public void delete(Object object) throws MapperException
Mapper
delete
in interface Mapper
MapperException
Mapper.delete(java.lang.Object)
public void update(Object object) throws MapperException
Mapper
update
in interface Mapper
MapperException
Mapper.update(java.lang.Object)
public Collection findAllObjects() throws MapperException
Mapper
findAllObjects
in interface Mapper
MapperException
Mapper.findAllObjects()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |