|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openbandy.io.rms.RmsConnection
public class RmsConnection
Wrapper class to access 1 RecordStore.
(c) Copyright P. Bolliger 2007, ALL RIGHTS RESERVED.
Method Summary | |
---|---|
void |
close()
TODO comment! |
boolean |
connect()
TODO comment! |
boolean |
executeDELETE(Serializable serializable)
This method deletes the serializable object in the storage. |
int |
executeINSERT(ObjectEntry objectEntry)
This method inserts the objectEntry in the storage
and returns the genereated id resp. |
void |
executeUPDATE(ObjectEntry objectEntry)
This method updates the objectEntry in the storage. |
java.lang.String |
getConnectionIdentifier()
Returns a string that allows the Storage to distinguish different connections in order to avert muliple open connections for the same serializer. |
javax.microedition.rms.RecordStore |
getRecordStore()
TODO comment! |
java.lang.String |
getRecordStoreName()
TODO comment! |
boolean |
isConnected()
TODO comment! |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public javax.microedition.rms.RecordStore getRecordStore()
public java.lang.String getRecordStoreName()
public boolean connect()
StorageConnection
connect
in interface StorageConnection
public boolean isConnected()
StorageConnection
isConnected
in interface StorageConnection
public void close()
StorageConnection
close
in interface StorageConnection
public java.lang.String getConnectionIdentifier()
StorageConnection
getConnectionIdentifier
in interface StorageConnection
public int executeINSERT(ObjectEntry objectEntry)
StorageConnection
objectEntry
in the storage
and returns the genereated id resp. key.
executeINSERT
in interface StorageConnection
objectEntry
- Entry to insert
public void executeUPDATE(ObjectEntry objectEntry)
StorageConnection
objectEntry
in the storage.
executeUPDATE
in interface StorageConnection
objectEntry
- Entry to updatepublic boolean executeDELETE(Serializable serializable)
StorageConnection
serializable
object in the storage.
executeDELETE
in interface StorageConnection
serializable
- Entry to delete
serializable
object has been deleted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |