|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.tools.patternmetaengine.DomainObjectHelper
This helper reads in all the domain object xml files fron the specified locations
| Constructor Summary | |
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. |
|
| Method Summary | |
void |
doIgnoreFieldFilter(org.jaffa.patterns.library.domain_creator_1_1.domain.Root domain)
|
void |
doIgnoreFilter()
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. |
void |
doIgnoreRelationshipFilter(org.jaffa.patterns.library.domain_creator_1_1.domain.Root domain)
|
org.jaffa.patterns.library.domain_creator_1_1.domain.Root |
getByDomain(String name)
Get the domain object bean, based on the domain object name |
org.jaffa.patterns.library.domain_creator_1_1.domain.Root |
getByTable(String name)
Get the domain object bean, based on the database table name |
boolean |
hasField(org.jaffa.patterns.library.domain_creator_1_1.domain.Root domain,
String name)
|
Iterator |
iterator()
Return an iterator for all domain object loaded |
void |
loadObjects(File file,
boolean recursive)
Loads domain object from the specified location. |
void |
loadObjects(String file)
Loads domain object from the specified location. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DomainObjectHelper()
| Method Detail |
public void loadObjects(String file)
file - name of file or folder to load
public void loadObjects(File file,
boolean recursive)
file - file or location to loadrecursive - if loaction is a folder should subfolder be loaded as well (set to true for a recursive load)public org.jaffa.patterns.library.domain_creator_1_1.domain.Root getByDomain(String name)
name - domain object name
public org.jaffa.patterns.library.domain_creator_1_1.domain.Root getByTable(String name)
name - name of table
public Iterator iterator()
public void doIgnoreFilter()
public void doIgnoreFieldFilter(org.jaffa.patterns.library.domain_creator_1_1.domain.Root domain)
public void doIgnoreRelationshipFilter(org.jaffa.patterns.library.domain_creator_1_1.domain.Root domain)
public boolean hasField(org.jaffa.patterns.library.domain_creator_1_1.domain.Root domain,
String name)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||