|
DataFaucet 1.0 Beta | ||||
| FRAMES | |||||
WEB-INF.cftags.component
datafaucet.system.kernel
datafaucet.system.duck
datafaucet.system.broadcaster
datafaucet.system.transaction
datafaucet.system.arutilities
datafaucet.system.arschema
datafaucet.system.armanytomany
public class armanytomany
provides many to many relationship management for ActiveRecord objects
| Constructor Summary | |
|---|---|
init()
|
|
| Method Summary | |
|---|---|
any |
addManyToManyRelationship(string table, [string column=''], [string references=''], [boolean removeall='true'])
|
struct |
deleteManyToManyRecords(string table, [string idlist=''], [string listtype='IN'], [string column=''], [string references=''])
|
private any |
deleteManyToManyRelationships()
|
private string |
getColumnNames()
|
struct |
getFailedProperties()
|
private struct |
getManyToManyColumns(string table, [string column=''], [string references=''], [boolean needreference='true'])
|
private string |
getManyToManyKeys(string table, [string column=''], [string references=''])
|
struct |
getManyToManyProperties()
returns many-to-many properties from the previously loaded object |
private any |
getManyToManySelect(string table, [string column=''], [string references=''], [string local=''], [string select='[runtime expression]'])
|
private string |
getManyToManyTable(string table, string references='')
|
string |
insertManyToManyRecords(string table, string idlist, [string column=''], [string references=''])
inserts all specified values into a crossreference table - returns a comma delimited list of failed inserts which probably resulted from a foreign-key constraint violation |
query |
listManyToManyRecords(string table, [string select='*'], [string column=''], [string references=''], [string local=''])
|
struct |
readManyToManyProperties()
returns many-to-many properties from the database |
any |
removeManyToManyRelationship(string table)
|
string |
setManyToManyRecords(string table, string idlist, [string column=''], [string references=''], [string removeall='false'])
deletes any crossreference values not in the list, returns any id that failed insertion |
struct |
updateManyToManyRelationships()
|
| Methods inherited from class datafaucet.system.broadcaster |
|---|
Broadcast, addListener, getListeners
|
| Methods inherited from class datafaucet.system.duck |
|---|
addObserver, getObservers, getProperty, getPropertylist, getValue, identifyAccessorOrMutator, observe, onMissingMethod, raiseMissingMethodException, reset, setProperties, setProperty, setValue
|
| Methods inherited from class datafaucet.system.kernel |
|---|
arg, componentExists, getDataFaucet, getFaucetObject, getFile, getFileModified, getObject, getPlumbing, getTransaction, getTransactionManager, newTransaction, parseDate, setTransaction
|
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init()
| Method Detail |
|---|
public any addManyToManyRelationship(string table, [string column=''], [string references=''], [boolean removeall='true'])
table - the name of the table to join to theq uerycolumn - the name of the target column in the joined tablereferences - the name of the source column in the table being adjoinedremoveall - indicates if crossreference id's should all be removed before inserting new recordspublic struct deleteManyToManyRecords(string table, [string idlist=''], [string listtype='IN'], [string column=''], [string references=''])
table - the name of the table to join to theq ueryidlist - comma delimited list of ids to dissociatelisttype - the name of the source column in the table being adjoinedcolumn - the name of the target column in the joined tablereferences - the name of the source column in the table being adjoinedprivate any deleteManyToManyRelationships()
private string getColumnNames()
getColumnNames
in class
arschema
public struct getFailedProperties()
private struct getManyToManyColumns(string table, [string column=''], [string references=''], [boolean needreference='true'])
tablecolumn - the name of the target column in the joined tablereferences - the name of the source column in the table being adjoinedneedreferenceprivate string getManyToManyKeys(string table, [string column=''], [string references=''])
table - the name of the table to join to theq uerycolumn - the name of the target column in the joined tablereferences - the name of the source column in the table being adjoinedpublic struct getManyToManyProperties()
private any getManyToManySelect(string table, [string column=''], [string references=''], [string local=''], [string select='[runtime expression]'])
table - the name of the many-to-many relationship tablecolumn - the name of the target column in the joined tablereferences - the name of the source column in the table being adjoinedlocal - the name of the column in the activerecord table to compare to the xref tableselect - columns to return in the queryprivate string getManyToManyTable(string table, string references='')
table - the name of the many-to-many relationship tablereferences - the name of the source column in the table being adjoinedpublic string insertManyToManyRecords(string table, string idlist, [string column=''], [string references=''])
table - the name of the table to join to theq ueryidlist - comma delimited list of ids to associatecolumn - the name of the target column in the joined tablereferences - the name of the source column in the table being adjoinedpublic query listManyToManyRecords(string table, [string select='*'], [string column=''], [string references=''], [string local=''])
table - the name of the many-to-many relationship tableselect - columns to return in the querycolumn - the name of the target column in the joined tablereferences - the name of the source column in the table being adjoinedlocal - the name of the column in the activerecord table to compare to the xref tablepublic struct readManyToManyProperties()
public any removeManyToManyRelationship(string table)
tablepublic string setManyToManyRecords(string table, string idlist, [string column=''], [string references=''], [string removeall='false'])
table - the name of the table to join to theq ueryidlist - comma delimited list of ids to associatecolumn - the name of the target column in the joined tablereferences - the name of the source column in the table being adjoinedremoveall - if true all records are deleted prior to insertionpublic struct updateManyToManyRelationships()
|
DataFaucet 1.0 Beta | ||||
| FRAMES | |||||