|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface DatabaseSession
Database session interface. This interface is used for communication with remote database server using RMI.
| Method Summary | |
|---|---|
long |
attach()
Attach thread to the database. |
void |
close(long session)
Close database |
void |
commit(long session)
Commit current transaction. |
int |
delete(long session,
java.lang.Class table,
java.lang.String condition)
Delete all objects from the table matching specified condition |
void |
detach(long session,
int flags)
Detach thread to the database. |
long |
insert(long session,
java.lang.Object obj)
Insert new object in the database. |
void |
lock(long session)
Lock database in exclusive mode. |
long |
open(java.lang.String databasePath,
int poolSize,
int openAttr,
int transactionCommitDelay)
Open database |
void |
rollback(long session)
Commit current transaction Transaction is implicitly started when any database operation is perfromed. |
Cursor |
select(long session,
java.lang.Class table,
java.lang.String condition,
int flags)
Select objects from table matching condition |
void |
update(long session,
long oid,
java.lang.Object obj)
Update object with soecified OID |
| Method Detail |
|---|
long open(java.lang.String databasePath,
int poolSize,
int openAttr,
int transactionCommitDelay)
databasePath - - path to the database filepoolSize - - size of page pool (in pages), specify 0 to let Database automatically detect pool sizeopenAttr - - mask of CLI_OPEN_* attributes (0 default value)transactionCommitDelay - - transaction commit delay (specify 0 to disable)
void close(long session)
session - session identifier
Cursor select(long session,
java.lang.Class table,
java.lang.String condition,
int flags)
session - session identifiertable - class corresponding to the tablecondition - SubSQL condition (to select all records pass empty string)flags - combination of FOR_UPDATE and AUTOCOMMIT flags
void update(long session,
long oid,
java.lang.Object obj)
session - session identifieroid - OID of updated objectobj - updated object
long insert(long session,
java.lang.Object obj)
session - session identifierobj - inserted object
int delete(long session,
java.lang.Class table,
java.lang.String condition)
session - session identifiertable - class corresponding to the tablecondition - SubSQL condition (to delete all records pass empty string)
void commit(long session)
session - session identifiervoid rollback(long session)
session - session identifiervoid lock(long session)
session - session identifierlong attach()
void detach(long session,
int flags)
flags - combination of CLI_DETACH_COMMIT and CLI_DETACH_DESTROY_CONTEXT flagssession - session identifier
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||