org.openmobileis.database.fastobjectdb
Class FODBCollectionDescriptor

java.lang.Object
  extended byorg.openmobileis.database.fastobjectdb.FODBCollectionDescriptor
All Implemented Interfaces:
OpenMISSerializable, java.io.Serializable

public class FODBCollectionDescriptor
extends java.lang.Object
implements OpenMISSerializable

Title: OpenMobileIS project source
Description:

Since:
JDK 1.1
Version:
1.0.
Author:
Philippe Delrieu
See Also:
Serialized Form

Field Summary
static short ONE_WAY_GET_DATA
          Indicate that the synchronisation of the collection will be done in the get way.
static short ONE_WAY_SEND_DATA
          Indicate that the synchronisation of the collection will be done in the send way.
static short TWO_WAY_SYNCHRO
          Indicate that the synchronisation of the collection will be done in the two way : data change are send to the server, server modification are send to the terminal.
 
Constructor Summary
FODBCollectionDescriptor(java.lang.String collectionName, java.lang.Class objectType)
           
 
Method Summary
 java.lang.String getCollectionName()
           
 java.lang.Class getObjectType()
           
 java.lang.String[] getSynchroDependList()
           
 short getSynchroWay()
          return the way the synchronisation is done. 3 values are possible : FODBCollectionDescriptor.TWO_WAY_SYNCHRO, FODBCollectionDescriptor.ONE_WAY_SEND_DATA, FODBCollectionDescriptor.ONE_WAY_GET_DATA
 boolean isCompressed()
          if isCompressed return true, all stored data object in the collection are zipped.
 boolean isSynchronize()
           
 void setCompressed(boolean compressed)
          if set to true, all stored data object in the colleciton are zipped.
 void setSynchroDependList(java.lang.String[] synchroDependList)
           
 void setSynchronize(boolean synchronize)
           
 void setSynchroWay(short way)
          set the way the synchronisation is done. 3 values are possible : FODBCollectionDescriptor.TWO_WAY_SYNCHRO, FODBCollectionDescriptor.ONE_WAY_SEND_DATA, FODBCollectionDescriptor.ONE_WAY_GET_DATA
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TWO_WAY_SYNCHRO

public static final short TWO_WAY_SYNCHRO
Indicate that the synchronisation of the collection will be done in the two way : data change are send to the server, server modification are send to the terminal.

See Also:
Constant Field Values

ONE_WAY_SEND_DATA

public static final short ONE_WAY_SEND_DATA
Indicate that the synchronisation of the collection will be done in the send way. Only data modified on the terminal are send to the server. Server modifications are not send to the terminal.

See Also:
Constant Field Values

ONE_WAY_GET_DATA

public static final short ONE_WAY_GET_DATA
Indicate that the synchronisation of the collection will be done in the get way. Only data modified on the server are send to the terminal. Terminal modifications are not keep and send to the server.

See Also:
Constant Field Values
Constructor Detail

FODBCollectionDescriptor

public FODBCollectionDescriptor(java.lang.String collectionName,
                                java.lang.Class objectType)
Method Detail

isCompressed

public boolean isCompressed()
if isCompressed return true, all stored data object in the collection are zipped. To gzip collection allow to gain around 25% of the collection file length but increase the synhro file size for complete synchro.


getSynchroWay

public short getSynchroWay()
return the way the synchronisation is done. 3 values are possible : FODBCollectionDescriptor.TWO_WAY_SYNCHRO, FODBCollectionDescriptor.ONE_WAY_SEND_DATA, FODBCollectionDescriptor.ONE_WAY_GET_DATA

Returns:

setSynchroWay

public void setSynchroWay(short way)
set the way the synchronisation is done. 3 values are possible : FODBCollectionDescriptor.TWO_WAY_SYNCHRO, FODBCollectionDescriptor.ONE_WAY_SEND_DATA, FODBCollectionDescriptor.ONE_WAY_GET_DATA

Returns:

setCompressed

public void setCompressed(boolean compressed)
if set to true, all stored data object in the colleciton are zipped. To gzip collection allow to gain around 25% of the collection file length but increase the synhro file size for complete synchro.


isSynchronize

public boolean isSynchronize()

setSynchronize

public void setSynchronize(boolean synchronize)

getCollectionName

public java.lang.String getCollectionName()

getObjectType

public java.lang.Class getObjectType()

getSynchroDependList

public java.lang.String[] getSynchroDependList()

setSynchroDependList

public void setSynchroDependList(java.lang.String[] synchroDependList)


Copyright 2006 OpenMobileIS. All Rights Reserved.