|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--psman.dbi.SQL | +--psman.dbi.PostgreSQL
The PostgreSQL database driver. This driver has not been tested yet.
Field Summary |
Fields inherited from class psman.dbi.SQL |
C, database, hostname, password, port, protocol, username |
Constructor Summary | |
PostgreSQL()
|
Method Summary | |
void |
create(int table)
Create a predefined database table. |
void |
drop(int table)
Drop the tables from the database. |
java.lang.String |
getURL()
Return the database URL. |
psman.data.DataField |
selectDataField(psman.data.TPartner owner,
java.lang.String name,
java.util.Date valid_from,
java.util.Date valid_until)
Select a data field by its properties. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PostgreSQL() throws java.lang.Exception
Method Detail |
public void create(int table) throws java.lang.Exception
DBI
create
in interface DBI
create
in class SQL
table
- ID of the table to be created.
java.lang.Exception
- if a database access error occurs.DBI.drop(int)
public void drop(int table) throws java.lang.Exception
DBI
drop
in interface DBI
drop
in class SQL
table
- ID of the table to be dropped.
java.lang.Exception
- if a database access error occurs.DBI.create()
public java.lang.String getURL()
SQL
getURL
in class SQL
SQL.connect(Properties data)
public psman.data.DataField selectDataField(psman.data.TPartner owner, java.lang.String name, java.util.Date valid_from, java.util.Date valid_until) throws java.lang.Exception
DBI
owner
- the owner of the data fieldname
- the name of the data fieldvalid_from
- the valid_from of the data fieldvalid_until
- the valid_until of the data field
java.lang.Exception
- if a database access error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |