FileDocCategorySizeDatePackage
ServerObjectCacher.javaAPI DocExample1235Wed Mar 22 16:54:22 GMT 2000tuning.distrib.corba

ServerObjectCacher

public class ServerObjectCacher extends Object implements ServerObjectOperations

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.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);