FileDocCategorySizeDatePackage
ServerObjectCacher.javaAPI DocExample1566Wed Mar 29 20:52:18 BST 2000tuning.distrib.rmi

ServerObjectCacher

public class ServerObjectCacher extends Object implements ServerObject

Fields Summary
ServerObject
stub
boolean
b
boolean
bInit
int
i
boolean
iInit
String
s
boolean
sInit
Constructors Summary
public ServerObjectCacher(ServerObject stub)

    super ();
    this.stub = stub;
  
Methods Summary
public booleangetBoolean()

    if (bInit)
      return b;
    else
    {
      b = stub.getBoolean();
      bInit = true;
      return b;
    }
  
public intgetNumber()

    if (iInit)
      return i;
    else
    {
      i = stub.getNumber();
      iInit = true;
      return i;
    }
  
public java.lang.String[]getQueryArray()

return null;
public java.lang.String[]getRemoteQuery(java.lang.String obj)

return null;
public java.lang.StringgetString()

    if (sInit)
      return s;
    else
    {
      s = stub.getString();
      sInit = true;
      return s;
    }
  
public voidsetAll(boolean flag, int i, java.lang.String obj)

    bInit = iInit = sInit = false;
    stub.setAll(flag, i, obj);
  
public voidsetBoolean(boolean flag)

    bInit = false;
    stub.setBoolean(flag);
  
public voidsetNumber(int i)

    iInit = false;
    stub.setNumber(i);
  
public voidsetString(java.lang.String obj)

    sInit = false;
    stub.setString(obj);