Transfer version 1.1

transfer.com.sql
Class Nullable

WEB-INF.cftags.component
        extended by transfer.com.sql.Nullable

public class Nullable
extends WEB-INF.cftags.component

Handles DefaultNull values


Constructor Summary
init(ObjectManager objectManager, Utility utility)
          Constructor
 
Method Summary
 boolean checkNullBinary(TransferObject transfer, string propertyName, binary binary)
          whether the binary is a null value or not
 boolean checkNullBoolean(TransferObject transfer, string propertyName, boolean boolean)
          whether the boolean is a null value or not
 boolean checkNullDate(TransferObject transfer, string propertyName, transfer.com.sql.date date)
          whether the Date is a null value or not
 boolean checkNullGUID(TransferObject transfer, string propertyName, transfer.com.sql.guid guid)
          whether the GUID is a null value or not
 boolean checkNullNumeric(TransferObject transfer, string propertyName, numeric number)
          whether the numeric is a null value or not
 boolean checkNullString(TransferObject transfer, string propertyName, string string)
          whether the string is a null value or not
 boolean checkNullUUID(TransferObject transfer, string propertyName, uuid uuid)
          whether the UUID is a null value or not
 boolean checkNullValue(TransferObject transfer, Property property, any value)
          Generically checks a null value for a given property
private binary getDefaultNullBinary()
private string getDefaultNullBoolean()
private transfer.com.sql.date getDefaultNullDate()
private transfer.com.sql.guid getDefaultNullGUID()
private numeric getDefaultNullNumeric()
private string getDefaultNullString()
private uuid getDefaultNullUUID()
 binary getNullBinary(string className, string propertyName)
          Returns the null binary value for this object and property
 boolean getNullBoolean(string className, string propertyName)
          Returns the null bool value for this object and property
 transfer.com.sql.date getNullDate(string className, string propertyName)
          Returns the null date value for this object and property
 transfer.com.sql.guid getNullGUID(string className, string propertyName)
          Returns the null GUID value for this object and property
 numeric getNullNumeric(string className, string propertyName)
          Returns the null numeric value for this object and property
private any getNullPropertyValue(string className, string propertyName)
          gets the null value of a property
 string getNullString(string className, string propertyName)
          Returns the null string value for this object and property
 uuid getNullUUID(string className, string propertyName)
          Returns the null UUID value for this object and property
 any getNullValue(string className, string propertyName)
          returns the null value, depending on what type the property is
private ObjectManager getObjectManager()
private Utility getUtility()
private boolean hasNullValue(string className, string propertyName)
          Checks to see if a property of an object has a null value
private void setDefaultNullBinary(binary defaultNullBinary)
private void setDefaultNullBoolean(string DefaultNullBoolean)
private void setDefaultNullDate(transfer.com.sql.date DefaultNullDate)
private void setDefaultNullGUID(transfer.com.sql.guid DefaultNullGUID)
private void setDefaultNullNumeric(numeric DefaultNullNumeric)
private void setDefaultNullString(string DefaultNullString)
private void setDefaultNullUUID(uuid DefaultNullUUID)
 void setMemento(struct memento)
          Sets the state of the object
private void setObjectManager(ObjectManager ObjectManager)
private void setUtility(Utility Utility)
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(ObjectManager objectManager, Utility utility)
Constructor

Parameters:
objectManager - The object manager to query
utility - The utility class
Method Detail

checkNullBinary

public boolean checkNullBinary(TransferObject transfer, string propertyName, binary binary)
whether the binary is a null value or not

Parameters:
transfer - The transfer object to get the null value for
propertyName - The name of the property to check against
binary - the binary to test

checkNullBoolean

public boolean checkNullBoolean(TransferObject transfer, string propertyName, boolean boolean)
whether the boolean is a null value or not

Parameters:
transfer - The transfer object to get the null value for
propertyName - The name of the property to check against
boolean - the boolean to test

checkNullDate

public boolean checkNullDate(TransferObject transfer, string propertyName, transfer.com.sql.date date)
whether the Date is a null value or not

Parameters:
transfer - The transfer object to get the null value for
propertyName - The name of the property to check against
date - the date to test

checkNullGUID

public boolean checkNullGUID(TransferObject transfer, string propertyName, transfer.com.sql.guid guid)
whether the GUID is a null value or not

Parameters:
transfer - The transfer object to get the null value for
propertyName - The name of the property to check against
guid - the guid to test

checkNullNumeric

public boolean checkNullNumeric(TransferObject transfer, string propertyName, numeric number)
whether the numeric is a null value or not

Parameters:
transfer - The transfer object to get the null value for
propertyName - The name of the property to check against
number - the number to test

checkNullString

public boolean checkNullString(TransferObject transfer, string propertyName, string string)
whether the string is a null value or not

Parameters:
transfer - The transfer object to get the null value for
propertyName - The name of the property to check against
string - the string to test

checkNullUUID

public boolean checkNullUUID(TransferObject transfer, string propertyName, uuid uuid)
whether the UUID is a null value or not

Parameters:
transfer - The transfer object to get the null value for
propertyName - The name of the property to check against
uuid - the uuid to test

checkNullValue

public boolean checkNullValue(TransferObject transfer, Property property, any value)
Generically checks a null value for a given property

Parameters:
transfer - The transfer object to get the null value for
property - The the property to check against
value - The value to test

getDefaultNullBinary

private binary getDefaultNullBinary()


getDefaultNullBoolean

private string getDefaultNullBoolean()


getDefaultNullDate

private transfer.com.sql.date getDefaultNullDate()


getDefaultNullGUID

private transfer.com.sql.guid getDefaultNullGUID()


getDefaultNullNumeric

private numeric getDefaultNullNumeric()


getDefaultNullString

private string getDefaultNullString()


getDefaultNullUUID

private uuid getDefaultNullUUID()


getNullBinary

public binary getNullBinary(string className, string propertyName)
Returns the null binary value for this object and property

Parameters:
className - The className of the object to get the null value for
propertyName - The name of the property to check against

getNullBoolean

public boolean getNullBoolean(string className, string propertyName)
Returns the null bool value for this object and property

Parameters:
className - The className of the object to get the null value for
propertyName - The name of the property to check against

getNullDate

public transfer.com.sql.date getNullDate(string className, string propertyName)
Returns the null date value for this object and property

Parameters:
className - The className of the object to get the null value for
propertyName - The name of the property to check against

getNullGUID

public transfer.com.sql.guid getNullGUID(string className, string propertyName)
Returns the null GUID value for this object and property

Parameters:
className - The className of the object to get the null value for
propertyName - The name of the property to check against

getNullNumeric

public numeric getNullNumeric(string className, string propertyName)
Returns the null numeric value for this object and property

Parameters:
className - The className of the object to get the null value for
propertyName - The name of the property to check against

getNullPropertyValue

private any getNullPropertyValue(string className, string propertyName)
gets the null value of a property

Parameters:
className - The class to get the null value for
propertyName - The name of the property to check against

getNullString

public string getNullString(string className, string propertyName)
Returns the null string value for this object and property

Parameters:
className - The className of the object to get the null value for
propertyName - The name of the property to check against

getNullUUID

public uuid getNullUUID(string className, string propertyName)
Returns the null UUID value for this object and property

Parameters:
className - The className of the object to get the null value for
propertyName - The name of the property to check against

getNullValue

public any getNullValue(string className, string propertyName)
returns the null value, depending on what type the property is

Parameters:
className - The className of the object to get the null value for
propertyName - The name of the property to get the null value for

getObjectManager

private ObjectManager getObjectManager()


getUtility

private Utility getUtility()


hasNullValue

private boolean hasNullValue(string className, string propertyName)
Checks to see if a property of an object has a null value

Parameters:
className - The className of the object to get the null value for
propertyName - The name of the property to check against

setDefaultNullBinary

private void setDefaultNullBinary(binary defaultNullBinary)

Parameters:
defaultNullBinary

setDefaultNullBoolean

private void setDefaultNullBoolean(string DefaultNullBoolean)

Parameters:
DefaultNullBoolean

setDefaultNullDate

private void setDefaultNullDate(transfer.com.sql.date DefaultNullDate)

Parameters:
DefaultNullDate

setDefaultNullGUID

private void setDefaultNullGUID(transfer.com.sql.guid DefaultNullGUID)

Parameters:
DefaultNullGUID

setDefaultNullNumeric

private void setDefaultNullNumeric(numeric DefaultNullNumeric)

Parameters:
DefaultNullNumeric

setDefaultNullString

private void setDefaultNullString(string DefaultNullString)

Parameters:
DefaultNullString

setDefaultNullUUID

private void setDefaultNullUUID(uuid DefaultNullUUID)

Parameters:
DefaultNullUUID

setMemento

public void setMemento(struct memento)
Sets the state of the object

Parameters:
memento - the state to be set

setObjectManager

private void setObjectManager(ObjectManager ObjectManager)

Parameters:
ObjectManager

setUtility

private void setUtility(Utility Utility)

Parameters:
Utility

Transfer version 1.1