com.ados.hestia.sdk.session
Class SessionKey

java.lang.Object
  extended by com.ados.hestia.utils.db.Key
      extended by com.ados.hestia.sdk.session.SessionKey
All Implemented Interfaces:
Serializable

public class SessionKey
extends Key

Describe how Session will be stored at DB

Version:
$Revision: 1654 $ $Date: 2006-03-07 06:05:07 +0900 $
See Also:
Serialized Form

Nested Class Summary
static class SessionKey.SessionKeyDescriptor
          Specify storage schema for bridge entry.
 
Field Summary
static String DOC_INSTANCEID_SEPARATOR
           
protected static SessionKey.SessionKeyDescriptor m_default
           
static int SESSION_COLUMN_ACTIVITY_DATE
           
static int SESSION_COLUMN_DOCINSTANCEIDS
           
static int SESSION_COLUMN_EIS
           
static int SESSION_COLUMN_PARTNER
           
static int SESSION_COLUMN_PIPID
           
static int SESSION_COLUMN_PIPINSTANCEID
           
static int SESSION_COLUMN_START_DATE
           
static int SESSION_COLUMN_STATUS
           
static int SESSION_COLUMN_TYPE
           
static int SESSION_COLUMN_VERSION
           
 
Fields inherited from class com.ados.hestia.utils.db.Key
m_data, m_id
 
Constructor Summary
SessionKey(Object[] key)
          Direct constructor.
SessionKey(Session session)
          External constructor.
 
Method Summary
static SessionKey.SessionKeyDescriptor getDescriptor()
          Returns descriptor of storing TPAKey.
 String getDocumentInstanceIDs()
          Returns document instance identificators.
 String getEIS()
          Returns eis identificator.
 Date getLastActivityDate()
          Returns date of last activity for session.
 String getPartner()
          Returns partner identificator.
 String getPIPID()
          Returns pipid of container.
 String getPIPInstanceID()
          Returns pip instance identificator.
 Date getStartDate()
          Returns date of creation.
 int getStatus()
          Returns status of session.
 int getType()
          Returns type of session.
 String getVersion()
          Returns version of container.
 
Methods inherited from class com.ados.hestia.utils.db.Key
copyFrom, getID, getKey, setID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SESSION_COLUMN_START_DATE

public static final int SESSION_COLUMN_START_DATE
See Also:
Constant Field Values

SESSION_COLUMN_ACTIVITY_DATE

public static final int SESSION_COLUMN_ACTIVITY_DATE
See Also:
Constant Field Values

SESSION_COLUMN_EIS

public static final int SESSION_COLUMN_EIS
See Also:
Constant Field Values

SESSION_COLUMN_PARTNER

public static final int SESSION_COLUMN_PARTNER
See Also:
Constant Field Values

SESSION_COLUMN_PIPINSTANCEID

public static final int SESSION_COLUMN_PIPINSTANCEID
See Also:
Constant Field Values

SESSION_COLUMN_TYPE

public static final int SESSION_COLUMN_TYPE
See Also:
Constant Field Values

SESSION_COLUMN_STATUS

public static final int SESSION_COLUMN_STATUS
See Also:
Constant Field Values

SESSION_COLUMN_PIPID

public static final int SESSION_COLUMN_PIPID
See Also:
Constant Field Values

SESSION_COLUMN_VERSION

public static final int SESSION_COLUMN_VERSION
See Also:
Constant Field Values

SESSION_COLUMN_DOCINSTANCEIDS

public static final int SESSION_COLUMN_DOCINSTANCEIDS
See Also:
Constant Field Values

DOC_INSTANCEID_SEPARATOR

public static final String DOC_INSTANCEID_SEPARATOR
See Also:
Constant Field Values

m_default

protected static SessionKey.SessionKeyDescriptor m_default
Constructor Detail

SessionKey

public SessionKey(Session session)
External constructor. Fill fields from provided Session.

Parameters:
session - used to extract information about session.

SessionKey

public SessionKey(Object[] key)
Direct constructor. Use inrernally.

Parameters:
key - - array of objects length of 10. Objects at index 1..9 represent data from SESSION_COLUMN_START_DATE to SESSION_COLUMN_VERSION. Object at index 0 represents internal DB identifier.
Method Detail

getEIS

public String getEIS()
Returns eis identificator.

Returns:
eis identificator

getPartner

public String getPartner()
Returns partner identificator.

Returns:
partner identificator

getPIPInstanceID

public String getPIPInstanceID()
Returns pip instance identificator.

Returns:
pip instance identificator

getDocumentInstanceIDs

public String getDocumentInstanceIDs()
Returns document instance identificators. separated by TPAKey.DOC_INSTANCEID_SEPARATOR

Returns:
document instance identificators separated by TPAKey.DOC_INSTANCEID_SEPARATOR

getStartDate

public Date getStartDate()
Returns date of creation.

Returns:
date of creation

getLastActivityDate

public Date getLastActivityDate()
Returns date of last activity for session.

Returns:
date of last activity for session

getType

public int getType()
Returns type of session.

Returns:
type of session

getStatus

public int getStatus()
Returns status of session.

Returns:
status of session

getPIPID

public String getPIPID()
Returns pipid of container.

Returns:
pipid of container

getVersion

public String getVersion()
Returns version of container.

Returns:
version of container

getDescriptor

public static SessionKey.SessionKeyDescriptor getDescriptor()
Returns descriptor of storing TPAKey.

Returns:
descriptor of storing TPAKey


Copyright © 2005-2006 ADOS Co.,Ltd.. All Rights Reserved.