SRJRCFrames
v0.1.296

de.schwarzrot.app.config.support
Class AbstractConfigBase

java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by de.schwarzrot.data.support.AbstractEntity
          extended by de.schwarzrot.app.config.support.AbstractConfigBase
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, Entity, Serializable, Comparable<Entity>
Direct Known Subclasses:
ApplicationConfig, DSConfig, WorkerConfig

public abstract class AbstractConfigBase
extends AbstractEntity

base class for preferences based persistence, mainly configuration stuff, that need to be available independant of existing database connnections.

Configuration is splitted into 2 parts, system defaults and user custom settings. System defaults are common to all childclasses and the base location is symbolized by the classname of SystemDefault, returned as persistence name. Classes that want different location for system defaults must override the getPersistenceName.

Not every system setting is allowed to be overwritten by user customization. So thats the role of getUserAttributes, which returns a list of property names.

Default is to store the user properties in nodes, build by the classpath of the configuration entity, whereas all system properties will be stored in the same node.

Author:
Reinhard Mantey
See Also:
Serialized Form

Constructor Summary
AbstractConfigBase()
           
 
Method Summary
 String getPersistenceName()
          system default settings of all descendants go to the same node, given by this method.
protected  Map<String,Boolean> getSupportedDBDrivers()
           
 Class<?> getSystemClass()
          return the classtype for system usage
 boolean isUserType()
          configuration IS per default a system type.
 
Methods inherited from class de.schwarzrot.data.support.AbstractEntity
adoptChildren, adoptChildren, adoptGroupedChildren, compareTo, equals, getCModified, getCode, getDefaultOrder, getDtCreated, getDtModified, getId, getLogger, getMappings, getSchemaName, getSkipList, getUCreated, getUModified, getUniqColumnNames, getUserAttributes, getVariantColumnName, getVariantTypeMap, hashCode, isDirty, isVirtual, setCModified, setDirty, setDtCreated, setDtModified, setId, setSchemaName, setUCreated, setUModified, toString, validate
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.jgoodies.binding.beans.Observable
addPropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

AbstractConfigBase

public AbstractConfigBase()
Method Detail

getPersistenceName

public String getPersistenceName()
system default settings of all descendants go to the same node, given by this method. If a descendant should have its own system node, override this method.

Specified by:
getPersistenceName in interface Entity
Overrides:
getPersistenceName in class AbstractEntity
Returns:
the entity-name used for persistence

getSystemClass

public Class<?> getSystemClass()
Description copied from interface: Entity
return the classtype for system usage

Specified by:
getSystemClass in interface Entity
Overrides:
getSystemClass in class AbstractEntity
Returns:
a class

isUserType

public final boolean isUserType()
configuration IS per default a system type. Single properties may be declared to belong to ordinary users. Those overrideable properties have to be specified by getUserAttributes.

Specified by:
isUserType in interface Entity
Overrides:
isUserType in class AbstractEntity
Returns:
true or false

getSupportedDBDrivers

protected Map<String,Boolean> getSupportedDBDrivers()

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.