com.stratelia.silverpeas.domains
Class DriverSettings

java.lang.Object
  extended by com.stratelia.silverpeas.domains.DriverSettings
Direct Known Subclasses:
LDAPSettings, SQLSettings

public abstract class DriverSettings
extends Object

Extracting common code from LDAPSettings and SQLSettings

Author:
ehugonnet

Constructor Summary
DriverSettings()
           
 
Method Summary
protected  boolean getBooleanValue(ResourceLocator rs, String key, boolean defaultValue)
           
protected  int getIntValue(ResourceLocator rs, String key, int defaultValue)
           
protected  String getStringValue(ResourceLocator rs, String key, String defaultValue)
           
protected  String getSureString(ResourceLocator rs, String key)
          Use this function to be sure to obtain a string without error, even if the property is not found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DriverSettings

public DriverSettings()
Method Detail

getSureString

protected String getSureString(ResourceLocator rs,
                               String key)
Use this function to be sure to obtain a string without error, even if the property is not found. (in that case, returns empty string)

Parameters:
rs - the properties file
key - the key value to retreive
Returns:

getStringValue

protected String getStringValue(ResourceLocator rs,
                                String key,
                                String defaultValue)

getBooleanValue

protected boolean getBooleanValue(ResourceLocator rs,
                                  String key,
                                  boolean defaultValue)

getIntValue

protected int getIntValue(ResourceLocator rs,
                          String key,
                          int defaultValue)


Copyright © 2016 Silverpeas. All Rights Reserved.