com.funambol.syncml.protocol
Class DSMem

java.lang.Object
  extended by com.funambol.syncml.protocol.DSMem

public class DSMem
extends java.lang.Object

Corresponds to the <DSMem&g; element in the SyncML devinf DTD


Constructor Summary
DSMem()
          For serialization purposes
DSMem(boolean sharedMem)
          Creates a new DSMem object with the given sharedMem
DSMem(boolean sharedMem, long maxMem, long maxID)
          Creates a new DSMem object with the given sharedMem, maxMem and maxID
 
Method Summary
 long getMaxID()
          Gets the maximum number of items
 long getMaxMem()
          Gets the maximum memory size in bytes
 java.lang.Boolean getSharedMem()
          Gets Boolean shared memory
 boolean isSharedMem()
          Returns the memoryShared status
 void setMaxID(long maxID)
          Sets the max ID property
 void setMaxMem(long maxMem)
          Sets the max memory property
 void setSharedMem(boolean sharedMem)
          Sets the memoryShared status
 void setSharedMem(java.lang.Boolean sharedMem)
          Sets the memoryShared status
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSMem

public DSMem()
For serialization purposes


DSMem

public DSMem(boolean sharedMem)
Creates a new DSMem object with the given sharedMem

Parameters:
sharedMem - is true if the datastore uses shared memory

DSMem

public DSMem(boolean sharedMem,
             long maxMem,
             long maxID)
Creates a new DSMem object with the given sharedMem, maxMem and maxID

Parameters:
sharedMem - is true if the datastore uses shared memory
maxMem - the maximum memory size for o given datastore
maxID - the maximum number of items that can be stored in a given datastore
Method Detail

isSharedMem

public boolean isSharedMem()
Returns the memoryShared status

Returns:
true if the datastore memory is shared, false otherwise

setSharedMem

public void setSharedMem(java.lang.Boolean sharedMem)
Sets the memoryShared status

Parameters:
sharedMem - the new memoryShared status

setSharedMem

public void setSharedMem(boolean sharedMem)
Sets the memoryShared status

Parameters:
sharedMem - the new memoryShared status

getSharedMem

public java.lang.Boolean getSharedMem()
Gets Boolean shared memory

Returns:
sharedMem the Boolean sharedMem

getMaxMem

public long getMaxMem()
Gets the maximum memory size in bytes

Returns:
if value is -1 indicates that the property value is unspecified

setMaxMem

public void setMaxMem(long maxMem)
Sets the max memory property

Parameters:
maxMem - the value of max memory property

getMaxID

public long getMaxID()
Gets the maximum number of items

Returns:
if value is -1 indicates that the property value is unspecified

setMaxID

public void setMaxID(long maxID)
Sets the max ID property

Parameters:
maxID - the value of maxID property


Copyright © 2001-2009 Funambol.