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.


Variable Index

 o id
Backend identifier
 o SQL_DRIVER
 o SQL_ID
 o SQL_PWD
 o SQL_UID
 o SQL_URI
 o sqlPwd
SQL database password
 o sqlUid
SQL database user name
 o sqlURI
JDBC SQL database URI

Constructor Index

 o SQLBackend()

Method Index

 o newConnection()
Opens a new Connection to the implementation backend.
 o setConf(Properties)
Sets the backend's configuration.

Variables

 o id
 protected String id
Backend identifier

 o sqlURI
 protected String sqlURI
JDBC SQL database URI

 o sqlUid
 protected String sqlUid
SQL database user name

 o sqlPwd
 protected String sqlPwd
SQL database password

 o SQL_DRIVER
 public static final String SQL_DRIVER
 o SQL_URI
 public static final String SQL_URI
 o SQL_UID
 public static final String SQL_UID
 o SQL_PWD
 public static final String SQL_PWD
 o SQL_ID
 public static final String SQL_ID

Constructors

 o SQLBackend
 public SQLBackend()

Methods

 o 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
 o 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