| java.lang.Object org.apache.lucene.store.jdbc.JdbcFileEntrySettings
Constructor Summary | |
public | JdbcFileEntrySettings() Creates a new file entry settings, and intialize it to default values. |
Method Summary | |
public Properties | getProperties() Returns the inner java properties. | public String | getSetting(String setting) Returns the value match for the given setting. | public String | getSetting(String setting, String defaultValue) Returns the value that matches the given setting. | public boolean | getSettingAsBoolean(String setting, boolean defaultValue) Returns the boolean value that matches the given setting. | public Class | getSettingAsClass(String setting, Class defaultValue) Returns the class value that matches the given setting. | public Class | getSettingAsClass(String setting, Class defaultValue, ClassLoader classLoader) Returns the class value that matches the given setting. | public float | getSettingAsFloat(String setting, float defaultValue) Returns the float value that matches the given setting. | public int | getSettingAsInt(String setting, int defaultValue) Returns the int value that matches the given setting. | public long | getSettingAsLong(String setting, long defaultValue) Returns the long value that matches the given setting. | public JdbcFileEntrySettings | setBooleanSetting(String setting, boolean value) | public JdbcFileEntrySettings | setClassSetting(String setting, Class clazz) | public JdbcFileEntrySettings | setFloatSetting(String setting, float value) | public JdbcFileEntrySettings | setIntSetting(String setting, int value) | public JdbcFileEntrySettings | setLongSetting(String setting, long value) | public JdbcFileEntrySettings | setSetting(String setting, String value) |
JdbcFileEntrySettings | public JdbcFileEntrySettings()(Code) | | Creates a new file entry settings, and intialize it to default values.
|
getProperties | public Properties getProperties()(Code) | | Returns the inner java properties.
|
getSetting | public String getSetting(String setting)(Code) | | Returns the value match for the given setting. null if no
setting is found.
Parameters: setting - The setting name The value of the setting, or null if none is found |
getSetting | public String getSetting(String setting, String defaultValue)(Code) | | Returns the value that matches the given setting. If none is found,
the default value is used.
Parameters: setting - The setting name Parameters: defaultValue - The default value to be used if no setting is found The value of the setting, or defaultValue if none is found. |
getSettingAsBoolean | public boolean getSettingAsBoolean(String setting, boolean defaultValue)(Code) | | Returns the boolean value that matches the given setting. If none if found,
the default value is used.
Parameters: setting - The setting name Parameters: defaultValue - The default value to be used if no setting is found The value of the setting, or defaultValue if none is found. |
getSettingAsClass | public Class getSettingAsClass(String setting, Class defaultValue) throws ClassNotFoundException(Code) | | Returns the class value that matches the given setting. If none if found,
the default value is used.
Parameters: setting - The setting name Parameters: defaultValue - The default value to be used if no setting is found The value of the setting, or defaultValue if none is found. |
getSettingAsClass | public Class getSettingAsClass(String setting, Class defaultValue, ClassLoader classLoader) throws ClassNotFoundException(Code) | | Returns the class value that matches the given setting. If none if found,
the default value is used.
Parameters: setting - The setting name Parameters: defaultValue - The default value to be used if no setting is found Parameters: classLoader - The class loader to be used to load the class The value of the setting, or defaultValue if none is found. throws: ClassNotFoundException - |
getSettingAsFloat | public float getSettingAsFloat(String setting, float defaultValue)(Code) | | Returns the float value that matches the given setting. If none if found,
the default value is used.
Parameters: setting - The setting name Parameters: defaultValue - The default value to be used if no setting is found The value of the setting, or defaultValue if none is found. |
getSettingAsInt | public int getSettingAsInt(String setting, int defaultValue)(Code) | | Returns the int value that matches the given setting. If none if found,
the default value is used.
Parameters: setting - The setting name Parameters: defaultValue - The default value to be used if no setting is found The value of the setting, or defaultValue if none is found. |
getSettingAsLong | public long getSettingAsLong(String setting, long defaultValue)(Code) | | Returns the long value that matches the given setting. If none if found,
the default value is used.
Parameters: setting - The setting name Parameters: defaultValue - The default value to be used if no setting is found The value of the setting, or defaultValue if none is found. |
|
|