Examples of InsertMongoDBObject


Examples of com.bazaarvoice.commons.data.dao.mongo.dbo.InsertMongoDBObject

        _userDAO = userDAO;
    }

    @Override
    public InsertMongoDBObject toDBObject(A action) {
        return new InsertMongoDBObject().setID(action.getID()).
                append(_fields.getTypeField(), getActionType(action)).
                append(_fields.getUserField(), action.getUser() != null ? action.getUser().getID() : null).
                append(_fields.getUsernameField(), action.getUser() != null ? action.getUser().getUsername() : null).
                append(_fields.getDateField(), action.getDate()).
                append(_fields.getCommentField(), action.getComment()).
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.