Transfer version 1.1

transfer.com.dynamic.definition
Class CollectionWriter

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

public class CollectionWriter
extends AbstractBaseWriter

Writes out the collection/composition aspects of the defition


Constructor Summary
init(ObjectManager objectManager)
          Constructor
 
Method Summary
private void writeCollection(DefinitionBuffer buffer, string name, Collection collection, Object linkObject)
          Writes the methods for a collection
 void writeExternalOneToMany(DefinitionBuffer buffer, Object object)
          write the methods for where this object hook into a one to many
 void writeManyToMany(DefinitionBuffer buffer, Object object)
          Writes the definition for Many to Many files
 void writeManyToOne(DefinitionBuffer buffer, Object object)
          Writes the definition for Many to One.
 void writeOneToMany(DefinitionBuffer buffer, Object object)
          writes the defintion of One to Many files
private void writeRemoveAddAndClear(DefinitionBuffer buffer, Object object, string name, Collection collection, Object linkObject, string scope)
          Writes the remove function
private void writeSort(DefinitionBuffer buffer, Object object, string name, Link linkTo, Collection collection, [string scope='public'])
          writes the sorting functions for a composite object collection
 
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

writeCollection

private void writeCollection(DefinitionBuffer buffer, string name, Collection collection, Object linkObject)
Writes the methods for a collection

Parameters:
buffer - The Buffer that the defintion file is being set in
name - The name of the collection
collection - The Collection of the composite type
linkObject - The Object the link points to

writeExternalOneToMany

public void writeExternalOneToMany(DefinitionBuffer buffer, Object object)
write the methods for where this object hook into a one to many

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

writeManyToMany

public void writeManyToMany(DefinitionBuffer buffer, Object object)
Writes the definition for Many to Many files

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

writeManyToOne

public void writeManyToOne(DefinitionBuffer buffer, Object object)
Writes the definition for Many to One.

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

writeOneToMany

public void writeOneToMany(DefinitionBuffer buffer, Object object)
writes the defintion of One to Many files

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

writeRemoveAddAndClear

private void writeRemoveAddAndClear(DefinitionBuffer buffer, Object object, string name, Collection collection, Object linkObject, string scope)
Writes the remove function

Parameters:
buffer - The Buffer that the defintion file is being set in
object - BO of the Object
name - The name of the collection
collection - The Collection of the composite type
linkObject - The Object the link points to
scope - Private, or public?

writeSort

private void writeSort(DefinitionBuffer buffer, Object object, string name, Link linkTo, Collection collection, [string scope='public'])
writes the sorting functions for a composite object collection

Parameters:
buffer - The Buffer that the defintion file is being set in
object - BO of the Object
name - The name of the collection
linkTo - The type of object the collection is made of
collection - The collection that is being written
scope - public, or private

Transfer version 1.1