org.ejdb.driver
Class BSONQueryObject

java.lang.Object
  extended by org.ejdb.bson.BSONObject
      extended by org.ejdb.driver.BSONQueryObject

public class BSONQueryObject
extends BSONObject

BSON object for EJDB queries (limitation checks for BSONObject.ID_KEY field)

Version:
$Id$
Author:
Tyutyunkov Vyacheslav (tve@softmotions.com)

Field Summary
 
Fields inherited from class org.ejdb.bson.BSONObject
data, fields, ID_KEY
 
Constructor Summary
BSONQueryObject()
           
BSONQueryObject(BSONObject src)
           
BSONQueryObject(java.util.Map<java.lang.String,java.lang.Object> data)
           
BSONQueryObject(java.lang.String key, java.lang.Object value)
           
 
Method Summary
 BSONQueryObject append(java.lang.String key, java.lang.Object value)
          The same as BSONObject.put(String, Object) but return this
 ObjectId getId()
          Deprecated. BSON Query objects can not contains dedicated ObjectID
protected  boolean isFieldsOrderImportant()
          If returns true fields order will be checks on equal.
 java.lang.Object put(java.lang.String key, java.lang.Object value)
          Add new key->value to BSON object.
 
Methods inherited from class org.ejdb.bson.BSONObject
clear, containsField, equals, fields, get, hashCode, putAll, putAll, registerField, remove, size, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BSONQueryObject

public BSONQueryObject()

BSONQueryObject

public BSONQueryObject(java.lang.String key,
                       java.lang.Object value)

BSONQueryObject

public BSONQueryObject(java.util.Map<java.lang.String,java.lang.Object> data)

BSONQueryObject

public BSONQueryObject(BSONObject src)
Method Detail

put

public java.lang.Object put(java.lang.String key,
                            java.lang.Object value)
Add new key->value to BSON object.

Overrides:
put in class BSONObject
Returns:
added value

append

public BSONQueryObject append(java.lang.String key,
                              java.lang.Object value)
The same as BSONObject.put(String, Object) but return this

Overrides:
append in class BSONObject

getId

@Deprecated
public ObjectId getId()
Deprecated. BSON Query objects can not contains dedicated ObjectID

Returns id of BSON object (if specified)

Overrides:
getId in class BSONObject
Returns:
id of BSON object (if specified)

isFieldsOrderImportant

protected boolean isFieldsOrderImportant()
If returns true fields order will be checks on equal.

Overrides:
isFieldsOrderImportant in class BSONObject