org.openmobileis.modules.common.database.jdbc
Class JDBCIntlLabelFactory

java.lang.Object
  extended byorg.openmobileis.modules.common.database.jdbc.JDBCIntlLabelFactory
All Implemented Interfaces:
LabelFactory

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

JDBC Factory for internationalized labels (labels with a language)


Field Summary
protected  LabelJDBCQuery query
           
 
Constructor Summary
JDBCIntlLabelFactory(LabelJDBCQuery q)
           
 
Method Summary
 java.lang.String convertIdsToLabelObjectIds(java.lang.String labelid, java.lang.String category)
           
 void deleteLabel(java.lang.String id, java.lang.String category)
           
 void deleteLabel(java.lang.String id, java.lang.String category, java.lang.String language)
           
 java.lang.String[][] getCategoriesList()
           
 Array getLabelListForCategorie(java.lang.String categorie)
           
abstract  Array getLabelListForCategorieAdmin(java.lang.String category)
          Get all labels for all languages for the category.
 Label getLabelWithIds(java.lang.String id, java.lang.String category)
           
 Label getLabelWithIds(java.lang.String id, java.lang.String category, java.lang.String lang)
           
abstract  java.lang.String getLanguage()
           
abstract  void initLabelDB()
           
abstract  void notifyLabeldelete(java.lang.String labelId, java.lang.String categoryId, java.lang.String language)
           
abstract  void notifyLabelUpdate(Label label)
           
 void storeLabel(Label label)
          call 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
 

Field Detail

query

protected LabelJDBCQuery query
Constructor Detail

JDBCIntlLabelFactory

public JDBCIntlLabelFactory(LabelJDBCQuery q)
Method Detail

getLabelListForCategorie

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

getCategoriesList

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

getLabelWithIds

public Label getLabelWithIds(java.lang.String id,
                             java.lang.String category,
                             java.lang.String lang)

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
Description copied from interface: LabelFactory
call 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

deleteLabel

public void deleteLabel(java.lang.String id,
                        java.lang.String category,
                        java.lang.String language)
                 throws ServiceException,
                        DatabaseException
Throws:
ServiceException
DatabaseException

convertIdsToLabelObjectIds

public java.lang.String convertIdsToLabelObjectIds(java.lang.String labelid,
                                                   java.lang.String category)

initLabelDB

public abstract void initLabelDB()

getLanguage

public abstract java.lang.String getLanguage()

getLabelListForCategorieAdmin

public abstract Array getLabelListForCategorieAdmin(java.lang.String category)
Get all labels for all languages for the category.

Parameters:
category -
Returns:

notifyLabelUpdate

public abstract void notifyLabelUpdate(Label label)
                                throws SynchroException
Throws:
SynchroException

notifyLabeldelete

public abstract void notifyLabeldelete(java.lang.String labelId,
                                       java.lang.String categoryId,
                                       java.lang.String language)
                                throws SynchroException
Throws:
SynchroException


Copyright 2006 OpenMobileIS. All Rights Reserved.