|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.hpi.fgis.dude.database.adapter.Database de.hpi.fgis.dude.database.adapter.PostGreSQLDatabase
public class PostGreSQLDatabase
PostGreSQLDatabase
encapsulates all the necessary information for
establishing a connection to a PostGreSQL database.
Constructor Summary | |
---|---|
PostGreSQLDatabase(DBInfo dbInfo)
Initializes the PostGreSQLDatabase instance members and loads the settings provided by the parameter dbInfo . |
|
PostGreSQLDatabase(InputStream iStream)
Initializes the PostGreSQLDatabase using the passed InputStream . |
|
PostGreSQLDatabase(Properties prop)
Initializes the PostGreSQLDatabase using the passed Properties . |
Method Summary | |
---|---|
String |
getDatabaseDriverName()
Returns the Driver 's name used for loading the Driver class. |
String |
getJDBCString()
Returns the JDBC String which can be used for representing a connection to this database. |
Methods inherited from class de.hpi.fgis.dude.database.adapter.Database |
---|
createConnection, equals, getDatabaseName, getHost, getPort, getSQLSchema, loadDatabaseInformation, loadDatabaseInformation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PostGreSQLDatabase(DBInfo dbInfo)
PostGreSQLDatabase
instance members and loads the settings provided by the parameter dbInfo
.
dbInfo
- Information needed for establishing a connection to this database.public PostGreSQLDatabase(InputStream iStream)
PostGreSQLDatabase
using the passed InputStream
. The information provided by this stream has to convertible into a
Properties
instance.
iStream
- The InputStream
that provides the connection information.public PostGreSQLDatabase(Properties prop)
PostGreSQLDatabase
using the passed Properties
.
prop
- The Properties
instance that provides the connection information.Method Detail |
---|
public String getDatabaseDriverName()
Database
Driver
's name used for loading the Driver class. The corresponding library has to be added to the build path.
getDatabaseDriverName
in class Database
Driver
class name which is used for the database connection.public String getJDBCString()
Database
getJDBCString
in class Database
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |