public interface Session
Record, Field, and other Node subclasses to attach transient values to data flowing through the
pipeline. Values stored in session properties are ignored by Data Pipeline's readers, writers, and operators.
Note: Session is created as an interface (with one real implementation -- Session.SessionImpl) due to Java's lack of multiple
inheritance. It is not intended to be implemented by developers.
Node,
Record,
Field,
ArrayValue,
SingleValue,
ValueNode| Modifier and Type | Interface and Description |
|---|---|
static class |
Session.SessionImpl |
| Modifier and Type | Method and Description |
|---|---|
<T> boolean |
containsSessionProperty(Class<T> type)
Returns
true if a session property exists for the given type. |
<T> boolean |
containsSessionProperty(Class<T> type,
String name)
Returns
true if a session property exists for the given type and name combination. |
boolean |
containsSessionProperty(String name)
Returns
true if a session property exists with the given name. |
void |
copySessionPropertiesFrom(Session session)
Copies all session properties from the given source session into this one.
|
<T> T |
getSessionProperty(Class<T> type)
Returns the session property value associated with the given type.
|
<T> T |
getSessionProperty(Class<T> type,
String name)
Returns the session property value associated with the given type and name combination.
|
<T> T |
getSessionProperty(String name)
Returns the session property value associated with the given name.
|
Set<String> |
keySet()
Returns the set of all session property keys.
|
void |
removeSessionProperties()
Removes all session properties from this session.
|
<T> void |
setSessionProperty(Class<T> type,
Object value)
Sets a session property value keyed by type.
|
<T> void |
setSessionProperty(Class<T> type,
String name,
Object value)
Sets a session property value keyed by the given type and name combination.
|
void |
setSessionProperty(String name,
Object value)
Sets a session property value keyed by name.
|
Set<String> keySet()
null<T> boolean containsSessionProperty(Class<T> type, String name)
true if a session property exists for the given type and name combination.T - the type used as part of the property keytype - the class used as part of the property key, or null to match by name onlyname - the property name, or null to match by type onlytrue if the property exists<T> boolean containsSessionProperty(Class<T> type)
true if a session property exists for the given type.T - the type used as the property keytype - the class used as the property keytrue if the property existsboolean containsSessionProperty(String name)
true if a session property exists with the given name.name - the property nametrue if the property exists<T> T getSessionProperty(Class<T> type)
T - the expected value typetype - the class used as the property keynull if not found<T> T getSessionProperty(Class<T> type, String name)
T - the expected value typetype - the class used as part of the property key, or null to match by name onlyname - the property name, or null to match by type onlynull if not found<T> T getSessionProperty(String name)
T - the expected value typename - the property namenull if not found<T> void setSessionProperty(Class<T> type, Object value)
T - the type used as the property keytype - the class used as the property keyvalue - the value to store<T> void setSessionProperty(Class<T> type, String name, Object value)
T - the type used as part of the property keytype - the class used as part of the property key, or null to match by name onlyname - the property name, or null to match by type onlyvalue - the value to storevoid setSessionProperty(String name, Object value)
name - the property namevalue - the value to storevoid copySessionPropertiesFrom(Session session)
session - the source session to copy from, may be nullvoid removeSessionProperties()
Copyright (c) 2006-2026 North Concepts Inc. All Rights Reserved.