Transfer version 1.1

transfer.com.dynamic.definition
Class SetMementoWriter

WEB-INF.cftags.component
        extended by transfer.com.dynamic.definition.AbstractBaseWriter
            extended by transfer.com.dynamic.definition.SetMementoWriter

public class SetMementoWriter
extends AbstractBaseWriter

Writes the memento part of the Defintion


Constructor Summary
init(ObjectManager objectManager)
          Constructor
 
Method Summary
private void writeCompositeKeyLazyLoadInit(DefinitionBuffer buffer, Object object)
          writes the handling of lazy loaded CK's
private void writeExternalOneToManyMemento(DefinitionBuffer buffer, Object parentObject)
          Writes the memento for external manytoones
private void writeManyToManyMemento(DefinitionBuffer buffer, Object object, transfer.com.object.manytomany manytomany)
          writes the one to many memento setter
private void writeManyToOneMemento(DefinitionBuffer buffer, transfer.com.object.manytoone manytoone)
          writes the one to many memento setter
private void writeMementoCollection(DefinitionBuffer buffer, string name, Object object, transfer.com.object.collection collection, Object linkObject, [boolean manytomany='true'])
          write the memento part for a Collection
private void writeNewCollection(DefinitionBuffer buffer, transfer.com.object.collection collection)
          writes a new collection as a var based on the type of the collection
private void writeOneToManyMemento(DefinitionBuffer buffer, Object object, transfer.com.object.onetomany onetomany)
          writes the one to many memento setter
private void writePropertyMemento(DefinitionBuffer buffer, Object object)
          Writes the memento for just properties
private void writePropertySet(DefinitionBuffer buffer, transfer.com.object.property property)
          Writes the property set for memento with the correct parsing of values
 void writeSetMemento(DefinitionBuffer buffer, Object object)
          Writes the setMemento function
 
Methods inherited from class transfer.com.dynamic.definition.AbstractBaseWriter
getObjectManager, q, setObjectManager, throw
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(ObjectManager objectManager)
Constructor

Parameters:
objectManager - The Object Manager
Method Detail

writeCompositeKeyLazyLoadInit

private void writeCompositeKeyLazyLoadInit(DefinitionBuffer buffer, Object object)
writes the handling of lazy loaded CK's

Parameters:
buffer - The Buffer that the defintion file is being set in
object - the object BO

writeExternalOneToManyMemento

private void writeExternalOneToManyMemento(DefinitionBuffer buffer, Object parentObject)
Writes the memento for external manytoones

Parameters:
buffer - The Buffer that the defintion file is being set in
parentObject - The parent object

writeManyToManyMemento

private void writeManyToManyMemento(DefinitionBuffer buffer, Object object, transfer.com.object.manytomany manytomany)
writes the one to many memento setter

Parameters:
buffer - The Buffer that the defintion file is being set in
object - The parent object
manytomany - The onetomany object

writeManyToOneMemento

private void writeManyToOneMemento(DefinitionBuffer buffer, transfer.com.object.manytoone manytoone)
writes the one to many memento setter

Parameters:
buffer - The Buffer that the defintion file is being set in
manytoone - The one to many object

writeMementoCollection

private void writeMementoCollection(DefinitionBuffer buffer, string name, Object object, transfer.com.object.collection collection, Object linkObject, [boolean manytomany='true'])
write the memento part for a Collection

Parameters:
buffer - The Buffer that the defintion file is being set in
name - The name of the collection
object - The object that is the parent
collection - The collection to base the memento on
linkObject - The Object the link points to
manytomany - This is a manytomany collection

writeNewCollection

private void writeNewCollection(DefinitionBuffer buffer, transfer.com.object.collection collection)
writes a new collection as a var based on the type of the collection

Parameters:
buffer - The Buffer that the defintion file is being set in
collection - The collection to base the new collection on

writeOneToManyMemento

private void writeOneToManyMemento(DefinitionBuffer buffer, Object object, transfer.com.object.onetomany onetomany)
writes the one to many memento setter

Parameters:
buffer - The Buffer that the defintion file is being set in
object - The parent object
onetomany - The onetomany object

writePropertyMemento

private void writePropertyMemento(DefinitionBuffer buffer, Object object)
Writes the memento for just properties

Parameters:
buffer - The Buffer that the defintion file is being set in
object - The object that is the parent

writePropertySet

private void writePropertySet(DefinitionBuffer buffer, transfer.com.object.property property)
Writes the property set for memento with the correct parsing of values

Parameters:
buffer - The Buffer that the defintion file is being set in
property - The property to be written for

writeSetMemento

public void writeSetMemento(DefinitionBuffer buffer, Object object)
Writes the setMemento function

Parameters:
buffer - The Buffer that the defintion file is being set in
object - BO of the Object

Transfer version 1.1