From: <ndi...@us...> - 2002-09-12 19:15:28
|
Update of /cvsroot/modus/org/bacfug/modus In directory usw-pr-cvs1:/tmp/cvs-serv27447/bacfug/modus Modified Files: basecontentobject.cfc Log Message: added in getPersister() -- which is a better interface and will allow greater flexibility later on Index: basecontentobject.cfc =================================================================== RCS file: /cvsroot/modus/org/bacfug/modus/basecontentobject.cfc,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** basecontentobject.cfc 10 Sep 2002 22:33:28 -0000 1.10 --- basecontentobject.cfc 12 Sep 2002 19:15:24 -0000 1.11 *************** *** 48,52 **** setDateModified(now()); //use the save method of whichever persister we are using ! instance.persister.save(this); </cfscript> <cfelse> --- 48,52 ---- setDateModified(now()); //use the save method of whichever persister we are using ! getPersister().save(this); </cfscript> <cfelse> *************** *** 60,64 **** <cfscript> //get this instance from the persister ! instance.persister.get(arguments.id,this); //set the loaded flag instance.wasLoadedFlag = true; --- 60,64 ---- <cfscript> //get this instance from the persister ! getPersister().get(arguments.id,this); //set the loaded flag instance.wasLoadedFlag = true; *************** *** 67,71 **** <!--- get all of this type ---> <cffunction name="getAll" access="public" returnType="array" hint="get all of this type" output="no"> ! <cfreturn instance.persister.getAll(getType())> </cffunction> --- 67,71 ---- <!--- get all of this type ---> <cffunction name="getAll" access="public" returnType="array" hint="get all of this type" output="no"> ! <cfreturn getPersister().getAll(getType())> </cffunction> *************** *** 351,355 **** ---> ! <!--- a method for creating a field ---> <cffunction name="fieldAdd" access="package" output="No" returnType="void" hint="Makes a field used primarily in the properties of specific content object definition components."> --- 351,358 ---- ---> ! <cffunction name="getPersister" access="public" output="no" returnType="org.bacfug.modus.persistence.basePersister" hint="get the persister for this instance"> ! <cfreturn instance.persister> ! </cffunction> ! <!--- a method for creating a field ---> <cffunction name="fieldAdd" access="package" output="No" returnType="void" hint="Makes a field used primarily in the properties of specific content object definition components."> *************** *** 447,449 **** --- 450,453 ---- <cfreturn createUUID()> </cffunction> + </cfcomponent> |