|
Transfer version 1.1 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
transfer.com.object.ObjectDAO
public class ObjectDAO
DAO for object definitions
| Constructor Summary | |
|---|---|
init(XMLFileReader configReader)
Constructor |
|
| Method Summary | |
|---|---|
private void |
buildCollectionMemento(struct memento, xml xMany)
Builds a collection memento |
private void |
buildCompositeKeyMemento(string objectname, struct memento, xml xProperty)
Builds a composite key memento |
private void |
buildCompositionMemento(struct memento, xml xComposition)
Builds a memento for a basic composition |
private void |
buildFunctionArrayMemento(struct memento, xml xObject)
Buils the memento for Custom Functions |
private void |
buildManyToManyArrayMemento(struct memento, xml xObject, string class)
Build a memento for ManyToMany links |
private void |
buildManyToOneArrayMemento(struct memento, xml xObject)
Build a memento for ManyToOne links |
private void |
buildOneToManyArrayMemento(struct memento, xml xObject)
Build a memento for OneToMany links |
private void |
buildParentOneToManyArrayMemento(struct memento, string className)
Builds a memento for the parents of this object |
private void |
buildPrimaryKeyMemento(string objectname, struct memento, xml xProperty)
Builds a primary key memento |
private void |
buildPropertyArrayMemento(string objectname, struct memento, xml xObject)
Builds the property part of the memento |
private void |
buildPropertyMemento(string objectname, struct memento, xml xProperty)
Builds a memento for a singular property |
private query |
getClassNameByOneToManyLinkTo(string className)
Retrives the class names of all objects that have a One to Many relationship with this class. Query Columns are: OneToManyName,className,linkColumn |
private XMLFileReader |
getConfigReader()
|
Object |
getObject(Object Object, string class)
Gets the object BO of a given defintion |
string |
getObjectHash(string className, string configXML)
returns the unique hash for an object |
private string |
getParentPath(string Name, [string table=''], [string path=''], [string xpath=''])
Gets the parent of an item |
private void |
setConfigReader(XMLFileReader ConfigReader)
|
private void |
setMementoDefault(struct memento, string key, string default)
Searches for a value, if it doesn't exist, sets a default |
private any |
throw(string type, string message, [string detail=''])
Throws an Exception |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(XMLFileReader configReader)
configReader - The XML Reader for the config file| Method Detail |
|---|
private void buildCollectionMemento(struct memento, xml xMany)
memento - The memento to append the table toxMany - The object xmlElemprivate void buildCompositeKeyMemento(string objectname, struct memento, xml xProperty)
objectname - The name of the objectmemento - The memento to append the property toxProperty - The composite xmlElemprivate void buildCompositionMemento(struct memento, xml xComposition)
memento - The memento to append the table toxComposition - The composition xmlElemprivate void buildFunctionArrayMemento(struct memento, xml xObject)
memento - The memento to append the table toxObject - The object xmlElemprivate void buildManyToManyArrayMemento(struct memento, xml xObject, string class)
memento - The memento to append the table toxObject - The object xmlElemclass - The name of the package and classprivate void buildManyToOneArrayMemento(struct memento, xml xObject)
memento - The memento to append the table toxObject - The object xmlElemprivate void buildOneToManyArrayMemento(struct memento, xml xObject)
memento - The memento to append the table toxObject - The object xmlElemprivate void buildParentOneToManyArrayMemento(struct memento, string className)
memento - The memento to append the property toclassName - The classname of the objectprivate void buildPrimaryKeyMemento(string objectname, struct memento, xml xProperty)
objectname - The name of the objectmemento - The memento to append the property toxProperty - The property xmlElemprivate void buildPropertyArrayMemento(string objectname, struct memento, xml xObject)
objectname - The name of the objectmemento - The memento to append the table toxObject - The object xmlElemprivate void buildPropertyMemento(string objectname, struct memento, xml xProperty)
objectname - The name of the objectmemento - The memento to append the property toxProperty - The property xmlElemprivate query getClassNameByOneToManyLinkTo(string className)
className - The classname to search onprivate XMLFileReader getConfigReader()
public Object getObject(Object Object, string class)
Object - The Object BO to populateclass - The name of the package and classpublic string getObjectHash(string className, string configXML)
className - the name of the classconfigXML - the xml config stringprivate string getParentPath(string Name, [string table=''], [string path=''], [string xpath=''])
Name - The name of the objecttable - The name of the table for the objectpath - The path we're onxpath - The xpath that is currently setprivate void setConfigReader(XMLFileReader ConfigReader)
ConfigReaderprivate void setMementoDefault(struct memento, string key, string default)
memento - The memento that is being builtkey - The key that is to be checkeddefault - The default value to be setprivate any throw(string type, string message, [string detail=''])
type - The type of exceptionmessage - The message to accompany the exceptiondetail - The detail message for the exception
|
Transfer version 1.1 | ||||
| FRAMES | |||||