Transfer version 1.1

transfer.com.dynamic
Class ObjectWriter

WEB-INF.cftags.component
        extended by transfer.com.dynamic.ObjectWriter

public class ObjectWriter
extends WEB-INF.cftags.component

Object That writes out the definitions


Constructor Summary
init(string definitionPath, ObjectManager objectManager)
          Constructor
 
Method Summary
private CollectionWriter getCollectionWriter()
private CopyValuesToWriter getCopyValuesToWriter()
private CustomFunctionWriter getCustomFunctionWriter()
 string getDefinitionFileName(Object object)
          Creates the name that the file defition will be saved under
private string getDefinitionPath()
private EqualsWriter getEqualsWriter()
private EventActionWriter getEventActionWriter()
private GetMementoWriter getGetMementoWriter()
private InitWriter getInitWriter()
private LazyLoadWriter getLazyLoadWriter()
private PropertyWriter getPropertyWriter()
private SetMementoWriter getSetMementoWriter()
private ValidateCacheStateWriter getValidateCacheStateWriter()
private struct getWrittenFileCache()
 boolean hasDefinition(Object object)
          Checks to see if the defintion has been written
private void setCollectionWriter(CollectionWriter CollectionWriter)
private void setCopyValuesToWriter(CopyValuesToWriter CopyValuesToWriter)
private void setCustomFunctionWriter(CustomFunctionWriter CustomFunctionWriter)
private void setDefinitionPath(string DefinitionPath)
private void setEqualsWriter(EqualsWriter EqualsWriter)
private void setEventActionWriter(EventActionWriter EventActionWriter)
private void setGetMementoWriter(GetMementoWriter GetMementoWriter)
private void setInitWriter(InitWriter InitWriter)
private void setLazyLoadWriter(LazyLoadWriter LazyLoadWriter)
private void setPropertyWriter(PropertyWriter PropertyWriter)
private void setSetMementoWriter(SetMementoWriter SetMementoWriter)
private void setValidateCacheStateWriter(ValidateCacheStateWriter ValidateCacheStateWriter)
private void setWrittenFileCache(struct writtenFileCache)
private any throw(string type, string message, [string detail=''])
          Throws an Exception
 void writeDefinition(Object object)
          Writes the defintion to the .transfer file
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(string definitionPath, ObjectManager objectManager)
Constructor

Parameters:
definitionPath - Path to where the definitions are kept
objectManager - Need to object manager for making queries
Method Detail

getCollectionWriter

private CollectionWriter getCollectionWriter()


getCopyValuesToWriter

private CopyValuesToWriter getCopyValuesToWriter()


getCustomFunctionWriter

private CustomFunctionWriter getCustomFunctionWriter()


getDefinitionFileName

public string getDefinitionFileName(Object object)
Creates the name that the file defition will be saved under

Parameters:
object - BO of the Object

getDefinitionPath

private string getDefinitionPath()


getEqualsWriter

private EqualsWriter getEqualsWriter()


getEventActionWriter

private EventActionWriter getEventActionWriter()


getGetMementoWriter

private GetMementoWriter getGetMementoWriter()


getInitWriter

private InitWriter getInitWriter()


getLazyLoadWriter

private LazyLoadWriter getLazyLoadWriter()


getPropertyWriter

private PropertyWriter getPropertyWriter()


getSetMementoWriter

private SetMementoWriter getSetMementoWriter()


getValidateCacheStateWriter

private ValidateCacheStateWriter getValidateCacheStateWriter()


getWrittenFileCache

private struct getWrittenFileCache()


hasDefinition

public boolean hasDefinition(Object object)
Checks to see if the defintion has been written

Parameters:
object - BO of the Object

setCollectionWriter

private void setCollectionWriter(CollectionWriter CollectionWriter)

Parameters:
CollectionWriter

setCopyValuesToWriter

private void setCopyValuesToWriter(CopyValuesToWriter CopyValuesToWriter)

Parameters:
CopyValuesToWriter

setCustomFunctionWriter

private void setCustomFunctionWriter(CustomFunctionWriter CustomFunctionWriter)

Parameters:
CustomFunctionWriter

setDefinitionPath

private void setDefinitionPath(string DefinitionPath)

Parameters:
DefinitionPath

setEqualsWriter

private void setEqualsWriter(EqualsWriter EqualsWriter)

Parameters:
EqualsWriter

setEventActionWriter

private void setEventActionWriter(EventActionWriter EventActionWriter)

Parameters:
EventActionWriter

setGetMementoWriter

private void setGetMementoWriter(GetMementoWriter GetMementoWriter)

Parameters:
GetMementoWriter

setInitWriter

private void setInitWriter(InitWriter InitWriter)

Parameters:
InitWriter

setLazyLoadWriter

private void setLazyLoadWriter(LazyLoadWriter LazyLoadWriter)

Parameters:
LazyLoadWriter

setPropertyWriter

private void setPropertyWriter(PropertyWriter PropertyWriter)

Parameters:
PropertyWriter

setSetMementoWriter

private void setSetMementoWriter(SetMementoWriter SetMementoWriter)

Parameters:
SetMementoWriter

setValidateCacheStateWriter

private void setValidateCacheStateWriter(ValidateCacheStateWriter ValidateCacheStateWriter)

Parameters:
ValidateCacheStateWriter

setWrittenFileCache

private void setWrittenFileCache(struct writtenFileCache)

Parameters:
writtenFileCache

throw

private any throw(string type, string message, [string detail=''])
Throws an Exception

Parameters:
type - The type of exception
message - The message to accompany the exception
detail - The detail message for the exception

writeDefinition

public void writeDefinition(Object object)
Writes the defintion to the .transfer file

Parameters:
object - BO of the Object

Transfer version 1.1