From: <ndi...@us...> - 2002-09-10 22:33:32
|
Update of /cvsroot/modus/org/bacfug/modus In directory usw-pr-cvs1:/tmp/cvs-serv32540/bacfug/modus Modified Files: basecontentobject.cfc Log Message: added a makeID() method and use that in the init() -- this allows a contentObject type to have its own mechanism to create default id's Index: basecontentobject.cfc =================================================================== RCS file: /cvsroot/modus/org/bacfug/modus/basecontentobject.cfc,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** basecontentobject.cfc 9 Sep 2002 21:18:59 -0000 1.9 --- basecontentobject.cfc 10 Sep 2002 22:33:28 -0000 1.10 *************** *** 13,17 **** //fieldsOrderedIndex = arrayNew(1); //set a default instance.id ! instance.id = createUUID(); //which persister will we use? Set a default. config.persister = "org.bacfug.modus.persistence.simpleObjectInstance"; --- 13,17 ---- //fieldsOrderedIndex = arrayNew(1); //set a default instance.id ! instance.id = makeID(); //which persister will we use? Set a default. config.persister = "org.bacfug.modus.persistence.simpleObjectInstance"; *************** *** 443,446 **** <cfreturn theseProperties> </cffunction> ! </cfcomponent> --- 443,449 ---- <cfreturn theseProperties> </cffunction> ! <!--- a method to make a new id. this is here so that object types can override it to create their own default id mechanism ---> ! <cffunction name="makeID" access="package" output="no" returnType="uuid" hint="The mechanism to make a new id. Used in the init() and can be overridden in specific object types to have a different kind of default id"> ! <cfreturn createUUID()> ! </cffunction> </cfcomponent> |