DataFaucet 1.0 Beta

datafaucet.system
Class columnmap

WEB-INF.cftags.component
        extended by datafaucet.system.columnmap

public class columnmap
extends WEB-INF.cftags.component

maps column names from database tables to active-record properties or gateway results


Constructor Summary
init(any datasource, string tablelist, [string prefix=''], [string badchars=''], [string protected=''])
 
Method Summary
private any convertColumn(string column)
 any getColumnList()
 any getInputMap()
 struct getKeys(any record, string columns)
          returns a struct containing the values of table columns from the properties of a record object
 any getOutputMap()
 struct getProperties(any record)
          returns a struct containing the values of table columns from the properties of a record object
 any getPropertyList()
 string input(string property)
private any makeInputMap()
private any makeOutputMap()
private struct mapData(struct map, struct data)
 struct mapInput(struct data)
 struct mapOutput(struct data)
 struct mapQueryToOutput(query query, numeric index)
 string output(string column)
private any setBadChars(string chars)
private any strip(string string)
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(any datasource, string tablelist, [string prefix=''], [string badchars=''], [string protected=''])

Parameters:
datasource
tablelist
prefix
badchars
protected
Method Detail

convertColumn

private any convertColumn(string column)

Parameters:
column

getColumnList

public any getColumnList()


getInputMap

public any getInputMap()


getKeys

public struct getKeys(any record, string columns)
returns a struct containing the values of table columns from the properties of a record object

Parameters:
record
columns

getOutputMap

public any getOutputMap()


getProperties

public struct getProperties(any record)
returns a struct containing the values of table columns from the properties of a record object

Parameters:
record

getPropertyList

public any getPropertyList()


input

public string input(string property)

Parameters:
property

makeInputMap

private any makeInputMap()


makeOutputMap

private any makeOutputMap()


mapData

private struct mapData(struct map, struct data)

Parameters:
map
data

mapInput

public struct mapInput(struct data)

Parameters:
data

mapOutput

public struct mapOutput(struct data)

Parameters:
data

mapQueryToOutput

public struct mapQueryToOutput(query query, numeric index)

Parameters:
query
index

output

public string output(string column)

Parameters:
column

setBadChars

private any setBadChars(string chars)

Parameters:
chars

strip

private any strip(string string)

Parameters:
string

DataFaucet 1.0 Beta