ObjectDao.cfc

0 views
Skip to first unread message

ol...@ansit.no

unread,
Dec 3, 2009, 6:58:32 AM12/3/09
to Reactor
If the dbuser has the DBS role granted, the ObjectDao.cfc can create a
Record object with repeated attributes. This occurs only if the oracle
SID has more than one user having the same table name, ie
RSHU.BRUKER, KUNDE2.BRUKER, DROPBOX.BRUKER.

The following query retuns 3 rows
SELECT object_name table_name,
object_type as TABLE_TYPE,
owner as table_owner
FROM all_objects
where object_type in ('TABLE','VIEW')
and object_name = 'KODEVERK'
TABLE_NAME TABLE_TYPE TABLE_OWNER
KODEVERK TABLE RSHU
KODEVERK TABLE DROPBOX

The following sql the returns

SELECT
col.COLUMN_NAME as name,
CASE
WHEN primaryConstraints.column_name IS NULL
THEN 'false'
ELSE 'true'
END as primaryKey,
/* Oracle has no equivalent to autoincrement or
identity */
'false' AS
"IDENTITY",
CASE
WHEN col.NULLABLE = 'Y' THEN 'true'
ELSE 'false'
END as NULLABLE,
col.DATA_TYPE as dbDataType,
case
/* 26 is the length of now() in ColdFusion (i.e.
{ts '2006-06-26 13:10:14'})*/
when col.data_type = 'DATE' then 26
/* oracle returns 4000 for clobs which is the
length of what Oracle stores inline in the record. However, oracle can
store several gb out of line. */
when col.data_type in ('CLOB','BLOB') then
20000000
/* Oracle can compress a number in a smaller
field so use precision if available */
else nvl(col.data_precision, col.data_length)
end as length,
col.data_scale as scale,
col.DATA_DEFAULT as "DEFAULT",
CASE
WHEN updateCol.updatable = 'YES' THEN
'false'
ELSE 'true'
END as readonly
FROM all_tab_columns col,
all_updatable_columns updateCol,
( select colCon.column_name,
colcon.table_name
from all_cons_columns colCon,
all_constraints tabCon
where tabCon.table_name = 'KODEVERK'
AND colCon.CONSTRAINT_NAME =
tabCon.CONSTRAINT_NAME
AND colCon.TABLE_NAME =
tabCon.TABLE_NAME
AND 'P' =
tabCon.CONSTRAINT_TYPE
) primaryConstraints
where col.table_name = 'KODEVERK'
and col.COLUMN_NAME =
primaryConstraints.COLUMN_NAME (+)
AND col.TABLE_NAME =
primaryConstraints.TABLE_NAME (+)
and updateCol.table_name (+) = col.table_name
and updateCol.COLUMN_NAME (+) = col.COLUMN_NAME
order by col.column_id

NAME PRIMARYKEY IDENTITY NULLABLE DBDATATYPE LENGTH SCALE DEFAULT
READONLY
KOD_ID true false false NUMBER 38 0 (null) false
KOD_ID true false false NUMBER 38 0 (null) false
KOD_ID true false false NUMBER 38 0 (null) false
KOD_ID true false false NUMBER 38 0 (null) false
KOD_ID true false false NUMBER 38 0 (null) false
KOD_ID true false false NUMBER 38 0 (null) false
KOD_ID true false false NUMBER 38 0 (null) false
KOD_ID true false false NUMBER 38 0 (null) false
KOD_ID true false false NUMBER 38 0 (null) false
KOD_ID true false false NUMBER 38 0 (null) false
KOD_ID true false false NUMBER 38 0 (null) false
KOD_ID true false false NUMBER 38 0 (null) false
KOD_ID true false false NUMBER 38 0 (null) false
KOD_ID true false false NUMBER 38 0 (null) false
KOD_ID true false false NUMBER 38 0 (null) false
KOD_ID true false false NUMBER 38 0 (null) false
KOD_GRUPPE false false false VARCHAR2 20 (null) (null) false
KOD_GRUPPE false false false VARCHAR2 20 (null) (null) false
KOD_GRUPPE false false false VARCHAR2 20 (null) (null) false
KOD_GRUPPE false false false VARCHAR2 20 (null) (null) false
KOD_IDENT false false false VARCHAR2 20 (null) (null) false
KOD_IDENT false false false VARCHAR2 20 (null) (null) false
KOD_IDENT false false false VARCHAR2 20 (null) (null) false
KOD_IDENT false false false VARCHAR2 20 (null) (null) false
KOD_VERDI false false false VARCHAR2 50 (null) (null) false
KOD_VERDI false false false VARCHAR2 50 (null) (null) false
KOD_VERDI false false false VARCHAR2 50 (null) (null) false
KOD_VERDI false false false VARCHAR2 50 (null) (null) false
KOD_BESKR false false true VARCHAR2 100 (null) (null) false
KOD_BESKR false false true VARCHAR2 100 (null) (null) false
KOD_BESKR false false true VARCHAR2 100 (null) (null) false
KOD_BESKR false false true VARCHAR2 100 (null) (null) false
KOD_PRIOR false false true NUMBER 38 0 (null) false
KOD_PRIOR false false true NUMBER 38 0 (null) false
KOD_PRIOR false false true NUMBER 38 0 (null) false
KOD_PRIOR false false true NUMBER 38 0 (null) false

And you end up with a Record component lookin like this


<cfcomponent hint="I am the base record representing the KODEVERK
object. I am generated. DO NOT EDIT ME (but feel free to delete
me)."
extends="reactor.base.abstractRecord" >

<cfset variables.signature = "E9CAA5F8D7E33B8504189ACDB90A48C0" />

<cffunction name="init" access="public" hint="I configure and return
this record object." output="false" returntype="any"
_returntype="reactor.project.RshFB.Record.KODEVERKRecord">

<cfargument name="Id" hint="I am the default value for the Id
field." required="no" type="any" _type="string" default="0" />

<cfargument name="Id" hint="I am the default value for the Id
field." required="no" type="any" _type="string" default="0" />

<cfargument name="Id" hint="I am the default value for the Id
field." required="no" type="any" _type="string" default="0" />

<cfargument name="Id" hint="I am the default value for the Id
field." required="no" type="any" _type="string" default="0" />

<cfargument name="Id" hint="I am the default value for the Id
field." required="no" type="any" _type="string" default="0" />

<cfargument name="Id" hint="I am the default value for the Id
field." required="no" type="any" _type="string" default="0" />

<cfargument name="Id" hint="I am the default value for the Id
field." required="no" type="any" _type="string" default="0" />

<cfargument name="Id" hint="I am the default value for the Id
field." required="no" type="any" _type="string" default="0" />

<cfargument name="Id" hint="I am the default value for the Id
field." required="no" type="any" _type="string" default="0" />

<cfargument name="Id" hint="I am the default value for the Id
field." required="no" type="any" _type="string" default="0" />

<cfargument name="Id" hint="I am the default value for the Id
field." required="no" type="any" _type="string" default="0" />

<cfargument name="Id" hint="I am the default value for the Id
field." required="no" type="any" _type="string" default="0" />

<cfargument name="Id" hint="I am the default value for the Id
field." required="no" type="any" _type="string" default="0" />

<cfargument name="Id" hint="I am the default value for the Id
field." required="no" type="any" _type="string" default="0" />

<cfargument name="Id" hint="I am the default value for the Id
field." required="no" type="any" _type="string" default="0" />

<cfargument name="Id" hint="I am the default value for the Id
field." required="no" type="any" _type="string" default="0" />

<cfargument name="Gruppe" hint="I am the default value for the
Gruppe field." required="no" type="any" _type="string" default="" />

<cfargument name="Gruppe" hint="I am the default value for the
Gruppe field." required="no" type="any" _type="string" default="" />

<cfargument name="Gruppe" hint="I am the default value for the
Gruppe field." required="no" type="any" _type="string" default="" />

<cfargument name="Gruppe" hint="I am the default value for the
Gruppe field." required="no" type="any" _type="string" default="" />

<cfargument name="Ident" hint="I am the default value for the Ident
field." required="no" type="any" _type="string" default="" />

<cfargument name="Ident" hint="I am the default value for the Ident
field." required="no" type="any" _type="string" default="" />

<cfargument name="Ident" hint="I am the default value for the Ident
field." required="no" type="any" _type="string" default="" />

<cfargument name="Ident" hint="I am the default value for the Ident
field." required="no" type="any" _type="string" default="" />

<cfargument name="Verdi" hint="I am the default value for the Verdi
field." required="no" type="any" _type="string" default="" />

<cfargument name="Verdi" hint="I am the default value for the Verdi
field." required="no" type="any" _type="string" default="" />

<cfargument name="Verdi" hint="I am the default value for the Verdi
field." required="no" type="any" _type="string" default="" />

<cfargument name="Verdi" hint="I am the default value for the Verdi
field." required="no" type="any" _type="string" default="" />

<cfargument name="Beskrivelse" hint="I am the default value for the
Beskrivelse field." required="no" type="any" _type="string"
default="" />

<cfargument name="Beskrivelse" hint="I am the default value for the
Beskrivelse field." required="no" type="any" _type="string"
default="" />

<cfargument name="Beskrivelse" hint="I am the default value for the
Beskrivelse field." required="no" type="any" _type="string"
default="" />

<cfargument name="Beskrivelse" hint="I am the default value for the
Beskrivelse field." required="no" type="any" _type="string"
default="" />

<cfargument name="Prioritet" hint="I am the default value for the
Prioritet field." required="no" type="any" _type="string" default="" /
>

<cfargument name="Prioritet" hint="I am the default value for the
Prioritet field." required="no" type="any" _type="string" default="" /
>

<cfargument name="Prioritet" hint="I am the default value for the
Prioritet field." required="no" type="any" _type="string" default="" /
>

<cfargument name="Prioritet" hint="I am the default value for the
Prioritet field." required="no" type="any" _type="string" default="" /
>

<cfset setId(arguments.Id) />

<cfset setId(arguments.Id) />

<cfset setId(arguments.Id) />

<cfset setId(arguments.Id) />

<cfset setId(arguments.Id) />

<cfset setId(arguments.Id) />

<cfset setId(arguments.Id) />

<cfset setId(arguments.Id) />

<cfset setId(arguments.Id) />

<cfset setId(arguments.Id) />

<cfset setId(arguments.Id) />

<cfset setId(arguments.Id) />

<cfset setId(arguments.Id) />

<cfset setId(arguments.Id) />

<cfset setId(arguments.Id) />

<cfset setId(arguments.Id) />

<cfset setGruppe(arguments.Gruppe) />

<cfset setGruppe(arguments.Gruppe) />

<cfset setGruppe(arguments.Gruppe) />

<cfset setGruppe(arguments.Gruppe) />

<cfset setIdent(arguments.Ident) />

<cfset setIdent(arguments.Ident) />

<cfset setIdent(arguments.Ident) />

<cfset setIdent(arguments.Ident) />

<cfset setVerdi(arguments.Verdi) />

<cfset setVerdi(arguments.Verdi) />

<cfset setVerdi(arguments.Verdi) />

<cfset setVerdi(arguments.Verdi) />

<cfset setBeskrivelse(arguments.Beskrivelse) />

<cfset setBeskrivelse(arguments.Beskrivelse) />

<cfset setBeskrivelse(arguments.Beskrivelse) />

<cfset setBeskrivelse(arguments.Beskrivelse) />

<cfset setPrioritet(arguments.Prioritet) />

<cfset setPrioritet(arguments.Prioritet) />

<cfset setPrioritet(arguments.Prioritet) />

<cfset setPrioritet(arguments.Prioritet) />

<cfreturn this />
</cffunction>


<!--- Id --->
<cffunction name="setId" hint="I set the Id value ."
access="public" output="false" returntype="void">
<cfargument name="Id" hint="I am this record's Id value."
required="yes" type="any" _type="string" />

<cfset _getTo().Id = arguments.Id />

</cffunction>


<cffunction name="getId" hint="I get the Id value." access="public"
output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Id />
</cffunction>

<!--- Id --->
<cffunction name="setId" hint="I set the Id value ."
access="public" output="false" returntype="void">
<cfargument name="Id" hint="I am this record's Id value."
required="yes" type="any" _type="string" />

<cfset _getTo().Id = arguments.Id />

</cffunction>


<cffunction name="getId" hint="I get the Id value." access="public"
output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Id />
</cffunction>

<!--- Id --->
<cffunction name="setId" hint="I set the Id value ."
access="public" output="false" returntype="void">
<cfargument name="Id" hint="I am this record's Id value."
required="yes" type="any" _type="string" />

<cfset _getTo().Id = arguments.Id />

</cffunction>


<cffunction name="getId" hint="I get the Id value." access="public"
output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Id />
</cffunction>

<!--- Id --->
<cffunction name="setId" hint="I set the Id value ."
access="public" output="false" returntype="void">
<cfargument name="Id" hint="I am this record's Id value."
required="yes" type="any" _type="string" />

<cfset _getTo().Id = arguments.Id />

</cffunction>


<cffunction name="getId" hint="I get the Id value." access="public"
output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Id />
</cffunction>

<!--- Id --->
<cffunction name="setId" hint="I set the Id value ."
access="public" output="false" returntype="void">
<cfargument name="Id" hint="I am this record's Id value."
required="yes" type="any" _type="string" />

<cfset _getTo().Id = arguments.Id />

</cffunction>


<cffunction name="getId" hint="I get the Id value." access="public"
output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Id />
</cffunction>

<!--- Id --->
<cffunction name="setId" hint="I set the Id value ."
access="public" output="false" returntype="void">
<cfargument name="Id" hint="I am this record's Id value."
required="yes" type="any" _type="string" />

<cfset _getTo().Id = arguments.Id />

</cffunction>


<cffunction name="getId" hint="I get the Id value." access="public"
output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Id />
</cffunction>

<!--- Id --->
<cffunction name="setId" hint="I set the Id value ."
access="public" output="false" returntype="void">
<cfargument name="Id" hint="I am this record's Id value."
required="yes" type="any" _type="string" />

<cfset _getTo().Id = arguments.Id />

</cffunction>


<cffunction name="getId" hint="I get the Id value." access="public"
output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Id />
</cffunction>

<!--- Id --->
<cffunction name="setId" hint="I set the Id value ."
access="public" output="false" returntype="void">
<cfargument name="Id" hint="I am this record's Id value."
required="yes" type="any" _type="string" />

<cfset _getTo().Id = arguments.Id />

</cffunction>


<cffunction name="getId" hint="I get the Id value." access="public"
output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Id />
</cffunction>

<!--- Id --->
<cffunction name="setId" hint="I set the Id value ."
access="public" output="false" returntype="void">
<cfargument name="Id" hint="I am this record's Id value."
required="yes" type="any" _type="string" />

<cfset _getTo().Id = arguments.Id />

</cffunction>


<cffunction name="getId" hint="I get the Id value." access="public"
output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Id />
</cffunction>

<!--- Id --->
<cffunction name="setId" hint="I set the Id value ."
access="public" output="false" returntype="void">
<cfargument name="Id" hint="I am this record's Id value."
required="yes" type="any" _type="string" />

<cfset _getTo().Id = arguments.Id />

</cffunction>


<cffunction name="getId" hint="I get the Id value." access="public"
output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Id />
</cffunction>

<!--- Id --->
<cffunction name="setId" hint="I set the Id value ."
access="public" output="false" returntype="void">
<cfargument name="Id" hint="I am this record's Id value."
required="yes" type="any" _type="string" />

<cfset _getTo().Id = arguments.Id />

</cffunction>


<cffunction name="getId" hint="I get the Id value." access="public"
output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Id />
</cffunction>

<!--- Id --->
<cffunction name="setId" hint="I set the Id value ."
access="public" output="false" returntype="void">
<cfargument name="Id" hint="I am this record's Id value."
required="yes" type="any" _type="string" />

<cfset _getTo().Id = arguments.Id />

</cffunction>


<cffunction name="getId" hint="I get the Id value." access="public"
output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Id />
</cffunction>

<!--- Id --->
<cffunction name="setId" hint="I set the Id value ."
access="public" output="false" returntype="void">
<cfargument name="Id" hint="I am this record's Id value."
required="yes" type="any" _type="string" />

<cfset _getTo().Id = arguments.Id />

</cffunction>


<cffunction name="getId" hint="I get the Id value." access="public"
output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Id />
</cffunction>

<!--- Id --->
<cffunction name="setId" hint="I set the Id value ."
access="public" output="false" returntype="void">
<cfargument name="Id" hint="I am this record's Id value."
required="yes" type="any" _type="string" />

<cfset _getTo().Id = arguments.Id />

</cffunction>


<cffunction name="getId" hint="I get the Id value." access="public"
output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Id />
</cffunction>

<!--- Id --->
<cffunction name="setId" hint="I set the Id value ."
access="public" output="false" returntype="void">
<cfargument name="Id" hint="I am this record's Id value."
required="yes" type="any" _type="string" />

<cfset _getTo().Id = arguments.Id />

</cffunction>


<cffunction name="getId" hint="I get the Id value." access="public"
output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Id />
</cffunction>

<!--- Id --->
<cffunction name="setId" hint="I set the Id value ."
access="public" output="false" returntype="void">
<cfargument name="Id" hint="I am this record's Id value."
required="yes" type="any" _type="string" />

<cfset _getTo().Id = arguments.Id />

</cffunction>


<cffunction name="getId" hint="I get the Id value." access="public"
output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Id />
</cffunction>

<!--- Gruppe --->
<cffunction name="setGruppe" hint="I set the Gruppe value ."
access="public" output="false" returntype="void">
<cfargument name="Gruppe" hint="I am this record's Gruppe value."
required="yes" type="any" _type="string" />

<cfset _getTo().Gruppe = arguments.Gruppe />

</cffunction>


<cffunction name="getGruppe" hint="I get the Gruppe value."
access="public" output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Gruppe />
</cffunction>

<!--- Gruppe --->
<cffunction name="setGruppe" hint="I set the Gruppe value ."
access="public" output="false" returntype="void">
<cfargument name="Gruppe" hint="I am this record's Gruppe value."
required="yes" type="any" _type="string" />

<cfset _getTo().Gruppe = arguments.Gruppe />

</cffunction>


<cffunction name="getGruppe" hint="I get the Gruppe value."
access="public" output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Gruppe />
</cffunction>

<!--- Gruppe --->
<cffunction name="setGruppe" hint="I set the Gruppe value ."
access="public" output="false" returntype="void">
<cfargument name="Gruppe" hint="I am this record's Gruppe value."
required="yes" type="any" _type="string" />

<cfset _getTo().Gruppe = arguments.Gruppe />

</cffunction>


<cffunction name="getGruppe" hint="I get the Gruppe value."
access="public" output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Gruppe />
</cffunction>

<!--- Gruppe --->
<cffunction name="setGruppe" hint="I set the Gruppe value ."
access="public" output="false" returntype="void">
<cfargument name="Gruppe" hint="I am this record's Gruppe value."
required="yes" type="any" _type="string" />

<cfset _getTo().Gruppe = arguments.Gruppe />

</cffunction>


<cffunction name="getGruppe" hint="I get the Gruppe value."
access="public" output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Gruppe />
</cffunction>

<!--- Ident --->
<cffunction name="setIdent" hint="I set the Ident value ."
access="public" output="false" returntype="void">
<cfargument name="Ident" hint="I am this record's Ident value."
required="yes" type="any" _type="string" />

<cfset _getTo().Ident = arguments.Ident />

</cffunction>


<cffunction name="getIdent" hint="I get the Ident value."
access="public" output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Ident />
</cffunction>

<!--- Ident --->
<cffunction name="setIdent" hint="I set the Ident value ."
access="public" output="false" returntype="void">
<cfargument name="Ident" hint="I am this record's Ident value."
required="yes" type="any" _type="string" />

<cfset _getTo().Ident = arguments.Ident />

</cffunction>


<cffunction name="getIdent" hint="I get the Ident value."
access="public" output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Ident />
</cffunction>

<!--- Ident --->
<cffunction name="setIdent" hint="I set the Ident value ."
access="public" output="false" returntype="void">
<cfargument name="Ident" hint="I am this record's Ident value."
required="yes" type="any" _type="string" />

<cfset _getTo().Ident = arguments.Ident />

</cffunction>


<cffunction name="getIdent" hint="I get the Ident value."
access="public" output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Ident />
</cffunction>

<!--- Ident --->
<cffunction name="setIdent" hint="I set the Ident value ."
access="public" output="false" returntype="void">
<cfargument name="Ident" hint="I am this record's Ident value."
required="yes" type="any" _type="string" />

<cfset _getTo().Ident = arguments.Ident />

</cffunction>


<cffunction name="getIdent" hint="I get the Ident value."
access="public" output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Ident />
</cffunction>

<!--- Verdi --->
<cffunction name="setVerdi" hint="I set the Verdi value ."
access="public" output="false" returntype="void">
<cfargument name="Verdi" hint="I am this record's Verdi value."
required="yes" type="any" _type="string" />

<cfset _getTo().Verdi = arguments.Verdi />

</cffunction>


<cffunction name="getVerdi" hint="I get the Verdi value."
access="public" output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Verdi />
</cffunction>

<!--- Verdi --->
<cffunction name="setVerdi" hint="I set the Verdi value ."
access="public" output="false" returntype="void">
<cfargument name="Verdi" hint="I am this record's Verdi value."
required="yes" type="any" _type="string" />

<cfset _getTo().Verdi = arguments.Verdi />

</cffunction>


<cffunction name="getVerdi" hint="I get the Verdi value."
access="public" output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Verdi />
</cffunction>

<!--- Verdi --->
<cffunction name="setVerdi" hint="I set the Verdi value ."
access="public" output="false" returntype="void">
<cfargument name="Verdi" hint="I am this record's Verdi value."
required="yes" type="any" _type="string" />

<cfset _getTo().Verdi = arguments.Verdi />

</cffunction>


<cffunction name="getVerdi" hint="I get the Verdi value."
access="public" output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Verdi />
</cffunction>

<!--- Verdi --->
<cffunction name="setVerdi" hint="I set the Verdi value ."
access="public" output="false" returntype="void">
<cfargument name="Verdi" hint="I am this record's Verdi value."
required="yes" type="any" _type="string" />

<cfset _getTo().Verdi = arguments.Verdi />

</cffunction>


<cffunction name="getVerdi" hint="I get the Verdi value."
access="public" output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Verdi />
</cffunction>

<!--- Beskrivelse --->
<cffunction name="setBeskrivelse" hint="I set the Beskrivelse
value ." access="public" output="false" returntype="void">
<cfargument name="Beskrivelse" hint="I am this record's
Beskrivelse value." required="yes" type="any" _type="string" />

<cfset _getTo().Beskrivelse = arguments.Beskrivelse />

</cffunction>


<cffunction name="getBeskrivelse" hint="I get the Beskrivelse
value." access="public" output="false" returntype="any"
_returntype="string">
<cfreturn _getTo().Beskrivelse />
</cffunction>

<!--- Beskrivelse --->
<cffunction name="setBeskrivelse" hint="I set the Beskrivelse
value ." access="public" output="false" returntype="void">
<cfargument name="Beskrivelse" hint="I am this record's
Beskrivelse value." required="yes" type="any" _type="string" />

<cfset _getTo().Beskrivelse = arguments.Beskrivelse />

</cffunction>


<cffunction name="getBeskrivelse" hint="I get the Beskrivelse
value." access="public" output="false" returntype="any"
_returntype="string">
<cfreturn _getTo().Beskrivelse />
</cffunction>

<!--- Beskrivelse --->
<cffunction name="setBeskrivelse" hint="I set the Beskrivelse
value ." access="public" output="false" returntype="void">
<cfargument name="Beskrivelse" hint="I am this record's
Beskrivelse value." required="yes" type="any" _type="string" />

<cfset _getTo().Beskrivelse = arguments.Beskrivelse />

</cffunction>


<cffunction name="getBeskrivelse" hint="I get the Beskrivelse
value." access="public" output="false" returntype="any"
_returntype="string">
<cfreturn _getTo().Beskrivelse />
</cffunction>

<!--- Beskrivelse --->
<cffunction name="setBeskrivelse" hint="I set the Beskrivelse
value ." access="public" output="false" returntype="void">
<cfargument name="Beskrivelse" hint="I am this record's
Beskrivelse value." required="yes" type="any" _type="string" />

<cfset _getTo().Beskrivelse = arguments.Beskrivelse />

</cffunction>


<cffunction name="getBeskrivelse" hint="I get the Beskrivelse
value." access="public" output="false" returntype="any"
_returntype="string">
<cfreturn _getTo().Beskrivelse />
</cffunction>

<!--- Prioritet --->
<cffunction name="setPrioritet" hint="I set the Prioritet value ."
access="public" output="false" returntype="void">
<cfargument name="Prioritet" hint="I am this record's Prioritet
value." required="yes" type="any" _type="string" />

<cfset _getTo().Prioritet = arguments.Prioritet />

</cffunction>


<cffunction name="getPrioritet" hint="I get the Prioritet value."
access="public" output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Prioritet />
</cffunction>

<!--- Prioritet --->
<cffunction name="setPrioritet" hint="I set the Prioritet value ."
access="public" output="false" returntype="void">
<cfargument name="Prioritet" hint="I am this record's Prioritet
value." required="yes" type="any" _type="string" />

<cfset _getTo().Prioritet = arguments.Prioritet />

</cffunction>


<cffunction name="getPrioritet" hint="I get the Prioritet value."
access="public" output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Prioritet />
</cffunction>

<!--- Prioritet --->
<cffunction name="setPrioritet" hint="I set the Prioritet value ."
access="public" output="false" returntype="void">
<cfargument name="Prioritet" hint="I am this record's Prioritet
value." required="yes" type="any" _type="string" />

<cfset _getTo().Prioritet = arguments.Prioritet />

</cffunction>


<cffunction name="getPrioritet" hint="I get the Prioritet value."
access="public" output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Prioritet />
</cffunction>

<!--- Prioritet --->
<cffunction name="setPrioritet" hint="I set the Prioritet value ."
access="public" output="false" returntype="void">
<cfargument name="Prioritet" hint="I am this record's Prioritet
value." required="yes" type="any" _type="string" />

<cfset _getTo().Prioritet = arguments.Prioritet />

</cffunction>


<cffunction name="getPrioritet" hint="I get the Prioritet value."
access="public" output="false" returntype="any" _returntype="string">
<cfreturn _getTo().Prioritet />
</cffunction>

<!--- exists --->
<cffunction name="exists" access="public" hint="I check to see if
this record exists." output="false" returntype="any"
_returntype="boolean">
<cfreturn _getDao().exists(_getTo()) />
</cffunction>


<!--- to --->
<cffunction name="_setTo" access="public" output="false"
returntype="void">
<cfargument name="to" hint="I am this record's transfer object."
required="yes" type="any" _type="reactor.project.RshFB.To.KODEVERKTo" /
>
<cfif isDeleted()>
<cfthrow message="Record Deleted"
detail="The record you're using has been deleted. There are some
properties which will continue to function after a record has been
deleted, but not all of them. Please create a new record and go from
there."
type="reactor.record.RecordDeleted" />
</cfif>
<cfset variables.to = arguments.to />
</cffunction>
<cffunction name="_getTo" access="public" output="false"
returntype="any" _returntype="reactor.project.RshFB.To.KODEVERKTo">
<cfif isDeleted()>
<cfthrow message="Record Deleted"
detail="The record you're using has been deleted. There are some
properties which will continue to function after a record has been
deleted, but not all of them. Please create a new record and go from
there."
type="reactor.record.RecordDeleted" />
</cfif>

<cfif NOT StructKeyExists(variables, "to") >
<cfset variables.to = _getReactorFactory().createTo(_getAlias()) >
</cfif>

<cfreturn variables.to />
</cffunction>

<!--- initialTo --->
<cffunction name="_setInitialTo" access="private" output="false"
returntype="void">
<cfargument name="initialTo" hint="I am this record's initial
transfer object." required="yes" type="any"
_type="reactor.project.RshFB.To.KODEVERKTo" />
<cfset variables.initialTo = arguments.initialTo />
</cffunction>
<cffunction name="_getInitialTo" access="private" output="false"
returntype="any" _returntype="reactor.project.RshFB.To.KODEVERKTo">

<cfif NOT StructKeyExists(variables, "initialTo") >
<cfset variables.initialTo = _getReactorFactory().createTo(_getAlias
()) >
</cfif>

<cfreturn variables.initialTo />
</cffunction>

<!--- dao --->
<cffunction name="_setDao" access="private" output="false"
returntype="void">
<cfargument name="dao" hint="I am the Dao this Record uses to
load and save itself." required="yes" type="any"
_type="reactor.project.RshFB.Dao.KODEVERKDao" />
<cfset variables.dao = arguments.dao />
</cffunction>
<cffunction name="_getDao" access="private" output="false"
returntype="any" _returntype="reactor.project.RshFB.Dao.KODEVERKDao" >

<cfif NOT StructKeyExists(variables, "dao") >
<cfset variables.dao = _getReactorFactory().createDao(_getAlias())
>
</cfif>

<cfreturn variables.dao />
</cffunction>

</cfcomponent>
Reply all
Reply to author
Forward
0 new messages