Package ca.uqac.lif.cep.jdbc
Class BeepBeepDriver
java.lang.Object
ca.uqac.lif.cep.jdbc.BeepBeepDriver
- All Implemented Interfaces:
Driver
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptsURL(String url) connect(String url, Properties info) static ConnectioncreateConnection(Interpreter inter, String url, Properties prop) Creates a new database connection to a given URL.intintgetPropertyInfo(String url, Properties info) static booleanisValidURL(String url) Validates a URLboolean
-
Field Details
-
s_prefix
- See Also:
-
-
Constructor Details
-
BeepBeepDriver
public BeepBeepDriver()
-
-
Method Details
-
getMajorVersion
public int getMajorVersion()- Specified by:
getMajorVersionin interfaceDriver- See Also:
-
getMinorVersion
public int getMinorVersion()- Specified by:
getMinorVersionin interfaceDriver- See Also:
-
jdbcCompliant
public boolean jdbcCompliant()- Specified by:
jdbcCompliantin interfaceDriver- See Also:
-
acceptsURL
- Specified by:
acceptsURLin interfaceDriver- See Also:
-
isValidURL
Validates a URL- Parameters:
url- The URL. It is considered valid if it begins by the stringjdbc:beepbeep:- Returns:
trueif the URL is valid,falseotherwise
-
getPropertyInfo
- Specified by:
getPropertyInfoin interfaceDriver- Throws:
SQLException- See Also:
-
connect
- Specified by:
connectin interfaceDriver- Throws:
SQLException- See Also:
-
createConnection
public static Connection createConnection(Interpreter inter, String url, Properties prop) throws SQLException Creates a new database connection to a given URL.- Parameters:
inter- An interpreterurl- The connection URLprop- The properties- Returns:
- A
Connectionobject that represents a connection to the URL - Throws:
SQLException- If the URL provided is invalid- See Also:
-
getParentLogger
- Specified by:
getParentLoggerin interfaceDriver- Throws:
SQLFeatureNotSupportedException
-