lucee.Componentcbmongodb.Mongo.Util
Mongo Util The utility methods used to assist in correct typing of objects passed to the MongoDB driver
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
jLoader
CBJavaloader.
|
true
|
false
|
|
any
|
MongoConfig
|
true
|
false
|
Method Summary | |
---|---|
any
|
asArray([any dbResult])
Returns the results of a dbResult object as an array of documents. |
any
|
createIndexOptions([any options])
Indexing Utilities. |
any
|
createOrderedDBObject([any keyValues], [any dbObject=''])
|
any
|
dbObjectNew([any contents])
|
any
|
encapsulateDBResult([any dbResult])
|
any
|
ensureTypesInArray(any dboArray)
|
any
|
ensureTyping(any dbo)
|
any
|
getDateFromDoc([any doc])
Extracts the timestamp from the Doc's ObjectId. |
string
|
getJLoader()
|
string
|
getMongoConfig()
|
any
|
isCFBasicDBObject([any doc])
Whether this doc is an instance of a CFMongoDB CFBasicDBObject. |
any
|
isObjectId([string id])
|
any
|
isObjectIdString(any sId)
|
any
|
listToStruct([any list])
|
numeric
|
mapOrder(any order)
SQL to Mongo translated ordering statements. |
any
|
newDBObject()
Create a new instance of the CFBasicDBObject. |
any
|
newIDCriteriaObject([string id])
Convenience for creating a new criteria object based on a string _id. |
any
|
newObjectIDFromID([string id])
Convenience for turning a string _id into a Mongo ObjectId object. |
any
|
setJLoader(any jLoader)
|
any
|
setMongoConfig(any MongoConfig)
|
any
|
toCF([any BasicDBObject])
Converts a Mongo DBObject to a ColdFusion structure. |
any
|
toMongo([any obj])
Converts a ColdFusion structure to a CFBasicDBobject, which the Java drivers can use. |
any
|
toMongoDocument([any data])
|
Methods inherited from class lucee.Component |
---|
None |
Property Detail |
---|
CBJavaloader
access
- publicrequired
- falsereturntype
- anyinject
- id:loader@cbjavaloaderserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- id:MongoConfig@cbmongodbserializable
- trueMethod Detail |
---|
Returns the results of a dbResult object as an array of documents
dbResult
Indexing Utilities
options
keyValues
dbObject
contents
dbResult
dboArray
dbo
Extracts the timestamp from the Doc's ObjectId. This represents the time the document was added to MongoDB
doc
Whether this doc is an instance of a CFMongoDB CFBasicDBObject
doc
id
sId
list
SQL to Mongo translated ordering statements
order
Create a new instance of the CFBasicDBObject. You use these anywhere the Mongo Java driver takes a DBObject
Convenience for creating a new criteria object based on a string _id
id
Convenience for turning a string _id into a Mongo ObjectId object
id
jLoader
MongoConfig
Converts a Mongo DBObject to a ColdFusion structure
BasicDBObject
Converts a ColdFusion structure to a CFBasicDBobject, which the Java drivers can use
obj
data