|
DataFaucet 1.0 Beta | ||||
| FRAMES | |||||
WEB-INF.cftags.component
datafaucet.system.sql.duck
public class duck
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 |
|---|
public init(string table, [boolean nullforeignkeys='[runtime expression]'], [boolean deleteforeignkeys='[runtime expression]'], [string include='[runtime expression]'], [any datasource=''])
table - the database table to delete records fromnullforeignkeys - if true the tag will set nulls on any foreign keys which reference the primary key on the deleted records when applicabledeleteforeignkeys - 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 possibleinclude - and / or -- determines whether the filters are cumulative or exclusivedatasource| Method Detail |
|---|
private any arg(any st, string key, any def)
stkeydefpublic any getDefaultLocalization()
public any getLocalization()
public any getNext()
private any getObject(string className)
classNamepublic any getProperties()
private any getProperty(string propertyname)
propertynameprivate any getPropertylist()
public any getTail()
public any getValue(string propertyname)
propertyname - the name of the property value to returnpublic boolean hasNext()
private struct identifyAccessorOrMutator(string MissingMethodName, struct MissingMethodArguments)
MissingMethodName - The name of the missing method.MissingMethodArgumentspublic any insertAfter(any item)
itempublic any onMissingMethod(string MissingMethodName, struct MissingMethodArguments)
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.private any parseDate(string date)
dateprivate any parseNumber(string number)
numberprivate any raiseAbstractClassException()
private any raiseMissingMethodException(string MissingMethodName)
MissingMethodName - The name of the missing method.public any removeAfter()
public any setLocalization(any localization)
localizationpublic any setNext(any item)
itempublic any setProperties(any properties, [boolean overwrite='true'], [numeric index='1'])
properties - a structure or query containing keys which match the keys of the property structureoverwrite - when false the component's existing properties will be preservedindex - 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 objectprivate void setProperty(string propertyname, any propertyvalue, [boolean overwrite='true'])
propertyname - the name of the property to setpropertyvalue - the value to set for the propertyoverwrite - if false an existing property value will be preservedpublic any setValue(string propertyname, any propertyvalue, [boolean overwrite='true'])
propertyname - the name of the property to setpropertyvalue - the value to set for the property namedoverwrite - determines if the provided value should overwrite an existing propertyprivate struct simplify(struct st)
st
|
DataFaucet 1.0 Beta | ||||
| FRAMES | |||||