<cffunction name="isValid_id" returntype="boolean" access="public" description="I determine if the string argument is a valid mongodb _id"> <cfargument name="_id" type="string" required="true" /> <cfscript> // mongoUtils should already be in the application scope
return application.mongoUtils.getMongoFactory().getObject("org.bson.types.ObjectId").isValid(arguments._id); </cfscript> </cffunction>
--
You received this message because you are subscribed to the Google Groups "CFMongoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cfmongodb+...@googlegroups.com.
To post to this group, send email to cfmo...@googlegroups.com.
Visit this group at http://groups.google.com/group/cfmongodb.
For more options, visit https://groups.google.com/d/optout.