|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--psman.dbi.SQL
|
+--psman.dbi.Sybase
The Sybase database driver.
| Field Summary |
| Fields inherited from class psman.dbi.SQL |
C, database, hostname, password, port, protocol, username |
| Constructor Summary | |
Sybase()
|
|
| Method Summary | |
void |
create(int table)
Create a predefined database table. |
void |
disconnect()
Disconnect from the database. |
java.lang.String |
getURL()
Return the database URL. |
int |
insert(psman.data.Transaction data)
Create a transaction entry. |
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 Sybase()
throws java.lang.Exception
| Method Detail |
public void create(int table)
throws java.lang.Exception
DBI
create in interface DBIcreate in class SQLtable - ID of the table to be created.
java.lang.Exception - if a database access error occurs.DBI.drop(int)
public void disconnect()
throws java.lang.Exception
DBI
disconnect in interface DBIdisconnect in class SQLjava.lang.Exception - if a database access error occurs.public java.lang.String getURL()
SQL
getURL in class SQLSQL.connect(Properties data)
public int insert(psman.data.Transaction data)
throws java.lang.Exception
DBI
insert in interface DBIinsert in class SQLdata - the transaction to be inserted into the database.
If the transaction's ID is 0, an auto-incremented new ID will be assigned to it.
1 if the insertion was successfull,
0 if not.
java.lang.Exception - if a database access error occurs.
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 | |||||||||