com.sap.netweaver.bc.uwl.config

Class CacheSettings

java.lang.Object
  extended by com.sap.netweaver.bc.uwl.config.CacheSettings
All Implemented Interfaces:
Serializable, Cloneable

public final class CacheSettings
extends Object
implements Serializable, Cloneable

Cache settings contains cache validity and refresh periods for an ItemType. More information regarding CacheSettings is documented in the DTD documenation.

See Also:
Serialized Form

Field Summary
static byte DEFAULT
           
static byte FINAL
           
static byte SESSION
           
static byte TIME
           
 
Constructor Summary
CacheSettings(byte refreshTyp, int refreshTim, byte expiryTyp, int expiryTim)
           
 
Method Summary
 Object clone()
           
 boolean defaultExpiry()
           
 boolean defaultRefresh()
           
 boolean finalExpiry()
           
 int getExpiryTime()
          This method is of consequence only if is TIME type.
 byte getExpiryType()
           
 int getRefreshPeriod()
          This method is of consequence only if is TIME type.
 byte getRefreshType()
           
 boolean sessionExpiry()
           
 boolean sessionRefresh()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final byte DEFAULT
See Also:
Constant Field Values

SESSION

public static final byte SESSION
See Also:
Constant Field Values

TIME

public static final byte TIME
See Also:
Constant Field Values

FINAL

public static final byte FINAL
See Also:
Constant Field Values
Constructor Detail

CacheSettings

public CacheSettings(byte refreshTyp,
                     int refreshTim,
                     byte expiryTyp,
                     int expiryTim)
Method Detail

sessionExpiry

public boolean sessionExpiry()

defaultExpiry

public boolean defaultExpiry()

finalExpiry

public boolean finalExpiry()

getExpiryTime

public int getExpiryTime()
This method is of consequence only if is TIME type.

Returns:
expiry time is in minutes.

getExpiryType

public byte getExpiryType()

sessionRefresh

public boolean sessionRefresh()

defaultRefresh

public boolean defaultRefresh()

getRefreshPeriod

public int getRefreshPeriod()
This method is of consequence only if is TIME type.

Returns:
expiry time is in minutes.

getRefreshType

public byte getRefreshType()

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException


Copyright 2009 SAP AG Complete Copyright Notice