railo.runtime.type.scope.storage
Class StorageScopeDatasource

java.lang.Object
  extended by railo.runtime.type.util.StructSupport
      extended by railo.runtime.type.scope.storage.StorageScopeImpl
          extended by railo.runtime.type.scope.storage.StorageScopeDatasource
All Implemented Interfaces:
Serializable, Cloneable, Map, Dumpable, Castable, Collection, Iteratorable, Scope, StorageScope, SharedScope, Sizeable, Struct
Direct Known Subclasses:
ClientDatasource, SessionDatasource

public abstract class StorageScopeDatasource
extends StorageScopeImpl

client scope that store it's data in a datasource

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface railo.runtime.type.Collection
Collection.Key
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
static Collection.Key EXPIRES
           
static String PREFIX
           
 
Fields inherited from interface railo.runtime.type.scope.storage.StorageScope
HITCOUNT, LASTVISIT, SESSION_ID, TIMECREATED, URLTOKEN
 
Fields inherited from interface railo.runtime.type.Scope
SCOPE_APPLICATION, SCOPE_ARGUMENTS, SCOPE_CALLER, SCOPE_CGI, SCOPE_CLIENT, SCOPE_CLUSTER, SCOPE_COOKIE, SCOPE_COUNT, SCOPE_FORM, SCOPE_LOCAL, SCOPE_REQUEST, SCOPE_SERVER, SCOPE_SESSION, SCOPE_UNDEFINED, SCOPE_URL, SCOPE_VARIABLES
 
Fields inherited from interface railo.runtime.type.Struct
TYPE_LINKED, TYPE_REGULAR, TYPE_SYNC, TYPE_WEAKED
 
Method Summary
 String getDatasourceName()
           
 String getStorageType()
           
 void store(Config config)
          store content on persistent layer
 void touchAfterRequest(PageContext pc)
          release scope only for current request, scope will be used again
 void touchBeforeRequest(PageContext pc)
          Initalize Scope only for this request, scope was already used
 void unstore(Config config)
          remove stored data from persistent layer
 
Methods inherited from class railo.runtime.type.scope.storage.StorageScopeImpl
_getId, castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, clear, compareTo, compareTo, compareTo, compareTo, containsKey, containsValue, decode, encode, get, get, getLastAccess, getMaxInactiveInterval, getStorage, getTimeSpan, getType, getTypeAsString, hasChanges, hasContent, initialize, isExpired, isInitalized, keyIterator, keys, keysAsString, lastVisit, pureKeys, release, remove, removeEL, set, setEL, setMaxInactiveInterval, setStorage, size, sizeOf, toDumpData, touch, values
 
Methods inherited from class railo.runtime.type.util.StructSupport
clone, containsKey, containsKey, entrySet, equals, get, get, get, invalidKey, isEmpty, iterator, keySet, put, putAll, remove, set, setEL, toString, valueIterator
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface railo.runtime.type.Collection
clone, containsKey, duplicate, get, get, set, setEL
 
Methods inherited from interface railo.runtime.type.Iteratorable
iterator, valueIterator
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove
 

Field Detail

EXPIRES

public static final Collection.Key EXPIRES

PREFIX

public static final String PREFIX
See Also:
Constant Field Values
Method Detail

touchAfterRequest

public void touchAfterRequest(PageContext pc)
Description copied from interface: SharedScope
release scope only for current request, scope will be used again

Specified by:
touchAfterRequest in interface SharedScope
Overrides:
touchAfterRequest in class StorageScopeImpl
See Also:
StorageScopeImpl.touchAfterRequest(railo.runtime.PageContext)

store

public void store(Config config)
Description copied from interface: StorageScope
store content on persistent layer

Specified by:
store in interface StorageScope
Overrides:
store in class StorageScopeImpl
See Also:
StorageScope.store(railo.runtime.config.Config)

unstore

public void unstore(Config config)
Description copied from interface: StorageScope
remove stored data from persistent layer

Specified by:
unstore in interface StorageScope
Overrides:
unstore in class StorageScopeImpl
See Also:
StorageScope.unstore(railo.runtime.config.Config)

touchBeforeRequest

public void touchBeforeRequest(PageContext pc)
Description copied from interface: SharedScope
Initalize Scope only for this request, scope was already used

Specified by:
touchBeforeRequest in interface SharedScope
Overrides:
touchBeforeRequest in class StorageScopeImpl
Parameters:
pc - Page Context
See Also:
railo.runtime.type.scope.ClientSupportOld#initialize(railo.runtime.PageContext)

getStorageType

public String getStorageType()
See Also:
StorageScope.getStorageType()

getDatasourceName

public String getDatasourceName()
Returns:
the datasourceName


Copyright © 2012 Railo