1 package org.opensync.engine.server;
2
3 import java.sql.SQLException;
4
5 /***
6 * The connector interface gives all information needed to connect to a source
7 */
8
9 public interface Connector{
10 /***
11 * The connector used to connect to a data base
12 *
13 */
14 public final static String BD = "bd";
15 /***
16 * The connector used to connect to a file server
17 *
18 */
19 public final static String FILE = "file";
20 /***
21 * Get the adapter used by the connector to adapt the data format of the source to the OpenSync format
22 *
23 */
24 public Adapter getAdapter();
25 /***
26 * Get the protocol used by the connector to connect to the source
27 *
28 */
29 public Protocol getProtocol();
30 /***
31 * Get the type of the connector (eg: bd, file, ...)
32 *
33 */
34 public String getType();
35 /***
36 * Get the url of the source
37 *
38 */
39 public String getUrl();
40 /***
41 */
42 public void validate() throws OpenSyncException;
43 public void release() throws SQLException;
44 public void releaseWithException() throws SQLException;
45
46 public void setIncremental(boolean incremental);
47 public boolean getIncremental();
48 }