DataFaucet 1.0 Beta

datafaucet.system.sql
Class duck

WEB-INF.cftags.component
        extended by datafaucet.system.sql.duck
Direct Known Subclasses:
filter , procedure , simplefiltergroup

public class duck
extends WEB-INF.cftags.component

provides basic functionality for other sql objects


Method Summary
private any arg(any st, string key, any def)
 any getDefaultLocalization()
 any getLocalization()
 any getNext()
private any getObject(string className)
          returns an instantiated but uninitialized object - prevents case-sensitivity errors on unix systems
 any getProperties()
          returns all properties from a cfc in a structure
private any getProperty(string propertyname)
          gets properties from the current object - all custom get methods should set properties with this method - overwriting this method (in addition to setProperty) allows you to change the location of all properties stored for the component
private any getPropertylist()
          returns the names of all properties from a cfc as a list
 any getTail()
          returns the last element in the list
 any getValue(string propertyname)
          returns a property or variable from the component -- uses a private method if it exists for any property
 boolean hasNext()
private struct identifyAccessorOrMutator(string MissingMethodName, struct MissingMethodArguments)
 any insertAfter(any item)
 any onMissingMethod(string MissingMethodName, struct MissingMethodArguments)
          Handles missing method exceptions.
private any parseDate(string date)
private any parseNumber(string number)
private any raiseAbstractClassException()
private any raiseMissingMethodException(string MissingMethodName)
 any removeAfter()
 any setLocalization(any localization)
 any setNext(any item)
          used internally to set the pointer to the next item in the list -- do not use this method
 any setProperties(any properties, [boolean overwrite='true'], [numeric index='1'])
          sets all properties for a cfc simultaneously using the setValue method to preserve custom setValue functions
private void setProperty(string propertyname, any propertyvalue, [boolean overwrite='true'])
          sets properties in the current object - all custom set methods should set properties with this method - overwriting this method (in addition to getProperty) allows you to change the location of all properties stored for the component
 any setValue(string propertyname, any propertyvalue, [boolean overwrite='true'])
          sets a property or variable in the component -- uses a private method if it exists for any property
private struct simplify(struct st)
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(string table, [boolean nullforeignkeys='[runtime expression]'], [boolean deleteforeignkeys='[runtime expression]'], [string include='[runtime expression]'], [any datasource=''])

Parameters:
table - the database table to delete records from
nullforeignkeys - if true the tag will set nulls on any foreign keys which reference the primary key on the deleted records when applicable
deleteforeignkeys - if true the tag will delete any records in tables with foreign keys referencing the primary key on the deleted records - this is done after nulls are set, allowing foreign records to be saved when possible
include - and / or -- determines whether the filters are cumulative or exclusive
datasource
Method Detail

arg

private any arg(any st, string key, any def)

Parameters:
st
key
def

getDefaultLocalization

public any getDefaultLocalization()


getLocalization

public any getLocalization()


getNext

public any getNext()


getObject

private any getObject(string className)
returns an instantiated but uninitialized object - prevents case-sensitivity errors on unix systems

Parameters:
className

getProperties

public any getProperties()
returns all properties from a cfc in a structure


getProperty

private any getProperty(string propertyname)
gets properties from the current object - all custom get methods should set properties with this method - overwriting this method (in addition to setProperty) allows you to change the location of all properties stored for the component

Parameters:
propertyname

getPropertylist

private any getPropertylist()
returns the names of all properties from a cfc as a list


getTail

public any getTail()
returns the last element in the list


getValue

public any getValue(string propertyname)
returns a property or variable from the component -- uses a private method if it exists for any property

Parameters:
propertyname - the name of the property value to return

hasNext

public boolean hasNext()


identifyAccessorOrMutator

private struct identifyAccessorOrMutator(string MissingMethodName, struct MissingMethodArguments)

Parameters:
MissingMethodName - The name of the missing method.
MissingMethodArguments

insertAfter

public any insertAfter(any item)

Parameters:
item

onMissingMethod

public any onMissingMethod(string MissingMethodName, struct MissingMethodArguments)
Handles missing method exceptions.

Parameters:
MissingMethodName - The name of the missing method.
MissingMethodArguments - The arguments that were passed to the missing method. This might be a named argument set or a numerically indexed set.

parseDate

private any parseDate(string date)

Parameters:
date

parseNumber

private any parseNumber(string number)

Parameters:
number

raiseAbstractClassException

private any raiseAbstractClassException()


raiseMissingMethodException

private any raiseMissingMethodException(string MissingMethodName)

Parameters:
MissingMethodName - The name of the missing method.

removeAfter

public any removeAfter()


setLocalization

public any setLocalization(any localization)

Parameters:
localization

setNext

public any setNext(any item)
used internally to set the pointer to the next item in the list -- do not use this method

Parameters:
item

setProperties

public any setProperties(any properties, [boolean overwrite='true'], [numeric index='1'])
sets all properties for a cfc simultaneously using the setValue method to preserve custom setValue functions

Parameters:
properties - a structure or query containing keys which match the keys of the property structure
overwrite - when false the component's existing properties will be preserved
index - if the properties argument is a query the index argument can be used to determine what row of the query is used to populate the object

setProperty

private void setProperty(string propertyname, any propertyvalue, [boolean overwrite='true'])
sets properties in the current object - all custom set methods should set properties with this method - overwriting this method (in addition to getProperty) allows you to change the location of all properties stored for the component

Parameters:
propertyname - the name of the property to set
propertyvalue - the value to set for the property
overwrite - if false an existing property value will be preserved

setValue

public any setValue(string propertyname, any propertyvalue, [boolean overwrite='true'])
sets a property or variable in the component -- uses a private method if it exists for any property

Parameters:
propertyname - the name of the property to set
propertyvalue - the value to set for the property named
overwrite - determines if the provided value should overwrite an existing property

simplify

private struct simplify(struct st)

Parameters:
st

DataFaucet 1.0 Beta