org.apache.chemistry.opencmis.client.bindings.spi
Interface BindingSession

All Superinterfaces:
Serializable
All Known Implementing Classes:
SessionImpl

public interface BindingSession
extends Serializable

CMIS provider session interface.


Method Summary
 Object get(String key)
          Gets a session value.
 int get(String key, int defValue)
          Returns a session value or the default value if the key doesn't exist.
 Object get(String key, Object defValue)
          Returns a session value or the default value if the key doesn't exist.
 Collection<String> getKeys()
          Returns all keys.
 void put(String key, Object object, boolean isTransient)
          Adds a session value.
 void put(String key, Serializable object)
          Adds a non-transient session value.
 void readLock()
          Acquires a read lock.
 void readUnlock()
          Releases a read lock.
 void remove(String key)
          Removes a session value.
 void writeLock()
          Acquires a write lock.
 void writeUnlock()
          Releases a write lock.
 

Method Detail

getKeys

Collection<String> getKeys()
Returns all keys.


get

Object get(String key)
Gets a session value.


get

Object get(String key,
           Object defValue)
Returns a session value or the default value if the key doesn't exist.


get

int get(String key,
        int defValue)
Returns a session value or the default value if the key doesn't exist.


put

void put(String key,
         Serializable object)
Adds a non-transient session value.


put

void put(String key,
         Object object,
         boolean isTransient)
Adds a session value.


remove

void remove(String key)
Removes a session value.


readLock

void readLock()
Acquires a read lock.


readUnlock

void readUnlock()
Releases a read lock.


writeLock

void writeLock()
Acquires a write lock.


writeUnlock

void writeUnlock()
Releases a write lock.



Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.