|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opensync.engine.server.DefaultConnector
org.opensync.engine.server.connector.BDConnector
The connector used to connect to a database server
| Field Summary | |
protected java.lang.String |
conversion_function
The operator for conversion |
(package private) org.apache.commons.dbcp.BasicDataSource |
dataSource
|
protected java.lang.String |
driver
The jdbc driver |
protected int |
init
The minimum of the opened connection |
protected int |
max
The maximum of the opened connection |
protected java.lang.String |
operatorConcat
The operator for concatenation |
protected java.lang.String |
password
The user password |
protected java.lang.String |
source
The source |
protected int |
timeout
The time out |
protected java.lang.String |
user
The user login |
| Fields inherited from class org.opensync.engine.server.DefaultConnector |
adapter, incremental, protocol, type, url |
| Fields inherited from interface org.opensync.engine.server.Connector |
BD, FILE |
| Constructor Summary | |
BDConnector()
|
|
BDConnector(java.lang.String source)
Construct a FileConnetor object |
|
| Method Summary | |
ConnectionPool |
getConnectionPool()
Get the connection pool |
java.lang.String |
getConversionFunction()
Get the conversion function |
java.lang.String |
getDriver()
Get the jdbc driver |
int |
getInit()
Get the minimum of the opened connection |
int |
getMax()
Get the maximum of the opened connection |
java.lang.String |
getOperatorConcat()
Get the operator for concatenation |
java.lang.String |
getPassword()
Get the user password used to connect to the database server |
int |
getTimeout()
Get the time out |
java.lang.String |
getUser()
Get the user login used to connect to the database server |
int |
getWindowSize()
|
void |
release()
|
void |
releaseWithException()
|
void |
setConversionFunction(java.lang.String sConversionFunction)
Set the conversion function |
void |
setDataSource(org.apache.commons.dbcp.BasicDataSource dataSource)
|
void |
setDriver(java.lang.String driver)
Set the jdbc driver |
void |
setInit(int init)
Set the minimum of the opened connection |
void |
setMax(int max)
Set the maximum of the opened connection |
void |
setOperatorConcat(java.lang.String operatorConcat)
Set the operator for concatenation |
void |
setPassword(java.lang.String password)
Set the user password used to connect to the file server |
void |
setTimeout(int timeout)
Set time-out |
void |
setUser(java.lang.String user)
Set the user login used to connect to the database server |
void |
setWindowSize(int windowSize)
|
java.lang.String |
toString()
Use for debug only |
void |
validate()
|
| Methods inherited from class org.opensync.engine.server.DefaultConnector |
getAdapter, getIncremental, getProtocol, getType, getUrl, setAdapter, setIncremental, setProtocol, setType, setUrl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
org.apache.commons.dbcp.BasicDataSource dataSource
protected java.lang.String user
protected java.lang.String driver
protected java.lang.String source
protected java.lang.String password
protected int max
protected int init
protected int timeout
protected java.lang.String operatorConcat
protected java.lang.String conversion_function
| Constructor Detail |
public BDConnector()
public BDConnector(java.lang.String source)
source - the source name| Method Detail |
public void setUser(java.lang.String user)
user - public java.lang.String getUser()
public void setDriver(java.lang.String driver)
driver - public java.lang.String getDriver()
public ConnectionPool getConnectionPool()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setPassword(java.lang.String password)
password - the passwordpublic java.lang.String getPassword()
public void setMax(int max)
max - the maximumpublic int getMax()
public void setInit(int init)
init - public int getInit()
public void setTimeout(int timeout)
timeout - the timeoutpublic int getTimeout()
public void validate()
throws OpenSyncException
validate in interface Connectorvalidate in class DefaultConnectorOpenSyncException
public void release()
throws java.sql.SQLException
release in interface Connectorrelease in class DefaultConnectorjava.sql.SQLException
public void releaseWithException()
throws java.sql.SQLException
releaseWithException in interface ConnectorreleaseWithException in class DefaultConnectorjava.sql.SQLExceptionpublic java.lang.String toString()
toString in class DefaultConnectorpublic void setOperatorConcat(java.lang.String operatorConcat)
operatorConcat - the operatorpublic java.lang.String getOperatorConcat()
public void setConversionFunction(java.lang.String sConversionFunction)
public java.lang.String getConversionFunction()
public int getWindowSize()
public void setWindowSize(int windowSize)
public void setDataSource(org.apache.commons.dbcp.BasicDataSource dataSource)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||