|
Transfer version 1.1 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
transfer.com.TransferObject
public class TransferObject
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 |
|---|
public init(Transfer transfer, TransferObject transferObject, Utility utility='', Nullable nullable='', Datasource datasource, Transaction transaction)
transfer - The Transfer libtransferObject - The transferObject to decorateutility - Utility classnullable - nullable classdatasource - the datasource beantransaction - the transaction service| Method Detail |
|---|
public TransferObject clone()
private TransferObject createTransferObject(string className, any key, struct memento)
className - the class name of the To we're creatingkey - the primary key valuememento - The memento for the composite objectpublic string getClassName()
private TransferObject getComposite(string className, struct memento, string primarykey)
className - The classname of the objectmemento - The memento for the composite objectprimarykey - The name of the primary Keypublic boolean getIsClone()
public boolean getIsDirty()
public boolean getIsLoaded()
public boolean getIsPersisted()
public boolean getIsProxy()
private struct getLoaded()
public TransferObject getLoadedObject()
private Nullable getNullable()
public TransferObject getOriginalTransferObject()
private any getSystem()
private TransferObject getThisObject()
private Transfer getTransfer()
private Utility getUtility()
public boolean sameTransfer(TransferObject transfer)
transfer - The transfer object to check if we are equalprivate void setClassName(string ClassName)
ClassNamepackage void setIsClone(boolean IsClone)
IsClonepackage void setIsDirty(boolean IsDirty)
IsDirtypackage void setIsPersisted(boolean IsPersisted)
IsPersistedprivate void setLoaded(struct loaded)
loadedprivate void setNullable(Nullable Nullable)
Nullableprivate void setSystem(any System)
Systemprivate void setThisObject(TransferObject thisObject)
thisObjectprivate void setTransfer(Transfer Transfer)
Transfer - Transfer for creation of compositesprivate void setUtility(Utility Utility)
Utilityprivate any throw(string type, string message, [string detail=''])
type - The type of exceptionmessage - The message to accompany the exceptiondetail - The detail message for the exception
|
Transfer version 1.1 | ||||
| FRAMES | |||||