All Packages Class Hierarchy This Package Previous Next Index
Class vnet.yawb.backend.SQLBackend
java.lang.Object
|
+----vnet.yawb.backend.SQLBackend
- public class SQLBackend
- extends Object
- implements YAWBBackend
An implementation of a YAWB SQL backend.
-
id
- Backend identifier
-
SQL_DRIVER
-
-
SQL_ID
-
-
SQL_PWD
-
-
SQL_UID
-
-
SQL_URI
-
-
sqlPwd
- SQL database password
-
sqlUid
- SQL database user name
-
sqlURI
- JDBC SQL database URI
-
SQLBackend()
-
-
newConnection()
- Opens a new Connection to the implementation backend.
-
setConf(Properties)
- Sets the backend's configuration.
id
protected String id
- Backend identifier
sqlURI
protected String sqlURI
- JDBC SQL database URI
sqlUid
protected String sqlUid
- SQL database user name
sqlPwd
protected String sqlPwd
- SQL database password
SQL_DRIVER
public static final String SQL_DRIVER
SQL_URI
public static final String SQL_URI
SQL_UID
public static final String SQL_UID
SQL_PWD
public static final String SQL_PWD
SQL_ID
public static final String SQL_ID
SQLBackend
public SQLBackend()
newConnection
public YAWBBackendConnection newConnection() throws YAWBException
- Opens a new Connection to the implementation backend.
- Returns:
- Returns a new connection to the backend
- Throws: YAWBException
- if this method is called before setConf has
been called or of a YAWB error has occured
setConf
public void setConf(Properties conf) throws YAWBException, NullPointerException
- Sets the backend's configuration. This method must be called before
new connections can be opened.
- Parameters:
- conf - configuration data for the backend
- Throws: YAWBException
- if a YAWB error occurs
- Throws: NullPointerException
- if conf is null
All Packages Class Hierarchy This Package Previous Next Index