From b89a7ee8b956c96a1dcee995ea840feddc5d4b27 Mon Sep 17 00:00:00 2001 From: Pierre Frisch Date: Thu, 22 Dec 2011 07:25:50 -0800 Subject: First commit of Ninja to ninja-internal Signed-off-by: Valerio Virgillito --- .../montage/data/nosqlaccess/nosqlstore.js | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100755 node_modules/montage/data/nosqlaccess/nosqlstore.js (limited to 'node_modules/montage/data/nosqlaccess/nosqlstore.js') diff --git a/node_modules/montage/data/nosqlaccess/nosqlstore.js b/node_modules/montage/data/nosqlaccess/nosqlstore.js new file mode 100755 index 00000000..8fb11d7d --- /dev/null +++ b/node_modules/montage/data/nosqlaccess/nosqlstore.js @@ -0,0 +1,68 @@ +/* +This file contains proprietary software owned by Motorola Mobility, Inc.
+No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +
*/ +/** + @module montage/data/nosqlaccess/nosqlstore + @requires montage/core/core + @requires montage/data/store + @requires montage/core/logger +*/ +var Montage = require("montage").Montage; +var Store = require("data/store").Store; +var logger = require("core/logger").logger("nosqlstore"); +/** + @class module:montage/data/nosqlaccess/nosqlstore.NoSqlStore + @extends module:montage/data/store.Store +*/ +var NoSqlStore = exports.NoSqlStore = Montage.create(Store,/** @lends module:montage/data/nosqlaccess/nosqlstore.NoSqlStore# */ { + +/** + Description TODO + @function + @param {Property} binder TODO + @returns {Boolean} true or false + */ + canServiceBlueprintBinder: { + value: function(binder) { + if ((binder !== null) && (binder.storePrototypeName === "NoSqlStore")) { + // TODO [PJYF Apr 19 2011] We need to check that the connection url points to the same DB + return true; + } + return false; + } + }, + +/** + Description TODO + @function + @param {Object} objectId TODO + @param {Property} context TODO + @param {Property} transactionId TODO + @returns null + */ + pledgeForObjectId$Implementation: { + value: function(objectId, context, transactionId) { + // TODO [PJYF Apr 28 2011] We need to implement it. + return null; + } + }, + +/** + Description TODO + @function + @param {Object} sourceObject TODO + @param {Property} relationship TODO + @param {Property} context TODO + @param {Property} transactionId TODO + @returns null + */ + pledgeForSourceObjectRelationship$Implementation: { + value: function(sourceObject, relationship, context, transactionId) { + // TODO [PJYF Apr 28 2011] We need to implement it. + return null; + } + } + +}); -- cgit v1.2.3