|
Transfer version 1.1 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
transfer.com.dynamic.KeyRationalise
public class KeyRationalise
Handles and standardises the key values of a TransferObject
| Constructor Summary | |
|---|---|
init(ObjectManager objectManager, Utility utility)
Constructor |
|
| Method Summary | |
|---|---|
private string |
buildCompositeKey(Object object, struct key)
builds the composite key string from the struct |
struct |
buildCompositeKeyMapFromQuery(CompositeKey compositeKey, query query)
builds a composite key from the query |
string |
cleanKey(Property property, string key)
Makes sure the key is formatted properly |
private ObjectManager |
getObjectManager()
|
private Utility |
getUtility()
|
string |
rationaliseKey(string class, any key)
builds the key to a string, formatting depending on the primary key type |
private void |
setObjectManager(ObjectManager ObjectManager)
|
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(ObjectManager objectManager, Utility utility)
objectManager - Need to object manager for making queriesutility - Util class| Method Detail |
|---|
private string buildCompositeKey(Object object, struct key)
object - the object to build the composite key string forkey - the identifier key for the objectpublic struct buildCompositeKeyMapFromQuery(CompositeKey compositeKey, query query)
compositeKey - the composite key obejctquery - the query to pull data from, assumed single rowpublic string cleanKey(Property property, string key)
property - the property to clean fromkey - The key for the id of the dataprivate ObjectManager getObjectManager()
private Utility getUtility()
public string rationaliseKey(string class, any key)
class - The name of the classkey - The key for the id of the dataprivate void setObjectManager(ObjectManager ObjectManager)
ObjectManagerprivate 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 | |||||