Transfer version 1.1

transfer.com.dynamic.definition
Class LazyLoadWriter

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

public class LazyLoadWriter
extends AbstractBaseWriter

Writes the code for lazy loading functionality


Constructor Summary
init(ObjectManager objectManager)
          Constructor
 
Method Summary
private void writeIsLoaded(DefinitionBuffer buffer, string name)
          Writes the set of get/set IsLoaded Methods
 void writeLazyLoad(DefinitionBuffer buffer, Object object)
          Writes the lazy load functions
 void writeLoad(DefinitionBuffer buffer, Object object, string name, string loadMethod)
          Generic load() function writer
private void writeLoadExternalOnetoMany(DefinitionBuffer buffer, Object object, string name)
          writes the lazy load function for external one to may
private void writeLoadManyToMany(DefinitionBuffer buffer, Object object, transfer.com.object.manytomany manytomany)
          Writes the lazy load functions
private void writeLoadManyToOne(DefinitionBuffer buffer, Object object, transfer.com.object.manytoone manytoone)
          Writes the lazy load functions
private void writeLoadOneToMany(DefinitionBuffer buffer, Object object, transfer.com.object.onetomany onetomany)
          Writes the lazy load functions
private void writeOpenLoadLock(DefinitionBuffer buffer, Object object, string name, [boolean isLoaded='false'])
          writes the loading double check lock lock
private void writeUnLoad(DefinitionBuffer buffer, Object object, string name, [boolean collection='true'])
          Writes the unload functions
private void writeUnLoadExternalOnetoMany(DefinitionBuffer buffer, Object object, string name)
          writes the unload function for external one to may
private void writeUnLoadManyToMany(DefinitionBuffer buffer, Object object, transfer.com.object.manytomany manytomany)
          Writes the unload functions
private void writeUnLoadManyToOne(DefinitionBuffer buffer, Object object, transfer.com.object.manytoone manytoone)
          Writes the unload functions
private void writeUnLoadOneToMany(DefinitionBuffer buffer, Object object, transfer.com.object.onetomany onetomany)
          Writes the unload functions
 
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

writeIsLoaded

private void writeIsLoaded(DefinitionBuffer buffer, string name)
Writes the set of get/set IsLoaded Methods

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

writeLazyLoad

public void writeLazyLoad(DefinitionBuffer buffer, Object object)
Writes the lazy load functions

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

writeLoad

public void writeLoad(DefinitionBuffer buffer, Object object, string name, string loadMethod)
Generic load() function writer

Parameters:
buffer - The Buffer that the defintion file is being set in
object - BO of the Object
name - The name of the compostion
loadMethod - The method to call to load from Transfer.cfc

writeLoadExternalOnetoMany

private void writeLoadExternalOnetoMany(DefinitionBuffer buffer, Object object, string name)
writes the lazy load function for external one to may

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

writeLoadManyToMany

private void writeLoadManyToMany(DefinitionBuffer buffer, Object object, transfer.com.object.manytomany manytomany)
Writes the lazy load functions

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

writeLoadManyToOne

private void writeLoadManyToOne(DefinitionBuffer buffer, Object object, transfer.com.object.manytoone manytoone)
Writes the lazy load functions

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

writeLoadOneToMany

private void writeLoadOneToMany(DefinitionBuffer buffer, Object object, transfer.com.object.onetomany onetomany)
Writes the lazy load functions

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

writeOpenLoadLock

private void writeOpenLoadLock(DefinitionBuffer buffer, Object object, string name, [boolean isLoaded='false'])
writes the loading double check lock lock

Parameters:
buffer - The Buffer that the defintion file is being set in
object - BO of the Object
name - The name of the compostion
isLoaded - check the lock if it's loaded, or not

writeUnLoad

private void writeUnLoad(DefinitionBuffer buffer, Object object, string name, [boolean collection='true'])
Writes the unload functions

Parameters:
buffer - The Buffer that the defintion file is being set in
object - BO of the Object
name - The name of the compostion
collection - if it's a collection

writeUnLoadExternalOnetoMany

private void writeUnLoadExternalOnetoMany(DefinitionBuffer buffer, Object object, string name)
writes the unload function for external one to may

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

writeUnLoadManyToMany

private void writeUnLoadManyToMany(DefinitionBuffer buffer, Object object, transfer.com.object.manytomany manytomany)
Writes the unload functions

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

writeUnLoadManyToOne

private void writeUnLoadManyToOne(DefinitionBuffer buffer, Object object, transfer.com.object.manytoone manytoone)
Writes the unload functions

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

writeUnLoadOneToMany

private void writeUnLoadOneToMany(DefinitionBuffer buffer, Object object, transfer.com.object.onetomany onetomany)
Writes the unload functions

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

Transfer version 1.1