|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opensync.engine.server.DefaultConnector
The default implementation of the connector interface
| Field Summary | |
protected Adapter |
adapter
The adapter used by the connector to adapt the data format of the source to the OpenSync format |
protected boolean |
incremental
Incremental synchronization flag. |
protected Protocol |
protocol
The protocol used by the connector to connect to the source |
protected java.lang.String |
type
The type of the connector (eg: bd, file, ...) |
protected java.lang.String |
url
The url of the source |
| Fields inherited from interface org.opensync.engine.server.Connector |
BD, FILE |
| Constructor Summary | |
DefaultConnector()
Construct a DefaultConnector |
|
| Method Summary | |
Adapter |
getAdapter()
Get the adapter used by the connector to adapt the data format of the source to the OpenSync format |
boolean |
getIncremental()
|
Protocol |
getProtocol()
Get the protocol used by the connector to connect to the source |
java.lang.String |
getType()
Get the type of the connector (eg: bd, file, ...) |
java.lang.String |
getUrl()
Get the url of the source |
void |
release()
|
void |
releaseWithException()
|
void |
setAdapter(Adapter adapter)
Set the adapter used by the connector to adapt the data format of the source to the OpenSync format |
void |
setIncremental(boolean incremental)
|
void |
setProtocol(Protocol protocol)
Set the protocol used by the connector to connect to the source |
void |
setType(java.lang.String type)
Set the name of the connector (eg: bd, file, ...) |
void |
setUrl(java.lang.String url)
Set the url of the source |
java.lang.String |
toString()
Used only for debugging |
void |
validate()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String type
protected Adapter adapter
protected Protocol protocol
protected java.lang.String url
protected boolean incremental
| Constructor Detail |
public DefaultConnector()
| Method Detail |
public void validate()
throws OpenSyncException
validate in interface ConnectorOpenSyncException
public void release()
throws java.sql.SQLException
release in interface Connectorjava.sql.SQLException
public void releaseWithException()
throws java.sql.SQLException
releaseWithException in interface Connectorjava.sql.SQLExceptionpublic void setType(java.lang.String type)
type - the type of the connectorpublic java.lang.String getType()
getType in interface Connectorpublic java.lang.String toString()
public void setAdapter(Adapter adapter)
adapter - the adapter of the connectorpublic Adapter getAdapter()
getAdapter in interface Connectorpublic void setProtocol(Protocol protocol)
protocol - the protocol of the connectorpublic Protocol getProtocol()
getProtocol in interface Connectorpublic void setUrl(java.lang.String url)
url - the url of the sourcepublic java.lang.String getUrl()
getUrl in interface Connectorpublic void setIncremental(boolean incremental)
setIncremental in interface Connectorpublic boolean getIncremental()
getIncremental in interface Connector
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||