jreceiver.common.rpc
Interface ServerTable

All Superinterfaces:
RpcBase
All Known Subinterfaces:
Commands, DeviceBindings, Devices, DriverBindings, Drivers, Folders, Methods, Mexternals, Mfiles, Playlists, RoleAuths, Roles, Roots, Signals, Sites, Sources, Transcoders, Tunes, Users

public interface ServerTable
extends RpcBase

Basic queries to a remote server, or direct if server is in same VM.

Version:
$Revision: 1.1 $ $Date: 2002/07/31 11:29:41 $
Author:
Reed Esau

Field Summary
static java.lang.String DELETE_RECS
           
static java.lang.String GET_KEY_COUNT
           
static java.lang.String GET_KEYS
           
static java.lang.String GET_REC
           
static java.lang.String GET_RECS
           
static java.lang.String STORE_REC
           
static java.lang.String STORE_RECS
           
 
Fields inherited from interface jreceiver.common.rpc.RpcBase
DETECT
 
Method Summary
 void deleteRecs(java.util.Vector keys)
          delete a record for the given keys
 int getKeyCount()
          Obtain a total count of unique keys
 java.util.Vector getKeys(java.lang.String order_by, int rec_offset, int rec_count)
          Obtain an ordered range of keys.
 Rec getRec(int i_key, java.util.Hashtable args)
          Obtain a single rec for the key (primitive int)
 Rec getRec(java.lang.Object key, java.util.Hashtable args)
          Obtain a single rec for the (String or Key-derived or Number-derived) key
 java.util.Vector getRecs(java.lang.String order_by, java.util.Hashtable args, int rec_offset, int rec_count)
          Obtain a list of recs (combines getKeys + getRecs(keys))
 java.util.Vector getRecs(java.util.Vector keys, java.lang.String order_by, java.util.Hashtable args)
          Obtain a list of recs for a list of keys
 int storeRec(Rec rec)
          Insert or update a single record, returning the identity (if any)
 void storeRecs(java.util.Vector recs)
          Insert or update records
 
Methods inherited from interface jreceiver.common.rpc.RpcBase
detect
 

Field Detail

GET_KEY_COUNT

public static final java.lang.String GET_KEY_COUNT

GET_KEYS

public static final java.lang.String GET_KEYS

GET_REC

public static final java.lang.String GET_REC

GET_RECS

public static final java.lang.String GET_RECS

STORE_REC

public static final java.lang.String STORE_REC

STORE_RECS

public static final java.lang.String STORE_RECS

DELETE_RECS

public static final java.lang.String DELETE_RECS
Method Detail

getKeyCount

public int getKeyCount()
                throws RpcException
Obtain a total count of unique keys

Recommended when traversing large lists.


getKeys

public java.util.Vector getKeys(java.lang.String order_by,
                                int rec_offset,
                                int rec_count)
                         throws RpcException
Obtain an ordered range of keys.

getRec

public Rec getRec(java.lang.Object key,
                  java.util.Hashtable args)
           throws RpcException
Obtain a single rec for the (String or Key-derived or Number-derived) key

getRec

public Rec getRec(int i_key,
                  java.util.Hashtable args)
           throws RpcException
Obtain a single rec for the key (primitive int)

getRecs

public java.util.Vector getRecs(java.util.Vector keys,
                                java.lang.String order_by,
                                java.util.Hashtable args)
                         throws RpcException
Obtain a list of recs for a list of keys

Recommended when traversing large lists where a complex filter is used.


getRecs

public java.util.Vector getRecs(java.lang.String order_by,
                                java.util.Hashtable args,
                                int rec_offset,
                                int rec_count)
                         throws RpcException
Obtain a list of recs (combines getKeys + getRecs(keys))

Not recommended when traversing large lists where a complex filter is used.


storeRec

public int storeRec(Rec rec)
             throws RpcException
Insert or update a single record, returning the identity (if any)

storeRecs

public void storeRecs(java.util.Vector recs)
               throws RpcException
Insert or update records

deleteRecs

public void deleteRecs(java.util.Vector keys)
                throws RpcException
delete a record for the given keys


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