org.openmobileis.modules.common.database.fodb
Class FODBLabelFactory

java.lang.Object
  extended byorg.openmobileis.modules.common.database.fodb.FODBLabelFactory
All Implemented Interfaces:
LabelFactory

public abstract class FODBLabelFactory
extends java.lang.Object
implements LabelFactory

Title: Sanofi Project Description:

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

Constructor Summary
FODBLabelFactory()
          Constructor for FODBLabelFactory.
 
Method Summary
 void deleteLabel(java.lang.String id, java.lang.String category)
           
abstract  java.lang.String[][] getCategoriesList()
           
protected abstract  java.lang.Class getDataType()
           
 Array getLabelListForCategorie(java.lang.String categorie)
           
 Label getLabelWithIds(java.lang.String id, java.lang.String category)
           
protected abstract  int getMaxCategoryIdLength()
           
protected abstract  int getMaxLabelIdLength()
          return the max length of the label id.
protected abstract  void initDB(FastObjectDB db)
           
 void storeLabel(Label label)
          Called by synchro server to create the label DB
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FODBLabelFactory

public FODBLabelFactory()
Constructor for FODBLabelFactory.

Method Detail

getLabelListForCategorie

public Array getLabelListForCategorie(java.lang.String categorie)
Specified by:
getLabelListForCategorie in interface LabelFactory

getLabelWithIds

public Label getLabelWithIds(java.lang.String id,
                             java.lang.String category)
Specified by:
getLabelWithIds in interface LabelFactory

storeLabel

public void storeLabel(Label label)
                throws ServiceException,
                       DatabaseException
Called by synchro server to create the label DB

Specified by:
storeLabel in interface LabelFactory
Throws:
ServiceException
DatabaseException

deleteLabel

public void deleteLabel(java.lang.String id,
                        java.lang.String category)
                 throws ServiceException,
                        DatabaseException
Specified by:
deleteLabel in interface LabelFactory
Throws:
ServiceException
DatabaseException

getCategoriesList

public abstract java.lang.String[][] getCategoriesList()
Specified by:
getCategoriesList in interface LabelFactory

getMaxLabelIdLength

protected abstract int getMaxLabelIdLength()
return the max length of the label id.


getMaxCategoryIdLength

protected abstract int getMaxCategoryIdLength()

getDataType

protected abstract java.lang.Class getDataType()

initDB

protected abstract void initDB(FastObjectDB db)
                        throws FODBException,
                               BadDataFormatException
Throws:
FODBException
BadDataFormatException


Copyright 2006 OpenMobileIS. All Rights Reserved.