com.threerings.admin.server
Class DatabaseConfigRegistry.DatabaseObjectRecord

java.lang.Object
  extended by com.threerings.admin.server.ConfigRegistry.ObjectRecord
      extended by com.threerings.admin.server.DatabaseConfigRegistry.DatabaseObjectRecord
All Implemented Interfaces:
AttributeChangeListener, ChangeListener, ElementUpdateListener, SetListener<DSet.Entry>
Direct Known Subclasses:
PeeredDatabaseConfigRegistry.PeerDatabaseObjectRecord
Enclosing class:
DatabaseConfigRegistry

protected class DatabaseConfigRegistry.DatabaseObjectRecord
extends ConfigRegistry.ObjectRecord

Stores settings in a database.


Field Summary
protected  HashMap<String,String> _data
           
protected  String _path
           
 
Fields inherited from class com.threerings.admin.server.ConfigRegistry.ObjectRecord
object
 
Constructor Summary
DatabaseConfigRegistry.DatabaseObjectRecord(String path, DObject object)
           
 
Method Summary
protected  void flush(String field, String value)
           
protected  boolean getValue(String field, boolean defval)
           
protected  byte getValue(String field, byte defval)
           
protected  float getValue(String field, float defval)
           
protected  float[] getValue(String field, float[] defval)
           
protected  int getValue(String field, int defval)
           
protected  int[] getValue(String field, int[] defval)
           
protected  long getValue(String field, long defval)
           
protected  long[] getValue(String field, long[] defval)
           
protected  short getValue(String field, short defval)
           
protected  String getValue(String field, String defval)
           
protected  String[] getValue(String field, String[] defval)
           
 void init()
           
protected  void setAndFlush(String field, String value)
           
protected  void setValue(String field, boolean value)
           
protected  void setValue(String field, byte value)
           
protected  void setValue(String field, float value)
           
protected  void setValue(String field, float[] value)
           
protected  void setValue(String field, int value)
           
protected  void setValue(String field, int[] value)
           
protected  void setValue(String field, long value)
           
protected  void setValue(String field, long[] value)
           
protected  void setValue(String field, short value)
           
protected  void setValue(String field, String value)
           
protected  void setValue(String field, String[] value)
           
 
Methods inherited from class com.threerings.admin.server.ConfigRegistry.ObjectRecord
attributeChanged, deserialize, elementUpdated, entryAdded, entryRemoved, entryUpdated, initField, nameToKey, serialize, serializeAttribute, updateValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_path

protected String _path

_data

protected HashMap<String,String> _data
Constructor Detail

DatabaseConfigRegistry.DatabaseObjectRecord

public DatabaseConfigRegistry.DatabaseObjectRecord(String path,
                                                   DObject object)
Method Detail

init

public void init()
Overrides:
init in class ConfigRegistry.ObjectRecord

getValue

protected boolean getValue(String field,
                           boolean defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

getValue

protected byte getValue(String field,
                        byte defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

getValue

protected short getValue(String field,
                         short defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

getValue

protected int getValue(String field,
                       int defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

getValue

protected long getValue(String field,
                        long defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

getValue

protected float getValue(String field,
                         float defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

getValue

protected String getValue(String field,
                          String defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

getValue

protected int[] getValue(String field,
                         int[] defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

getValue

protected float[] getValue(String field,
                           float[] defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

getValue

protected long[] getValue(String field,
                          long[] defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

getValue

protected String[] getValue(String field,
                            String[] defval)
Specified by:
getValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        boolean value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        byte value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        short value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        int value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        long value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        float value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        String value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        int[] value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        float[] value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        long[] value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setValue

protected void setValue(String field,
                        String[] value)
Specified by:
setValue in class ConfigRegistry.ObjectRecord

setAndFlush

protected void setAndFlush(String field,
                           String value)

flush

protected void flush(String field,
                     String value)