Mercurial > hg > ltpda
diff m-toolbox/classes/@LTPDADatabaseConnectionManager/LTPDADatabaseConnectionManager.m @ 4:e3c5468b1bfe database-connection-manager
Integrate with LTPDAPreferences
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Mon, 05 Dec 2011 16:20:06 +0100 |
parents | 18e956c96a1b |
children | 5e7477b94d94 |
line wrap: on
line diff
--- a/m-toolbox/classes/@LTPDADatabaseConnectionManager/LTPDADatabaseConnectionManager.m Mon Dec 05 16:20:06 2011 +0100 +++ b/m-toolbox/classes/@LTPDADatabaseConnectionManager/LTPDADatabaseConnectionManager.m Mon Dec 05 16:20:06 2011 +0100 @@ -5,10 +5,6 @@ connections = {}; credentials = {}; - p_credentialsExpiry = 3600; - p_cachePassword = 2; - p_maxConnectionsNumber = 10; - end % private properties properties(Dependent=true) @@ -83,22 +79,22 @@ function val = get.credentialsExpiry(cm) % obtain from user preferences - %p = getappdata(0, 'LTPDApreferences'); - val = cm.p_credentialsExpiry; + p = getappdata(0, 'LTPDApreferences'); + val = double(p.getRepoPrefs().getExpiry()); end function val = get.cachePassword(cm) % obtain from user preferences - %p = getappdata(0, 'LTPDApreferences'); - val = cm.p_cachePassword; + p = getappdata(0, 'LTPDApreferences'); + val = double(p.getRepoPrefs().getCachePassword()); end function val = get.maxConnectionsNumber(cm) % obtain from user preferences - %p = getappdata(0, 'LTPDApreferences'); - val = cm.p_maxConnectionsNumber; + p = getappdata(0, 'LTPDApreferences'); + val = double(p.getRepoPrefs().getMaxConnectionsNumber()); end