Commits on May 12, 2012
  1. @kohanyirobert

    Add mapping for BSON symbol objects.

    Changes:
     - BsonSymbol: interface for a BSON symbol.
     - BasicSymbol: simple implementation of the previous interface.
     - Default{Reader,Writer}: add Bson{Reader,Writer} implementations for the
       symbol object type.
     - BsonObject: registered the Bson{Reader,Writer} implementations as the
       default ones for this type of BSON objects.
     - DefaultSymbolReaderWriterTest: not too exhaustive test for the
       implementations.
    
    (Interactions with MongoDB are yet to be tested.)
    kohanyirobert committed May 12, 2012
  2. @kohanyirobert

    Change source and target version from 1.6 to 1.7.

    Change maven-compiler-plugin source and target from 1.6 to 1.7. Make changes to
    the source code according to this:
     - BsonDocumentsTest: remove HashMap<K,V> declarations as Java 7 doesn't
       requires it.
     - DefaultRegularExpressionReaderWriterTest: uncomment a test block which
       referenced the UNICODE_CHARACTER_CLASS static int (from Pattern). The code
       that was previously commented out stayed in the code base in case the source
       and target changes to 1.7. The referencing test case is ignored, because
       this regular expression options isn't supported.
    kohanyirobert committed May 12, 2012
  3. @kohanyirobert

    Update dependency and plugin versions in POM.

    Changes:
     - guava: 11.0.1 -> 12.0
     - mongo-java-driver: 2.7.2 -> 2.7.3
     - maven-compiler-plugin: 2.3.2 -> 2.4
    kohanyirobert committed May 12, 2012
  4. @kohanyirobert
  5. @kohanyirobert
Commits on Mar 10, 2012
  1. @kohanyirobert

    Fix erroneuous assertion in BasicTimestamp.

    The assertion in the ctor failed if more than one document (with a
    Timestamp) were in the buffer. (Some commits ago I failed to fix
    BasicTimestamp as I did with BasicObjectId ... but hey! Better later
    than never, right?)
    kohanyirobert committed Mar 10, 2012
Commits on Feb 29, 2012
  1. @kohanyirobert
Commits on Feb 18, 2012
  1. @kohanyirobert

    Update maven-checkstyle-version.

    (From 2.8 to 2.9.)
    kohanyirobert committed Feb 18, 2012
Commits on Feb 7, 2012
  1. @kohanyirobert

    Fix erroneuous assertion in BasicObjectId.

    The assertion failed if more than one document (with an ObjectId) were in the
    buffer.
    kohanyirobert committed Feb 7, 2012
Commits on Feb 6, 2012
  1. @kohanyirobert

    Remove document key checks.

    The reason for this is that MongoDB uses keys that starts with '$' or
    contains '.' internally  which have two consequences: (a) users aren't *normally*
    permitted to create documents using such keys, (b) documents sent by the
    database need to handled *differently* upon deserialization as they could contain such
    keys quite often. The whole *checking-for-invalid-keys* should be handled at
    MongoDB driver level (morelike at database level, but whatever ...).
    
     - Remove document key checks from DefaultBsonDocument, DefaultBsonDocumentBuilder
       and BsonDocuments.
     - Update BsonDocument, BsonDocument.Builder and BsonDocuments documentation
       accordingly.
     - Delete BsonPreconditions as the class was used only at one place of the code.
    kohanyirobert committed Feb 6, 2012
Commits on Jan 28, 2012
  1. @kohanyirobert

    Update DOCUMENT reader. Rename ObjectId ...

     - Update DefaultReader.DOCUMENT so that it returns an immutable BsonDocument
       instead of a simple Map.
     - Update BsonDocuments.readFrom(ByteBuffer) so that it doesn't create a new
       BsonDocument by copying the Map (which is a BsonDocument really) that was
       read from the buffer.
     - Rename ObjectId --> BsonObjectId.
     - Reanem Timestamp --> BsonTimestamp.
    kohanyirobert committed Jan 28, 2012
Commits on Jan 26, 2012
  1. @kohanyirobert

    Update maven-javadoc-plugin version.

    Update maven-javadoc-plugin version (2.8 --> 2.8.1).
    kohanyirobert committed Jan 26, 2012
Commits on Jan 22, 2012
  1. @kohanyirobert

    Rename methods in ObjectId and Timestamp.

    Remove the get prefix from every getter-like method in the ObjectId and
    Timestamp interfaces and change every other referencing class accordingly
    (mostly for consistency).
    kohanyirobert committed Jan 22, 2012
  2. @kohanyirobert

    Add global random stuff generator for tests.

    Findbugs bugs me that I should use a single Random instance instead of creating
    a new instance everytime I need one ... BsonRandom for the rescue! This is a
    simple wrapper around Java's Random.
    
     - Add BsonRandom.
     - Update tests that use Java's Random directly to use BsonRandom instead.
    kohanyirobert committed Jan 22, 2012
  3. @kohanyirobert

    Add MongoDB ObjectId and Timestamp types.

     - Create simple interfaces for ObjectId and Timestamp.
     - Provide simple implementations for both interface.
     - Register new reader, writer and predicate objects for them.
     - Add simple tests for the implementations.
    kohanyirobert committed Jan 22, 2012
  4. @kohanyirobert
  5. @kohanyirobert
  6. @kohanyirobert

    Fix project name in POM.

    kohanyirobert committed Jan 22, 2012
  7. @kohanyirobert

    Tweak README formatting.

    kohanyirobert committed Jan 22, 2012
  8. @kohanyirobert
  9. @kohanyirobert

    Initial commit.

    kohanyirobert committed Jan 22, 2012