org.openbandy.io.storage
Interface StorageConnection

All Known Implementing Classes:
DatabaseConnection, RmsConnection

public interface StorageConnection


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.
 boolean isConnected()
          TODO comment!
 

Method Detail

connect

boolean connect()
TODO comment!

Returns:

isConnected

boolean isConnected()
TODO comment!

Returns:

getConnectionIdentifier

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.

Returns:

close

void close()
TODO comment!


executeINSERT

int executeINSERT(ObjectEntry objectEntry)
This method inserts the objectEntry in the storage and returns the genereated id resp. key.

Parameters:
objectEntry - Entry to insert
Returns:
newKey The key generated by the database while executing the INSERT.

executeUPDATE

void executeUPDATE(ObjectEntry objectEntry)
This method updates the objectEntry in the storage.

Parameters:
objectEntry - Entry to update

executeDELETE

boolean executeDELETE(Serializable serializable)
This method deletes the serializable object in the storage.

Parameters:
serializable - Entry to delete
Returns:
Returns true if the serializable object has been deleted.