jreceiver.common.rpc
Interface Settings

All Superinterfaces:
RpcBase

public interface Settings
extends RpcBase

Settings-related queries and updates for a (possibly-remote) JRec server

Version:
$Revision: 1.3 $ $Date: 2002/12/29 00:44:08 $
Author:
Reed Esau

Field Summary
static java.lang.String DELETE
           
static java.lang.String GET
           
static java.lang.String GET_BOOL
           
static java.lang.String GET_INT
           
static java.lang.String HANDLER_NAME
           
static java.lang.String PUT
           
 
Fields inherited from interface jreceiver.common.rpc.RpcBase
DETECT
 
Method Summary
 void delete(java.lang.String key)
          remove a settings value
 java.lang.String get(java.lang.String key)
          access to the settings table
 java.lang.String get(java.lang.String key, java.lang.String defaultValue)
          access to the settings table
 boolean getBool(java.lang.String key)
          access to the settings table and return an boolean
 boolean getBool(java.lang.String key, boolean defaultValue)
          access to the settings table and return an boolean
 int getInt(java.lang.String key)
          access to the settings table and return an int
 int getInt(java.lang.String key, int defaultValue)
          access to the settings table and return an int
 void put(java.lang.String key, boolean value)
          insert or update an boolean settings value
 void put(java.lang.String key, int value)
          insert or update an integer settings value
 void put(java.lang.String key, java.lang.String value)
          insert or update a settings value
 
Methods inherited from interface jreceiver.common.rpc.RpcBase
detect
 

Field Detail

HANDLER_NAME

public static final java.lang.String HANDLER_NAME

GET

public static final java.lang.String GET

GET_INT

public static final java.lang.String GET_INT

GET_BOOL

public static final java.lang.String GET_BOOL

PUT

public static final java.lang.String PUT

DELETE

public static final java.lang.String DELETE
Method Detail

get

public java.lang.String get(java.lang.String key)
                     throws RpcException
access to the settings table

get

public java.lang.String get(java.lang.String key,
                            java.lang.String defaultValue)
                     throws RpcException
access to the settings table

getInt

public int getInt(java.lang.String key)
           throws RpcException
access to the settings table and return an int

getInt

public int getInt(java.lang.String key,
                  int defaultValue)
           throws RpcException
access to the settings table and return an int

getBool

public boolean getBool(java.lang.String key)
                throws RpcException
access to the settings table and return an boolean

getBool

public boolean getBool(java.lang.String key,
                       boolean defaultValue)
                throws RpcException
access to the settings table and return an boolean

put

public void put(java.lang.String key,
                int value)
         throws RpcException
insert or update an integer settings value

put

public void put(java.lang.String key,
                boolean value)
         throws RpcException
insert or update an boolean settings value

put

public void put(java.lang.String key,
                java.lang.String value)
         throws RpcException
insert or update a settings value

delete

public void delete(java.lang.String key)
            throws RpcException
remove a settings value


Copyright © 2001-2002 Reed Esau, All Rights Reserved.