All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.versioneye.domain.Pom Maven / Gradle / Ivy

Go to download

This is the java implementation of the VersionEye core services. It contains some buisiness logic and utility classes.

There is a newer version: 1.3.7
Show newest version
package com.versioneye.domain;


import com.mongodb.BasicDBObject;
import com.mongodb.DBObject;
import org.bson.types.ObjectId;

import java.util.Date;

public class Pom {

    public static final String POM = "poms";

    public static final String ID = "_id";
    public static final String URL = "url";

    private ObjectId id;
    private ObjectId url;


    public BasicDBObject getDBObject(){
        BasicDBObject doc = new BasicDBObject();
        doc.put(ID, id);
        doc.put(URL, url);
        return doc;
    }

    public void updateFromDbObject(DBObject object){
        setId( (ObjectId)object.get(ID) );
        setUrl ((ObjectId) object.get(URL));
    }

    public ObjectId getId() {
        return id;
    }

    public void setId(ObjectId id) {
        this.id = id;
    }

    public ObjectId getUrl() {
        return url;
    }

    public void setUrl(ObjectId url) {
        this.url = url;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy