org.jtransfo
Interface ObjectFinder
- All Known Implementing Classes:
- NewInstanceObjectFinder
public interface ObjectFinder
Allow domain objects to be discovered from the transfer object.
This is typically used to get the base object from the database.
|
Method Summary |
|
getObject(Class<T> domainClass,
Object to)
Try to get the domain object for the given transfer object. |
getObject
<T> T getObject(Class<T> domainClass,
Object to)
throws JTransfoException
- Try to get the domain object for the given transfer object.
Return null when no domain object found or when it is unknown how to create the object.
- Type Parameters:
T - domain class type- Parameters:
domainClass - type of class neededto - transfer object which needs to be converted
- Returns:
- base domain object or null if object finder cannot handle this case
- Throws:
JTransfoException - something went wrong while trying to find object
Copyright © 2014. All rights reserved.