DataFaucet 1.0 Beta

datafaucet.system.agent
Class format

WEB-INF.cftags.component
        extended by datafaucet.system.agent.format
Direct Known Subclasses:
engine

public class format
extends WEB-INF.cftags.component

defines formatting methods for escaping, concatenatino, etc.


Constructor Summary
init([string version=''])
 
Method Summary
 any concatenate(string sql, [boolean isorderby='false'])
          replaces the || concatenation operator with the appropriate concatenation operator for the specified database while maintaining quoted literals
 string escape(string entity)
private string fixOrderby(string sql)
private any getDataFaucet()
private any getDataManager()
private any getDefaultLocalization()
 struct getEntity(string entity, [any datasource=''])
 string getFullTableName(string table, any datasource)
 any getNextFromSequence(any datasource, string sequence)
private numeric getNumericScale(string number)
 any getValidator()
 string newID([any ActiveRecord=''])
private string newLine()
private struct qp(struct st)
private struct queryparam(struct st, [any localization=''])
private struct queryparam_bit(struct st='')
private struct queryparam_integer(struct st='', any localization)
private struct queryparam_numeric(struct st='', any localization)
private struct queryparam_timestamp(struct st='', any localization)
 any raiseUnspecifiedEntityException(string entity)
private string replaceConcatenator(string sql, [boolean isorderby='false'])
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init([string version=''])

Parameters:
version
Method Detail

concatenate

public any concatenate(string sql, [boolean isorderby='false'])
replaces the || concatenation operator with the appropriate concatenation operator for the specified database while maintaining quoted literals

Parameters:
sql
isorderby

escape

public string escape(string entity)

Parameters:
entity

fixOrderby

private string fixOrderby(string sql)

Parameters:
sql

getDataFaucet

private any getDataFaucet()


getDataManager

private any getDataManager()


getDefaultLocalization

private any getDefaultLocalization()


getEntity

public struct getEntity(string entity, [any datasource=''])

Parameters:
entity
datasource

getFullTableName

public string getFullTableName(string table, any datasource)

Parameters:
table
datasource

getNextFromSequence

public any getNextFromSequence(any datasource, string sequence)

Parameters:
datasource
sequence

getNumericScale

private numeric getNumericScale(string number)

Parameters:
number

getValidator

public any getValidator()


newID

public string newID([any ActiveRecord=''])

Parameters:
ActiveRecord

newLine

private string newLine()


qp

private struct qp(struct st)

Parameters:
st

queryparam

private struct queryparam(struct st, [any localization=''])

Parameters:
st
localization

queryparam_bit

private struct queryparam_bit(struct st='')

Parameters:
st

queryparam_integer

private struct queryparam_integer(struct st='', any localization)

Parameters:
st
localization

queryparam_numeric

private struct queryparam_numeric(struct st='', any localization)

Parameters:
st
localization

queryparam_timestamp

private struct queryparam_timestamp(struct st='', any localization)

Parameters:
st
localization

raiseUnspecifiedEntityException

public any raiseUnspecifiedEntityException(string entity)

Parameters:
entity

replaceConcatenator

private string replaceConcatenator(string sql, [boolean isorderby='false'])

Parameters:
sql
isorderby

DataFaucet 1.0 Beta