org.opensync.engine.server.adapter
Class BDAdapter

java.lang.Object
  extended byorg.opensync.engine.server.DefaultAdapter
      extended byorg.opensync.engine.server.adapter.BDAdapter
All Implemented Interfaces:
Adapter, java.io.Serializable

public class BDAdapter
extends DefaultAdapter

This class represents the adpater to adapt database data source format to the OpenSync data format

Version:
1.0
Author:
SOFTMED
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.opensync.engine.server.DefaultAdapter
connector, tablesDescriptor, themesDescriptor
 
Constructor Summary
BDAdapter()
          Construct the BDAdpater
 
Method Summary
 java.lang.String adaptInputView(java.lang.String xmlNotUsed, View view, Statistic stat, Window win)
          Adapt the the data source format to the OpenSync data format
 java.lang.String adaptOutputView(java.lang.String xml, View view, Statistic stat)
          Adapt the the data OpenSync format to the data source format
 java.sql.Connection getConn()
           
 void init()
           
 void release()
           
 void releaseWithException()
           
 void setConn(java.sql.Connection _conn)
           
 java.lang.String toString()
          Use fo debug only
 
Methods inherited from class org.opensync.engine.server.DefaultAdapter
getConnector, getPKs, getTablesDescriptor, getThemesDescriptor, readThemeDescriptor, setConnector, setTablesDescriptor, setThemesDescriptor, startReadInputFile, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BDAdapter

public BDAdapter()
          throws java.sql.SQLException
Construct the BDAdpater

Method Detail

init

public void init()
Specified by:
init in interface Adapter
Overrides:
init in class DefaultAdapter

adaptInputView

public java.lang.String adaptInputView(java.lang.String xmlNotUsed,
                                       View view,
                                       Statistic stat,
                                       Window win)
                                throws java.lang.Exception
Adapt the the data source format to the OpenSync data format

Specified by:
adaptInputView in interface Adapter
Specified by:
adaptInputView in class DefaultAdapter
Parameters:
xmlNotUsed -
view - the view
Throws:
java.lang.Exception

adaptOutputView

public java.lang.String adaptOutputView(java.lang.String xml,
                                        View view,
                                        Statistic stat)
                                 throws java.io.IOException
Adapt the the data OpenSync format to the data source format

Specified by:
adaptOutputView in interface Adapter
Specified by:
adaptOutputView in class DefaultAdapter
Parameters:
xml - the xml view
view - the view
Throws:
java.io.IOException

release

public void release()
             throws java.sql.SQLException
Specified by:
release in interface Adapter
Overrides:
release in class DefaultAdapter
Returns:
Throws:
java.sql.SQLException

releaseWithException

public void releaseWithException()
                          throws java.sql.SQLException
Specified by:
releaseWithException in interface Adapter
Overrides:
releaseWithException in class DefaultAdapter
Returns:
Throws:
java.sql.SQLException

getConn

public java.sql.Connection getConn()
                            throws java.sql.SQLException
Throws:
java.sql.SQLException

setConn

public void setConn(java.sql.Connection _conn)

toString

public java.lang.String toString()
Use fo debug only

Overrides:
toString in class DefaultAdapter


Copyright © 2004 sourceforge. All Rights Reserved.