@Override public Object clone() { NonSynchronizedProperties properties = new NonSynchronizedProperties(size()); properties.putAll(this); return properties; }
@Override public String getProperty(String key) { Object oval = get(key); String sval = (oval instanceof String) ? (String)oval : null; return ((sval == null) && (defaults != null)) ? defaults.getProperty(key) : sval; } }
@Override public String getProperty(String key, String defaultValue) { String val = getProperty(key); return (val == null) ? defaultValue : val; } @Override
/** * ADVANCED: * Create a new login for the given platform. */ public DatasourceLogin(Platform databasePlatform) { this.platform = databasePlatform; this.dontUseExternalConnectionPooling(); this.dontUseExternalTransactionController(); this.properties = new NonSynchronizedProperties(4); this.properties.put("user", ""); this.isEncryptedPasswordSet = false; this.securableObjectHolder = new SecurableObjectHolder(); }
/** * ADVANCED: * Create a new login for the given platform. */ public DatasourceLogin(Platform databasePlatform) { this.platform = databasePlatform; this.dontUseExternalConnectionPooling(); this.dontUseExternalTransactionController(); this.properties = new NonSynchronizedProperties(4); this.properties.put("user", ""); this.isEncryptedPasswordSet = false; this.securableObjectHolder = new SecurableObjectHolder(); }
@Override public Object clone() { NonSynchronizedProperties properties = new NonSynchronizedProperties(size()); properties.putAll(this); return properties; }
@Override public String getProperty(String key) { Object oval = get(key); String sval = (oval instanceof String) ? (String)oval : null; return ((sval == null) && (defaults != null)) ? defaults.getProperty(key) : sval; } }
/** * ADVANCED: * Create a new login for the given platform. */ public DatasourceLogin(Platform databasePlatform) { this.platform = databasePlatform; this.dontUseExternalConnectionPooling(); this.dontUseExternalTransactionController(); this.properties = new NonSynchronizedProperties(4); this.properties.put("user", ""); this.isEncryptedPasswordSet = false; this.securableObjectHolder = new SecurableObjectHolder(); }
@Override public String getProperty(String key, String defaultValue) { String val = getProperty(key); return (val == null) ? defaultValue : val; } @Override
@Override public Object clone() { NonSynchronizedProperties properties = new NonSynchronizedProperties(size()); properties.putAll(this); return properties; }
@Override public String getProperty(String key) { Object oval = get(key); String sval = (oval instanceof String) ? (String)oval : null; return ((sval == null) && (defaults != null)) ? defaults.getProperty(key) : sval; } }