org.openmobileis.database.fastobjectdb.FODBCollectionDescriptor Class Reference

List of all members.


Detailed Description

Title: OpenMobileIS project source
Description:.

Author:
Philippe Delrieu
Since:
JDK 1.1
Version:
1.0.

Definition at line 36 of file FODBCollectionDescriptor.java.


Public Member Functions

boolean isCompressed ()
 if isCompressed return true, all stored data object in the collection are zipped.
short getSynchroWay ()
 return the way the synchronisation is done.
void setSynchroWay (short way)
 set the way the synchronisation is done.
void setCompressed (boolean compressed)
 if set to true, all stored data object in the colleciton are zipped.

Static Public Attributes

static final short TWO_WAY_SYNCHRO = 0
 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.
static final short ONE_WAY_SEND_DATA = 1
 Indicate that the synchronisation of the collection will be done in the send way.
static final short ONE_WAY_GET_DATA = 2
 Indicate that the synchronisation of the collection will be done in the get way.

Member Function Documentation

boolean org.openmobileis.database.fastobjectdb.FODBCollectionDescriptor.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.

Parameters:
gzip 

Definition at line 80 of file FODBCollectionDescriptor.java.

short org.openmobileis.database.fastobjectdb.FODBCollectionDescriptor.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:

Definition at line 89 of file FODBCollectionDescriptor.java.

Referenced by org.openmobileis.database.fastobjectdb.synchro.client.SynchroFastObjectDB.add(), and org.openmobileis.database.fastobjectdb.synchro.client.SynchroFastObjectDB.replace().

void org.openmobileis.database.fastobjectdb.FODBCollectionDescriptor.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:

Definition at line 98 of file FODBCollectionDescriptor.java.

void org.openmobileis.database.fastobjectdb.FODBCollectionDescriptor.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.

Parameters:
gzip 

Definition at line 108 of file FODBCollectionDescriptor.java.


Member Data Documentation

final short org.openmobileis.database.fastobjectdb.FODBCollectionDescriptor.ONE_WAY_SEND_DATA = 1 [static]

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.

Definition at line 47 of file FODBCollectionDescriptor.java.

final short org.openmobileis.database.fastobjectdb.FODBCollectionDescriptor.ONE_WAY_GET_DATA = 2 [static]

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.

Definition at line 52 of file FODBCollectionDescriptor.java.


The documentation for this class was generated from the following file:
Generated on Mon Jan 11 21:19:20 2010 for OpenMobileIS by  doxygen 1.5.4