|
Oracle NoSQL Database Examples version 11gR2.2.0.26 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectschema.LoginSession
class LoginSession
Holds the session duration attribute that is stored as the Value
for the "/user/EMAIL/-/login/TIMESTAMP" Key
.
Illustrates the use of a timestamp as a Key
component. The
email and timestamp uniquely identify the login event and the user
session.
Constructor Summary | |
---|---|
LoginSession(String email,
long loginTime)
Constructs a user object with its unique identifiers, the email address and login time. |
Method Summary | |
---|---|
(package private) String |
getEmail()
Returns the email identifier. |
(package private) long |
getLoginTime()
Returns the login time identifier. |
(package private) int |
getSessionDuration()
Returns the session duration. |
(package private) Key |
getStoreKey()
Returns a Key that can be used to write or read the LoginSession. |
(package private) Value |
getStoreValue(Bindings bindings)
Serializes the only attribute, session duration, into the byte array of a Value. |
(package private) void |
setSessionDuration(int sessionDuration)
Changes the session duration. |
(package private) void |
setStoreValue(Bindings bindings,
Value value)
Deserializes the only attribute, session duration, from the byte array of a Value. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
LoginSession(String email, long loginTime)
Method Detail |
---|
String getEmail()
long getLoginTime()
void setSessionDuration(int sessionDuration)
int getSessionDuration()
Key getStoreKey()
Value getStoreValue(Bindings bindings)
void setStoreValue(Bindings bindings, Value value)
public String toString()
toString
in class Object
|
Oracle NoSQL Database Examples version 11gR2.2.0.26 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |