Transfer version 1.1

transfer.com
Class TransferObject

WEB-INF.cftags.component
        extended by transfer.com.TransferObject
Direct Known Subclasses:
TransferDecorator , TransferObjectProxy

public class TransferObject
extends WEB-INF.cftags.component

The basic CFC for creating TransferObjects


Method Summary
 TransferObject clone()
          Get a deep clone of this object
private TransferObject createTransferObject(string className, any key, struct memento)
          popultes a new transfer object and returns it
 string getClassName()
          The class name of the TransferObject
private TransferObject getComposite(string className, struct memento, string primarykey)
          retrieves or builds the requisite composite from the memento
 boolean getIsClone()
          If this object is a clone or not
 boolean getIsDirty()
          If this object's data is differnt from that stored in the DB.
 boolean getIsLoaded()
          easy way to determine if the data is loaded, since this is a TransferObject, it must be loaded, and therefore returns true.
 boolean getIsPersisted()
          If this object is stored in the database
 boolean getIsProxy()
          returns whether or not this is a proxy object. Since this is a TrasferObject, it returns false.
private struct getLoaded()
 TransferObject getLoadedObject()
          Returns itself, as there is no object to load
private Nullable getNullable()
 TransferObject getOriginalTransferObject()
          Returns this object
private any getSystem()
private TransferObject getThisObject()
private Transfer getTransfer()
          Transfer for creation of composite objects
private Utility getUtility()
 boolean sameTransfer(TransferObject transfer)
          Checks to see if 2 transfer objects are the same
private void setClassName(string ClassName)
package void setIsClone(boolean IsClone)
package void setIsDirty(boolean IsDirty)
package void setIsPersisted(boolean IsPersisted)
private void setLoaded(struct loaded)
private void setNullable(Nullable Nullable)
private void setSystem(any System)
private void setThisObject(TransferObject thisObject)
private void setTransfer(Transfer Transfer)
private void setUtility(Utility Utility)
private any throw(string type, string message, [string detail=''])
          Throws an Exception
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(Transfer transfer, TransferObject transferObject, Utility utility='', Nullable nullable='', Datasource datasource, Transaction transaction)
Do not overwrite: Constructor

Parameters:
transfer - The Transfer lib
transferObject - The transferObject to decorate
utility - Utility class
nullable - nullable class
datasource - the datasource bean
transaction - the transaction service
Method Detail

clone

public TransferObject clone()
Get a deep clone of this object


createTransferObject

private TransferObject createTransferObject(string className, any key, struct memento)
popultes a new transfer object and returns it

Parameters:
className - the class name of the To we're creating
key - the primary key value
memento - The memento for the composite object

getClassName

public string getClassName()
The class name of the TransferObject


getComposite

private TransferObject getComposite(string className, struct memento, string primarykey)
retrieves or builds the requisite composite from the memento

Parameters:
className - The classname of the object
memento - The memento for the composite object
primarykey - The name of the primary Key

getIsClone

public boolean getIsClone()
If this object is a clone or not


getIsDirty

public boolean getIsDirty()
If this object's data is differnt from that stored in the DB.


getIsLoaded

public boolean getIsLoaded()
easy way to determine if the data is loaded, since this is a TransferObject, it must be loaded, and therefore returns true.


getIsPersisted

public boolean getIsPersisted()
If this object is stored in the database


getIsProxy

public boolean getIsProxy()
returns whether or not this is a proxy object. Since this is a TrasferObject, it returns false.


getLoaded

private struct getLoaded()


getLoadedObject

public TransferObject getLoadedObject()
Returns itself, as there is no object to load


getNullable

private Nullable getNullable()


getOriginalTransferObject

public TransferObject getOriginalTransferObject()
Returns this object


getSystem

private any getSystem()


getThisObject

private TransferObject getThisObject()


getTransfer

private Transfer getTransfer()
Transfer for creation of composite objects


getUtility

private Utility getUtility()


sameTransfer

public boolean sameTransfer(TransferObject transfer)
Checks to see if 2 transfer objects are the same

Parameters:
transfer - The transfer object to check if we are equal

setClassName

private void setClassName(string ClassName)

Parameters:
ClassName

setIsClone

package void setIsClone(boolean IsClone)

Parameters:
IsClone

setIsDirty

package void setIsDirty(boolean IsDirty)

Parameters:
IsDirty

setIsPersisted

package void setIsPersisted(boolean IsPersisted)

Parameters:
IsPersisted

setLoaded

private void setLoaded(struct loaded)

Parameters:
loaded

setNullable

private void setNullable(Nullable Nullable)

Parameters:
Nullable

setSystem

private void setSystem(any System)

Parameters:
System

setThisObject

private void setThisObject(TransferObject thisObject)

Parameters:
thisObject

setTransfer

private void setTransfer(Transfer Transfer)

Parameters:
Transfer - Transfer for creation of composites

setUtility

private void setUtility(Utility Utility)

Parameters:
Utility

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

Transfer version 1.1