org.opensync.engine.server.adapter
Class BDAdapter
java.lang.Object
org.opensync.engine.server.DefaultAdapter
org.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
|
Constructor Summary |
BDAdapter()
Construct the BDAdpater |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BDAdapter
public BDAdapter()
throws java.sql.SQLException
- Construct the BDAdpater
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 viewview - 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.