org.springframework.richclient.settings.jdbc
Class JdbcSettings

java.lang.Object
  extended by org.springframework.richclient.settings.AbstractSettings
      extended by org.springframework.richclient.settings.jdbc.JdbcSettings
All Implemented Interfaces:
Settings

public class JdbcSettings
extends AbstractSettings

Author:
Peter De Bruycker

Constructor Summary
JdbcSettings(DataSource ds, String user, Integer id, String key)
           
JdbcSettings(JdbcSettings parent, DataSource ds, String user, Integer id, String key)
           
 
Method Summary
 Integer getId()
           
 String[] getKeys()
          Returns the keys in this Settings.
 String getUser()
           
protected  boolean internalContains(String key)
           
protected  Settings internalCreateChild(String key)
           
protected  String internalGet(String key)
          Return null if no value found for key
protected  String[] internalGetChildSettings()
          Should return the names of the child settings initially in this settings instance, i.e.
protected  void internalRemove(String key)
           
 void internalRemoveSettings()
           
protected  void internalSet(String key, String value)
           
 void load()
           
 void save()
           
 
Methods inherited from class org.springframework.richclient.settings.AbstractSettings
addPropertyChangeListener, addPropertyChangeListener, contains, getAllKeys, getBoolean, getChildSettings, getDefaultBoolean, getDefaultDouble, getDefaultFloat, getDefaultInt, getDefaultKeys, getDefaultLabeledEnum, getDefaultLong, getDefaultString, getDouble, getFloat, getInt, getLabeledEnum, getLong, getName, getParent, getSettings, getString, isDefault, isRoot, remove, removePropertyChangeListener, removePropertyChangeListener, removeSettings, setBoolean, setDefaultBoolean, setDefaultDouble, setDefaultFloat, setDefaultInt, setDefaultLabeledEnum, setDefaultLong, setDefaultString, setDouble, setFloat, setInt, setLabeledEnum, setLong, setString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcSettings

public JdbcSettings(DataSource ds,
                    String user,
                    Integer id,
                    String key)

JdbcSettings

public JdbcSettings(JdbcSettings parent,
                    DataSource ds,
                    String user,
                    Integer id,
                    String key)
Method Detail

internalContains

protected boolean internalContains(String key)
Specified by:
internalContains in class AbstractSettings

internalGetChildSettings

protected String[] internalGetChildSettings()
Description copied from class: AbstractSettings
Should return the names of the child settings initially in this settings instance, i.e. the children that were stored in the backend.

Specified by:
internalGetChildSettings in class AbstractSettings
Returns:
the names of the child settings

internalCreateChild

protected Settings internalCreateChild(String key)
Specified by:
internalCreateChild in class AbstractSettings

internalSet

protected void internalSet(String key,
                           String value)
Specified by:
internalSet in class AbstractSettings

internalGet

protected String internalGet(String key)
Description copied from class: AbstractSettings
Return null if no value found for key

Specified by:
internalGet in class AbstractSettings

internalRemove

protected void internalRemove(String key)
Specified by:
internalRemove in class AbstractSettings

getKeys

public String[] getKeys()
Description copied from interface: Settings
Returns the keys in this Settings.

Returns:
the keys

getId

public Integer getId()

save

public void save()
          throws IOException
Throws:
IOException

load

public void load()
          throws IOException
Throws:
IOException

getUser

public String getUser()

internalRemoveSettings

public void internalRemoveSettings()
Specified by:
internalRemoveSettings in class AbstractSettings


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.