Transfer version 1.1

transfer.com.dynamic.definition
Class InitWriter

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

public class InitWriter
extends AbstractBaseWriter

Writes the Init function for the definition


Constructor Summary
init(ObjectManager objectManager)
          Constructor
 
Method Summary
private void writeConfigureRun(DefinitionBuffer buffer)
          Writes the code that checks to see if there is a 'configure' function, and runs it after the init
 void writeInit(DefinitionBuffer buffer, Object object)
          Writes an Init function
private void writeInitCollection(DefinitionBuffer buffer, string name, Collection collection)
          Writes the collection part of the Init
private void writeLazyInit(DefinitionBuffer buffer, Object object)
          Writes the initialisation of lazy loading
private void writePrimaryKeyDefault(DefinitionBuffer buffer, PrimaryKey primaryKey)
          Writes the default values for the primary keys
 
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

writeConfigureRun

private void writeConfigureRun(DefinitionBuffer buffer)
Writes the code that checks to see if there is a 'configure' function, and runs it after the init

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

writeInit

public void writeInit(DefinitionBuffer buffer, Object object)
Writes an Init function

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

writeInitCollection

private void writeInitCollection(DefinitionBuffer buffer, string name, Collection collection)
Writes the collection part of the Init

Parameters:
buffer - The Buffer that the defintion file is being set in
name - The name of the collection
collection - The collection in question

writeLazyInit

private void writeLazyInit(DefinitionBuffer buffer, Object object)
Writes the initialisation of lazy loading

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

writePrimaryKeyDefault

private void writePrimaryKeyDefault(DefinitionBuffer buffer, PrimaryKey primaryKey)
Writes the default values for the primary keys

Parameters:
buffer - The Buffer that the defintion file is being set in
primaryKey - The primary key to set to default

Transfer version 1.1