AutoReference-class {pgUtils}R Documentation

Class "AutoReference", define references (relations) between database tables

Description

Objects of the type AutoReference are used in the functions insertIntoTable and updateDBTable to define relations between database tables.

Objects from the Class

Objects can be created by calls of the form new("AutoReference", ...). Usually the object should be created with new("AutoReference",source.table="<source table name>",ref.table="ref table name",source.table.column="<column in data>",ref.table.column="<attribute in ref table>")

Slots

source.table:
Object of class "character" the name of the source table (that will contain later the foreign key to the referenced table)
ref.table:
Object of class "character" the name of the referenced table
source.table.column:
Object of class "character" the column name of the data submitted thats value is the same as the value in the ref table, attribute ref.table.column
ref.table.column:
Object of class "character" the column (attribute) name, where the value of the source.table.column should compared with

Methods

getRefAttribute
signature(object = "AutoReference"): returns the primary key of the referenced table (<ref.table.name>_pk)
getRefColumn
signature(object = "AutoReference"): returns the ref.table.column parameter
getRefTable
signature(object = "AutoReference"): returns the name of the referenced table
getSourceAttribute
signature(object = "AutoReference"): returns the name of the foreign key in the source table (usually <ref.table.name>_fk)
getSourceColumn
signature(object = "AutoReference"): returns the source.table.column attribute
show
signature(object = "AutoReference"): show method

Author(s)

Johannes Rainer

See Also

createDBTable, insertIntoTable, updateDBTable


[Package pgUtils version 1.14.1 Index]