DBRef.java :  » MongoDB » morphia » com » mongodb » Java Open Source

Java Open Source » MongoDB » morphia 
morphia » com » mongodb » DBRef.java
package com.mongodb;

import java.io.Serializable;

public class DBRef implements Serializable {
  private static final long serialVersionUID = 1010362449129647598L;
    Serializable _id = null;
    String _ns;
    Serializable _db = null;

    protected DBRef() {}

    public DBRef(Serializable db, String coll, Serializable id) {
      _db = db; _ns = coll; _id = id;
    }
    
    
    public Serializable getId() {
        return _id;
    }

    public String getRef() {
        return _ns;
    }

    public Serializable getDB() {
        return _db;
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.