|
CFMongoDB | ||||
FRAMES |
WEB-INF.cftags.componentcfmongodb.core.MongoUtil
public class MongoUtil
Constructor Summary | |
---|---|
init([any mongoFactory=''])
initialize the MongoUtil |
Method Summary | |
---|---|
any |
GETMONGOFACTORY()
|
void |
SETMONGOFACTORY(any mongoFactory)
|
any |
createOrderedDBObject([any keyValues], [any dbObject=''])
Creates a Mongo CFBasicDBObject whose order matches the order of the keyValues argument keyValues can be: 1) a string in k,k format: "STATUS,TS" |
any |
getDateFromDoc([any doc])
Extracts the timestamp from the Doc's ObjectId |
any |
getDocumentTyperClass()
returns the typer class name to use for Document and Query objects |
any |
getOperationTyperClass()
returns a simple typer class that only concerns itself with 1, -1, and 0, which MongoDB uses for operation decision making such as sorting and field selection |
any |
isCFBasicDBObject([any doc])
Whether this doc is an instance of a CFMongoDB CFBasicDBObject |
any |
listToStruct([any list])
|
any |
newDBObject()
Create a new instance of the CFBasicDBObject |
any |
newDBObjectBuilder()
Create a new instance of a CFBasicDBObjectBuilder |
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 |
newOperationalDBObject()
Create a new instance of the CFBasicDBObject for use in operational (i |
any |
toCF([any BasicDBObject])
Converts a Mongo DBObject to a ColdFusion structure |
any |
toMongo([any data])
Converts a ColdFusion structure to a CFBasicDBobject, which the Java drivers can use |
any |
toMongoOperation([struct data])
Converts a ColdFusion structure to a CFBasicDBobject which ensures 1 and -1 remain ints |
Methods inherited from class WEB-INF.cftags.component |
---|
|
Constructor Detail |
---|
public init([any mongoFactory=''])
mongoFactory
Method Detail |
---|
public any GETMONGOFACTORY()
public void SETMONGOFACTORY(any mongoFactory)
mongoFactory
public any createOrderedDBObject([any keyValues], [any dbObject=''])
keyValues
dbObject
public any getDateFromDoc([any doc])
doc
public any getDocumentTyperClass()
public any getOperationTyperClass()
public any isCFBasicDBObject([any doc])
doc
public any listToStruct([any list])
list
public any newDBObject()
public any newDBObjectBuilder()
public any newIDCriteriaObject([String id])
id
public any newObjectIDFromID([String id])
id
public any newOperationalDBObject()
public any toCF([any BasicDBObject])
BasicDBObject
public any toMongo([any data])
data
public any toMongoOperation([struct data])
data
|
CFMongoDB | ||||
FRAMES |