odm1_1-class: Classes '"odm1_1"' and '"odm1_1Ver"'

Description Objects from the Class Slots Extends Methods Author(s) References Examples

Description

Observations data works with a hidden layer, in which the commands are translated into SQL-queries and submitted to the database server. The two classes implement this hidden layer. "odm1_1Ver" also provides mechanisms to a simple version management system as described in Reusser et. al 2012.

Objects from the Class

Objects can be created by calls of the form new("odm1_1", con=connection)and new("odm1_1Ver", con=connection). The objects store the database connection object returned by dbConnect in the only slot.

Slots

con:

Object of class "DBIConnection" returned by dbConnect

Extends

odm1_1Ver extends class odm1_1 directly.

Methods

IaddCV

signature(object = "odm1_1"): ...

IaddDataValues

signature(object = "odm1_1"): ...

IaddDataVersion

signature(object = "odm1_1"): ...

IaddISOMetadata

signature(object = "odm1_1"): ...

IaddSite

signature(object = "odm1_1"): ...

IaddSource

signature(object = "odm1_1"): ...

IaddSpatialReferences

signature(object = "odm1_1"): ...

IaddSynonym

signature(object = "odm1_1"): ...

IaddUnits

signature(object = "odm1_1"): ...

IaddVariable

signature(object = "odm1_1"): ...

IarchiveDataValues

signature(object = "odm1_1"): ...

IdbState

signature(object = "odm1_1"): ...

IdeleteDataValues

signature(object = "odm1_1"): ...

IgetCensorCode

signature(object = "odm1_1"): ...

IgetCurrentDataVersion

signature(object = "odm1_1"): ...

IgetCV

signature(object = "odm1_1"): ...

IgetDataType

signature(object = "odm1_1"): ...

IgetDataValues

signature(object = "odm1_1"): ...

IgetDataVersions

signature(object = "odm1_1"): ...

IgetGeneralCategory

signature(object = "odm1_1"): ...

IgetISOMetadata

signature(object = "odm1_1"): ...

IgetMethods

signature(object = "odm1_1"): ...

IgetNo

signature(object = "odm1_1"): ...

IgetOffsetTypes

signature(object = "odm1_1"): ...

IgetOldDataValues

signature(object = "odm1_1"): ...

IgetQualifiers

signature(object = "odm1_1"): ...

IgetQualityControlLevels

signature(object = "odm1_1"): ...

IgetSampleMedium

signature(object = "odm1_1"): ...

IgetSamples

signature(object = "odm1_1"): ...

IgetSampleType

signature(object = "odm1_1"): ...

IgetSite

signature(object = "odm1_1"): ...

IgetSource

signature(object = "odm1_1"): ...

IgetSpatialReferences

signature(object = "odm1_1"): ...

IgetSpeciation

signature(object = "odm1_1"): ...

IgetSynonymID

signature(object = "odm1_1"): ...

IgetTopicCategory

signature(object = "odm1_1"): ...

IgetUnits

signature(object = "odm1_1"): ...

IgetValueType

signature(object = "odm1_1"): ...

IgetVariable

signature(object = "odm1_1"): ...

IgetVariableName

signature(object = "odm1_1"): ...

IgetVerticalDatum

signature(object = "odm1_1"): ...

IupdateDataValues

signature(object = "odm1_1"): ...

IaddDataVersion

signature(object = "odm1_1Ver"): ...

IarchiveDataValues

signature(object = "odm1_1Ver"): ...

IdbState

signature(object = "odm1_1Ver"): ...

IgetCurrentDataVersion

signature(object = "odm1_1Ver"): ...

IgetDataVersions

signature(object = "odm1_1Ver"): ...

IgetOldDataValues

signature(object = "odm1_1Ver"): ...

Author(s)

Dominik Reusser

References

Reusser et al. 2012 - todo add exact reference

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
showClass("odm1_1")
showClass("odm1_1Ver")

	require(RSQLite)
	m <- dbDriver("SQLite")
	con <- dbConnect(m, dbname = "RODM.db")

	#dbGetQuery(con, "SELECT * FROM Versions")
	sqhandler <-  new("odm1_1Ver", con=con)
	## Not run: 
           #without version management
	   sqhandler <-  new("odm1_1", con=con)
        
## End(Not run)        
	options(odm.handler=sqhandler)
   
        getMetadata("VariableName")

RObsDat documentation built on May 29, 2017, 12:07 p.m.