|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opensync.engine.server.DefaultAdapter
The default implementation of the adpater interface
| Field Summary | |
protected Connector |
connector
The connector used by the adapter |
protected java.lang.String |
tablesDescriptor
The url of the tables descriptor |
protected java.lang.String |
themesDescriptor
The url of the themes descriptor |
| Constructor Summary | |
DefaultAdapter()
Construct a DefaultAdapter |
|
| Method Summary | |
abstract java.lang.String |
adaptInputView(java.lang.String xml,
View view,
Statistic stat,
Window win)
Adapt the the data source format to the OpenSync data format |
abstract java.lang.String |
adaptOutputView(java.lang.String xml,
View view,
Statistic stat)
Adapt the the data OpenSync format to the data source format |
Connector |
getConnector()
Get the connector used by the adapter |
java.util.List |
getPKs(org.dom4j.Document themes,
java.lang.String theme)
|
java.lang.String |
getTablesDescriptor()
Get the tables descriptor |
java.lang.String |
getThemesDescriptor()
Get the themes descriptor |
void |
init()
|
org.dom4j.Document |
readThemeDescriptor()
|
void |
release()
|
void |
releaseWithException()
|
void |
setConnector(Connector connector)
The the connector used by the adapter |
void |
setTablesDescriptor(java.lang.String tablesDescriptor)
Set the tables descriptor |
void |
setThemesDescriptor(java.lang.String themesDescriptor)
Set the themes descriptor |
void |
startReadInputFile(boolean status)
|
java.lang.String |
toString()
Use for debug only |
void |
validate()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Connector connector
protected java.lang.String tablesDescriptor
protected java.lang.String themesDescriptor
| Constructor Detail |
public DefaultAdapter()
| Method Detail |
public void init()
init in interface Adapter
public void release()
throws java.sql.SQLException
release in interface Adapterjava.sql.SQLException
public void releaseWithException()
throws java.sql.SQLException
releaseWithException in interface Adapterjava.sql.SQLExceptionpublic void setTablesDescriptor(java.lang.String tablesDescriptor)
setTablesDescriptor in interface AdaptertablesDescriptor - the url of the tables descriptorpublic java.lang.String getTablesDescriptor()
getTablesDescriptor in interface Adapterpublic void setThemesDescriptor(java.lang.String themesDescriptor)
setThemesDescriptor in interface AdapterthemesDescriptor - the url of the themes descriptorpublic java.lang.String getThemesDescriptor()
getThemesDescriptor in interface Adapter
public org.dom4j.Document readThemeDescriptor()
throws java.io.FileNotFoundException,
org.dom4j.DocumentException,
org.xml.sax.SAXException,
java.net.MalformedURLException
readThemeDescriptor in interface Adapterjava.io.FileNotFoundException
org.dom4j.DocumentException
org.xml.sax.SAXException
java.net.MalformedURLException
public java.util.List getPKs(org.dom4j.Document themes,
java.lang.String theme)
throws org.dom4j.DocumentException,
java.io.FileNotFoundException,
org.xml.sax.SAXException,
java.net.MalformedURLException
getPKs in interface Adapterorg.dom4j.DocumentException
java.io.FileNotFoundException
org.xml.sax.SAXException
java.net.MalformedURLException
public void validate()
throws OpenSyncException
validate in interface AdapterOpenSyncException
public abstract java.lang.String adaptInputView(java.lang.String xml,
View view,
Statistic stat,
Window win)
throws java.lang.Exception
adaptInputView in interface Adapterxml - the view in source formatview - the view
java.io.IOException
java.lang.Exception
public abstract java.lang.String adaptOutputView(java.lang.String xml,
View view,
Statistic stat)
throws java.lang.Exception
adaptOutputView in interface Adapterxml - the view in OpenSync formatview - the view
java.lang.Exceptionpublic void setConnector(Connector connector)
connector - public Connector getConnector()
public java.lang.String toString()
public void startReadInputFile(boolean status)
startReadInputFile in interface Adapterstatus -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||