org.openmobileis.synchro.openmsp.client.db
Class ObjectDBImportQueryManager

java.lang.Object
  extended byorg.openmobileis.synchro.openmsp.client.db.ObjectDBImportQueryManager
All Implemented Interfaces:
ImportQueryManager
Direct Known Subclasses:
FODBImportQueryManager

public abstract class ObjectDBImportQueryManager
extends java.lang.Object
implements ImportQueryManager

Title: OpenMobileIS project source
Description: Base implemtnation of ImportQueryManager use to import object to the database. All snchronisation rows are serialized object.

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

Constructor Summary
ObjectDBImportQueryManager()
          Creates new ObjectDBImportQueryManager
 
Method Summary
abstract  void addObject(java.lang.String uid, java.lang.Object object)
           
protected abstract  void beginImport()
           
protected  java.lang.String[] cleanData(java.lang.String[] data)
           
abstract  void deleteObject(java.lang.String uid)
           
protected abstract  void endImport()
           
 void executeCreateQuery(java.lang.String[] data)
          execute the creation query
 void executeDeleteQuery(java.lang.String[] data)
          execute the delete query
 void executeUpdateQuery(java.lang.String[] data)
          execute the update query
 void importDataFile(java.lang.String fileName)
          import all data in the specified file
abstract  void replaceObject(java.lang.String uid, java.lang.Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectDBImportQueryManager

public ObjectDBImportQueryManager()
Creates new ObjectDBImportQueryManager

Method Detail

importDataFile

public void importDataFile(java.lang.String fileName)
Description copied from interface: ImportQueryManager
import all data in the specified file

Specified by:
importDataFile in interface ImportQueryManager

cleanData

protected java.lang.String[] cleanData(java.lang.String[] data)

executeCreateQuery

public void executeCreateQuery(java.lang.String[] data)
                        throws DatabaseException
execute the creation query

Specified by:
executeCreateQuery in interface ImportQueryManager
Throws:
DatabaseException

executeUpdateQuery

public void executeUpdateQuery(java.lang.String[] data)
                        throws DatabaseException
execute the update query

Specified by:
executeUpdateQuery in interface ImportQueryManager
Throws:
DatabaseException

executeDeleteQuery

public void executeDeleteQuery(java.lang.String[] data)
                        throws DatabaseException
execute the delete query

Specified by:
executeDeleteQuery in interface ImportQueryManager
Throws:
DatabaseException

addObject

public abstract void addObject(java.lang.String uid,
                               java.lang.Object object)
                        throws DatabaseException
Throws:
DatabaseException

replaceObject

public abstract void replaceObject(java.lang.String uid,
                                   java.lang.Object object)
                            throws DatabaseException
Throws:
DatabaseException

deleteObject

public abstract void deleteObject(java.lang.String uid)
                           throws DatabaseException
Throws:
DatabaseException

beginImport

protected abstract void beginImport()
                             throws DatabaseException
Throws:
DatabaseException

endImport

protected abstract void endImport()
                           throws DatabaseException
Throws:
DatabaseException


Copyright 2006 OpenMobileIS. All Rights Reserved.