aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage-user/data/sqlaccess/sqlstore.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/montage-user/data/sqlaccess/sqlstore.js')
-rwxr-xr-xnode_modules/montage-user/data/sqlaccess/sqlstore.js69
1 files changed, 69 insertions, 0 deletions
diff --git a/node_modules/montage-user/data/sqlaccess/sqlstore.js b/node_modules/montage-user/data/sqlaccess/sqlstore.js
new file mode 100755
index 00000000..e8d22eb4
--- /dev/null
+++ b/node_modules/montage-user/data/sqlaccess/sqlstore.js
@@ -0,0 +1,69 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5</copyright> */
6/**
7 @module montage/data/sqlaccess/sqlstore
8 @requires montage/core/core
9 @requires montage/data/store
10 @requires montage/core/logger
11*/
12var Montage = require("montage").Montage;
13var Store = require("data/store").Store;
14var logger = require("core/logger").logger("sqlstore");
15
16/**
17 @class module:montage/data/sqlaccess/sqlstore.SqlStore
18 @extends module:montage/data/store.Store
19*/
20var SqlStore = exports.SqlStore = Montage.create(Store,/** @lends module:montage/data/sqlaccess/sqlstore.SqlStore# */ {
21
22/**
23 Description TODO
24 @function
25 @param {Property} binder TODO
26 @returns {Boolean} true or false
27 */
28 canServiceBlueprintBinder: {
29 value: function(binder) {
30 if ((binder !== null) && (binder.storePrototypeName === "SqlStore")) {
31 // TODO [PJYF Apr 19 2011] We need to check that the connection url points to the same DB
32 return true;
33 }
34 return false;
35 }
36 },
37
38/**
39 Description TODO
40 @function
41 @param {Object} objectId TODO
42 @param {Property} context TODO
43 @param {Property} transactionId TODO
44 @returns null
45 */
46 pledgeForObjectId$Implementation: {
47 value: function(objectId, context, transactionId) {
48 // TODO [PJYF Apr 28 2011] We need to implement it.
49 return null;
50 }
51 },
52
53/**
54 Description TODO
55 @function
56 @param {Object} sourceObject TODO
57 @param {Property} relationship TODO
58 @param {Property} context TODO
59 @param {Property} transactionId TODO
60 @returns null
61 */
62 pledgeForSourceObjectRelationship$Implementation: {
63 value: function(sourceObject, relationship, context, transactionId) {
64 // TODO [PJYF Apr 28 2011] We need to implement it.
65 return null;
66 }
67 }
68
69});