java.lang.Object | |||
↳ | java.util.prefs.Preferences | ||
↳ | java.util.prefs.AbstractPreferences | ||
↳ | vars.jpa.VarsUserPreferences |
Created by IntelliJ IDEA. User: brian Date: Aug 25, 2009 Time: 9:49:54 AM To change this template use File | Settings | File Templates.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.prefs.Preferences
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.prefs.AbstractPreferences
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This is a default constructor that simply calls another constructor.
| |||||||||||
This is the main constructor that takes in a VARSPreferences object that will serve
as the parent preference to the new VARSPreference that will be created with the
name that is passed in
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is used to copy one preference 'tree' to another.
| |||||||||||
Executes a named query using a map of named parameters
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is used to get a child node with a specific name from the current node
| |||||||||||
This method returns an array of strings that represent the names of the children that are directly
below this node.
| |||||||||||
This method returns the value associated with the specified key at the
preference node, or
null if there is no association for this key,
or the association cannot be determined at this time. | |||||||||||
Returns all of the keys that have an associated value in this preference node.
| |||||||||||
`
This method puts the give key/value association into this preference node (and persists it to the database)
| |||||||||||
This method rmoves this prefernce node, invalidating it and any prefernces that it contains.
| |||||||||||
Remove the association (if any) for the specified key at this preference node.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.prefs.AbstractPreferences
| |||||||||||
From class
java.util.prefs.Preferences
| |||||||||||
From class
java.lang.Object
|
This is a default constructor that simply calls another constructor. This is designed to construct a preferences object that has the whole preferences tree (at the root with all users)
This is the main constructor that takes in a VARSPreferences object that will serve as the parent preference to the new VARSPreference that will be created with the name that is passed in
parent | This is the VARSPreferences object that will be the parent of the new VARSPreferences object created with this constructor |
---|---|
name | This is the name that will be used for the new VARSPreferences node |
This method is used to copy one preference 'tree' to another. It provides a 'deep' copy.
source | This is the Preferences object that contains the preferences object you want to copy |
---|---|
destination | This is the Preferences object that contains the preferences object you want to copy to |
Executes a named query using a map of named parameters
name | The name of the query to execute |
---|---|
namedParameters | A Map |
This method is used to get a child node with a specific name from the current node
name | The name of the child node to return from the current node |
---|
This method returns an array of strings that represent the names of the children that are directly below this node.
BackingStoreException | - if anything goes wrong and the operation cannot complete |
---|
BackingStoreException |
---|
This method returns the value associated with the specified key at the
preference node, or null
if there is no association for this key,
or the association cannot be determined at this time. It is guaranteed that
key
is non-null. Also, it is guaranteed that this node has not
been removed.
key | The key to be searched for |
---|
Returns all of the keys that have an associated value in this preference node. The returned array will have size of zero if this node has no preferences.
BackingStoreException | - if something goes wrong and the operation cannot be completed successfully |
---|
` This method puts the give key/value association into this preference node (and persists it to the database)
key | This is the key that will be used to insert and extract the associated value from the database |
---|---|
value | This is the value that is associated with the give key and will be stored in the database |
This method rmoves this prefernce node, invalidating it and any prefernces that it contains. The named child will have no descendants at the time this invocation is made (the removeNode() will be called recursively from the bottom up.
BackingStoreException | - if something goes wrong with the removal from the back end storage and this operation cannot be peformed successfully |
---|
Remove the association (if any) for the specified key at this preference node. It is
guaranteed that key
is non-null. Also, it is guaranteed that this node
has not been removed.
key | This is the key (name) of the preference to be removed |
---|
BackingStoreException |
---|