| java.lang.Object org.jaffa.tools.patternmetaengine.DomainObjectHelper
DomainObjectHelper | public class DomainObjectHelper (Code) | | This helper reads in all the domain object xml files fron the specified locations
author: PaulE version: 1.0 |
Constructor Summary | |
public | DomainObjectHelper() Creates a new instance of DomainObjectHelper
This looks at the supplied directory (path) and creates a
map of all domain objects in that package. |
DomainObjectHelper | public DomainObjectHelper()(Code) | | Creates a new instance of DomainObjectHelper
This looks at the supplied directory (path) and creates a
map of all domain objects in that package.
|
doIgnoreFieldFilter | public void doIgnoreFieldFilter(Root domain)(Code) | | |
doIgnoreFilter | public void doIgnoreFilter()(Code) | | This goes through each domain removing any field where ignore = true
It then goes through each relationship and if any of the from or to fields
of that relationship don't exits, the relationship is removed.
|
doIgnoreRelationshipFilter | public void doIgnoreRelationshipFilter(Root domain)(Code) | | |
getByDomain | public Root getByDomain(String name)(Code) | | Get the domain object bean, based on the domain object name
Parameters: name - domain object name root of domain object bean |
getByTable | public Root getByTable(String name)(Code) | | Get the domain object bean, based on the database table name
Parameters: name - name of table root of domain object bean |
iterator | public Iterator iterator()(Code) | | Return an iterator for all domain object loaded
iterator for all domain objects |
loadObjects | public void loadObjects(String file)(Code) | | Loads domain object from the specified location. If location is a file this
file is loaded, if the location is a directory, all files in there are loaded
recusivly.
Parameters: file - name of file or folder to load |
loadObjects | public void loadObjects(File file, boolean recursive)(Code) | | Loads domain object from the specified location. If location is a file this
file is loaded, if the location is a directory, all files in there are loaded
recusivly, if specified.
Parameters: file - file or location to load Parameters: recursive - if loaction is a folder should subfolder be loaded as well (set to true for a recursive load) |
|
|