|
Transfer version 1.1 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
transfer.com.dynamic.MementoBuilder
public class MementoBuilder
Builder for creating memento structs from queries
| Constructor Summary | |
|---|---|
init(ObjectManager objectManager, query query, any javaLoader)
Constructor |
|
| Method Summary | |
|---|---|
any |
_dump([any s], [any abort='true'])
|
void |
add(string compositeName, string key, string className, boolean isArray, struct structValue, string parentClassName, string parentKey, string parentCompositeName, string parentParentClassName)
Add a set of memento values to the collection |
private void |
addToCollection(string className, string key, any memento)
Adds the memento to the collection |
private void |
addToCompositePathCache(string className, string key, string compositeName, string parentClassName, string compositePathKey)
Adds the memento to the collection |
private string |
buildCompositePath(string className, string key, string compositeName, string parentClassName, [string compositeKey=''])
Builds the composite path by traversing the tree from the bottom up |
private struct |
getCompositePathCache()
|
private string |
getCompositePathKey(string className, string key)
returns the key in a common fashion |
private string |
getCompositionPath(string className, string key, string compositeName, string parentClassName)
if it has the composition path, returns is, otherwise builds it |
private any |
getFromCollection(string className, string key)
Retrieves a Memento object from the collection |
private string |
getFromCompositePathCache(string className, string key, string compositeName, string parentClassName)
Retrieves a Memento object from the collection |
private JavaLoader |
getJavaLoader()
|
private any |
getMemento()
|
private struct |
getMementoCollection()
|
struct |
getMementoStruct()
Returns the Struct value of the memento |
private ObjectManager |
getObjectManager()
|
private struct |
getParentCompositePaths()
|
private query |
getQuery()
|
private boolean |
hasInCollection(string className, string key)
checks to see if the memento is already in the collection |
private boolean |
hasInCompositePathCache(string className, string key, string compositeName, string parentClassName)
checks to see if the memento is already in the collection |
private boolean |
hasMemento()
If there is a top level memento set |
private void |
setCompositePathCache(struct CompositePathCache)
|
private void |
setJavaLoader(JavaLoader JavaLoader)
|
private void |
setMemento(any Memento)
|
private void |
setMementoCollection(struct MementoCollection)
|
private void |
setObjectManager(ObjectManager ObjectManager)
|
private void |
setParentCompositePaths(struct ParentCompositePaths)
|
private void |
setQuery(query Query)
|
private boolean |
validateParentCompositePath(string className, string key, string compositeName, string parentClassName)
validates if the parent composite paths are the same as what has been followed before |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(ObjectManager objectManager, query query, any javaLoader)
objectManager - Need to object manager for making queriesquery - The query the memento has been built offjavaLoader - The java loader for the memento class| Method Detail |
|---|
public any _dump([any s], [any abort='true'])
sabortpublic void add(string compositeName, string key, string className, boolean isArray, struct structValue, string parentClassName, string parentKey, string parentCompositeName, string parentParentClassName)
compositeName - The name of the compositekey - The primary key value of this objectclassName - The classname of the objectisArray - If the collection from here is an array or notstructValue - The struct of values for this part of the mementoparentClassName - The classname of the parent of this objectparentKey - The primary key of the parent of this objectparentCompositeName - The parent composite nameparentParentClassName - The 2nd level parent composite nameprivate void addToCollection(string className, string key, any memento)
className - The classname for the mementokey - The key valuememento - The memento object to addprivate void addToCompositePathCache(string className, string key, string compositeName, string parentClassName, string compositePathKey)
className - the classname of the parentkey - The primary key valuecompositeName - The name of the compositeparentClassName - the parent class namecompositePathKey - The composite path keyprivate string buildCompositePath(string className, string key, string compositeName, string parentClassName, [string compositeKey=''])
className - the classname of the parentkey - The primary key valuecompositeName - The name of the compositeparentClassName - the parent class namecompositeKey - The current composite keyprivate struct getCompositePathCache()
private string getCompositePathKey(string className, string key)
className - the classname of the parentkey - The primary key valueprivate string getCompositionPath(string className, string key, string compositeName, string parentClassName)
className - the classname of the parentkey - The primary key valuecompositeName - The name of the compositeparentClassName - the parent class nameprivate any getFromCollection(string className, string key)
className - The classname for the mementokey - The key valueprivate string getFromCompositePathCache(string className, string key, string compositeName, string parentClassName)
className - the classname of the parentkey - The primary key valuecompositeName - The name of the compositeparentClassName - the parent class nameprivate JavaLoader getJavaLoader()
private any getMemento()
private struct getMementoCollection()
public struct getMementoStruct()
private ObjectManager getObjectManager()
private struct getParentCompositePaths()
private query getQuery()
private boolean hasInCollection(string className, string key)
className - The classname for the mementokey - The key valueprivate boolean hasInCompositePathCache(string className, string key, string compositeName, string parentClassName)
className - the classname of the parentkey - The primary key valuecompositeName - The name of the compositeparentClassName - the parent class nameprivate boolean hasMemento()
private void setCompositePathCache(struct CompositePathCache)
CompositePathCacheprivate void setJavaLoader(JavaLoader JavaLoader)
JavaLoaderprivate void setMemento(any Memento)
Mementoprivate void setMementoCollection(struct MementoCollection)
MementoCollectionprivate void setObjectManager(ObjectManager ObjectManager)
ObjectManagerprivate void setParentCompositePaths(struct ParentCompositePaths)
ParentCompositePathsprivate void setQuery(query Query)
Queryprivate boolean validateParentCompositePath(string className, string key, string compositeName, string parentClassName)
className - the classname of the parentkey - The primary key valuecompositeName - The name of the compositeparentClassName - the parent class name
|
Transfer version 1.1 | ||||
| FRAMES | |||||