|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Encapsulate the specification of a jdbc connection, mostly used to simplify the calling pattern for ModelRDB factory methods.
Field Summary | |
static java.lang.String |
DATABASE_TYPE
Property name for the database type |
static java.lang.String |
DRIVER_CLASSNAME
Property name for the driver class name |
static java.lang.String |
LAYOUT_TYPE
Property name for the layout type |
Method Summary | |
void |
addProperty(java.lang.String propname,
java.lang.String value)
Add a new property value to both RDF_LAYOUT_INFO table. |
void |
close()
Close the jdbc connection |
java.sql.Connection |
getConnection()
Return the jdbc connection. |
IRDBDriver |
getDriver()
Return an IRDBDriver suitable for this database connection. |
IRDBDriver |
getDriver(java.lang.String layout,
java.lang.String database)
Helper function to locate and instantiate the driver class corresponding to a given layout and database name Throws an RDFRDBexception if the driver can't be instantiated |
java.util.Properties |
getProperties()
Returns a set of property values for the database at the end of the connection. |
java.lang.String |
getProperty(java.lang.String propname)
Returns a property value for the database at the end of the connection. |
boolean |
isFormatOK()
Return true if the database seems to be formated for RDF storage. |
void |
setDriver(IRDBDriver driver)
Set the IRDBDriver to use for this connection. |
Field Detail |
public static final java.lang.String DATABASE_TYPE
public static final java.lang.String LAYOUT_TYPE
public static final java.lang.String DRIVER_CLASSNAME
Method Detail |
public java.sql.Connection getConnection() throws java.sql.SQLException
public void close() throws java.sql.SQLException
public boolean isFormatOK() throws RDFRDBException
public java.lang.String getProperty(java.lang.String propname) throws java.sql.SQLException
public java.util.Properties getProperties() throws java.sql.SQLException
public void addProperty(java.lang.String propname, java.lang.String value) throws java.sql.SQLException
public IRDBDriver getDriver() throws RDFRDBException
public void setDriver(IRDBDriver driver)
public IRDBDriver getDriver(java.lang.String layout, java.lang.String database) throws RDFRDBException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |