public class Session
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
customerId
Used to store customer id
|
int |
expiryInSecs
Session expiry time in seconds
|
java.lang.String |
sessKey
Session key.
|
java.lang.String |
value
Used to store miscellaneous session data - not used beyond v4.0.0.0
|
Constructor and Description |
---|
Session()
Constructor
|
Session(com.workingdogs.village.Record vr,
KKCriteria c)
Instantiates the attributes of the Session object from a Record object
|
Modifier and Type | Method and Description |
---|---|
protected int |
getCustomerId()
return the customerId
|
int |
getExpiryInSecs() |
java.lang.String |
getSessKey() |
java.lang.String |
getValue() |
boolean |
hasExpired()
Checks to see whether the session has timed out.
|
void |
setCustomerId(int customerId) |
void |
setExpiryInSecs(int expiry) |
void |
setSessKey(java.lang.String sessKey) |
void |
setValue(java.lang.String value) |
java.lang.String |
toString() |
public java.lang.String sessKey
public int expiryInSecs
public java.lang.String value
public int customerId
public Session()
public Session(com.workingdogs.village.Record vr, KKCriteria c) throws com.workingdogs.village.DataSetException
vr
- Record containing datac
- Criteria containing column namescom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public boolean hasExpired()
protected int getCustomerId()
public java.lang.String toString()
toString
in class java.lang.Object
public int getExpiryInSecs()
public void setExpiryInSecs(int expiry)
expiry
- The expiry to set.public java.lang.String getSessKey()
public void setSessKey(java.lang.String sessKey)
sessKey
- The sessKey to set.public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- The value to set.public void setCustomerId(int customerId)
customerId
- the customerId to setCopyright © 2018 DS Data Systems UK Ltd.