public class SiteActivity extends JDBCObject<SiteActivity> implements javax.servlet.http.HttpSessionBindingListener
| Modifier and Type | Field and Description |
|---|---|
static int |
GROUP_BATCH
The group code for batch activity.
|
static int |
GROUP_OTHER
The group code for other activity.
|
static int |
GROUP_PUBLIC
The group code for public activity.
|
static int |
GROUP_SFI
The group code for SFI activity.
|
static int |
GROUP_TOTAL
The group code for total activity.
|
private static long |
serialVersionUID
The class' serialization version id.
|
LOWVAL_RPG_DATE, LOWVAL_RPG_TIME, STATUS_ACTIVE, STATUS_BLANK, STATUS_CANCELED, STATUS_DELETED, STATUS_INACTIVE, STATUS_PENDINGivHashCode, ivHashFlds, ivObjAttrs| Constructor and Description |
|---|
SiteActivity()
Constructs a
SiteActivity object with with all field values set to
null. |
| Modifier and Type | Method and Description |
|---|---|
void |
addToAccounts()
Adds one (1) to the number of new accounts created.
|
void |
addToAddToOrders()
Adds one (1) to the number of add to order requests.
|
void |
addToAvailInqs()
Adds one (1) to the number of product availability inquiries.
|
void |
addToOrderAmt1(java.math.BigDecimal amount)
Adds the given amount to the total order amount (line items only).
|
void |
addToOrderAmt2(java.math.BigDecimal amount)
Adds the given amount to the total order amount (includes freight, taxes,
etc.).
|
void |
addToOrderInqs()
Adds one (1) to the number of order status inquiries.
|
void |
addToOrderLines(int count)
Adds the given count to the number of product line items ordered.
|
void |
addToOrders()
Adds one (1) to the number of new orders created.
|
void |
addToRestockReqs()
Adds one (1) to the number of restock notification requests.
|
int |
getAccounts()
Returns the number of new accounts created.
|
int |
getAddToOrders()
Returns the number of add to order requests.
|
int |
getAvailInqs()
Returns the number of product availability inquiries.
|
java.lang.String |
getCustomerId()
Returns the customer id associated with the session.
|
int |
getGroup()
Returns the activity group (based on user type).
|
java.util.Date |
getLogonStart()
Returns the time when first logon occurred.
|
int |
getLogonTime()
Returns the elapsed time of the logon (minutes).
|
java.math.BigDecimal |
getOrderAmt1()
Returns the total order amount (line items only).
|
java.math.BigDecimal |
getOrderAmt2()
Returns the total order amount (includes freight, taxes, etc.).
|
int |
getOrderInqs()
Returns the number of order status inquiries.
|
int |
getOrderLines()
Returns the number of product line items ordered.
|
int |
getOrders()
Returns the number of new orders created.
|
java.util.Date |
getOrderStart()
Returns the time when the first order was created.
|
int |
getOrderTime()
Returns the elapsed time from first logon to first order (minutes).
|
int |
getRestockReqs()
Returns the number of restock notification requests.
|
java.util.Date |
getSessionEnd()
Returns the time when the session ended.
|
java.lang.String |
getSessionId()
Returns the session id.
|
java.util.Date |
getSessionStart()
Returns the time when the session started.
|
int |
getSessionTime()
Returns the elapsed time for the session (minutes).
|
java.lang.String |
getUserId()
Returns the user id associated with the session.
|
java.lang.String |
getUserType()
Returns the user type associated with the session.
|
void |
setAccounts(int value)
Sets the number of new accounts created.
|
void |
setAddToOrders(int value)
Sets the number of add to order requests to the given count.
|
void |
setAvailInqs(int value)
Sets the number of product availability inquiries.
|
void |
setCustomerId(java.lang.String value)
Sets the customer id associated with the session.
|
void |
setGroup(int value)
Sets the activity group (based on user type).
|
void |
setLogonStart()
Sets the time when first logon occurred to the current date and time,
providing the date and time has not already been set.
|
void |
setLogonStart(java.util.Date value)
Sets the time when first logon occurred.
|
void |
setLogonTime()
Sets the elapsed time of the logon (minutes) based on the logon start
and the session end.
|
void |
setLogonTime(int value)
Sets the elapsed time of the logon (minutes).
|
void |
setOrderAmt1(java.math.BigDecimal value)
Sets the total order amount (line items only).
|
void |
setOrderAmt2(java.math.BigDecimal value)
Sets the total order amount (includes freight, taxes, etc.).
|
void |
setOrderInqs(int value)
Sets the number of order status inquiries.
|
void |
setOrderLines(int value)
Sets the number of product line items ordered.
|
void |
setOrders(int value)
Sets the number of new orders created.
|
void |
setOrderStart()
Sets the dtime when the first order was created to the current date and
time, providing the date and time has not already been set.
|
void |
setOrderStart(java.util.Date value)
Sets the time when the first order was created.
|
void |
setOrderTime()
Sets the elapsed time from first logon to first order (minutes) based on
the logon start and the order start.
|
void |
setOrderTime(int value)
Sets the elapsed time from first logon to first order (minutes).
|
void |
setRestockReqs(int value)
Sets the number of restock notification requests.
|
void |
setSessionEnd()
Sets the time when the session ended to the current date and time.
|
void |
setSessionEnd(java.util.Date value)
Sets the time when the session ended.
|
void |
setSessionId(java.lang.String value)
Sets the session id.
|
void |
setSessionStart()
Sets the time when the session started to the current date and time.
|
void |
setSessionStart(java.util.Date value)
Sets the time when the session started.
|
void |
setSessionTime()
Sets the elapsed time for the session (minutes) based on the session start
and the session end.
|
void |
setSessionTime(int value)
Sets the elapsed time for the session (minutes).
|
void |
setUserId(java.lang.String value)
Sets the user id associated with the session.
|
void |
setUserType(java.lang.String value)
Sets the user type associated with the session plus sets the activity
group to the corresponding value.
|
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent event)
Handles notification for when this
SiteActivity is added to a
session via the setAttribute method. |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
Handles notification for when this
SiteActivity is removed from
a session via the removeAttribute method or for when the session
times-out. |
after, before, compareTo, equals, fmtStatus, fmtStatus, getObjectStatus, hashKey, setObjectStatuscloneMapAttributes, formatValue, formatValue, getHashFields, getMapArrayList, getMapAttributes, getMapBigDecimal, getMapBoolean, getMapDate, getMapDouble, getMapInteger, getMapLong, getMapMapped, getMapObject, getMapShort, getMapString, getMapString, getMapStringBuffer, getMapStringBuilder, getMapTime, getMapTimestamp, getMapVector, hashCode, setHashFields, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMapAttributes, setMapObject, setMapTime, setMapTimestamp, toStringArrayprivate static final long serialVersionUID
public static final int GROUP_PUBLIC
public static final int GROUP_SFI
public static final int GROUP_BATCH
public static final int GROUP_TOTAL
public static final int GROUP_OTHER
public SiteActivity()
SiteActivity object with with all field values set to
null.public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
SiteActivity is added to a
session via the setAttribute method.
This method currently does nothing, but is required for the listener interface.
valueBound in interface javax.servlet.http.HttpSessionBindingListenerevent - (HttpSessionBindingEvent) The event that identifies the
session to which this SiteActivity is being added.public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
SiteActivity is removed from
a session via the removeAttribute method or for when the session
times-out.
This method asks the SiteActivityQueue to remove this object
instance from the activity cache.
valueUnbound in interface javax.servlet.http.HttpSessionBindingListenerevent - (HttpSessionBindingEvent) The event that identifies the
session from which this SiteActivity is being removed.public java.lang.String getSessionId()
public void setSessionId(java.lang.String value)
value - (String) The session id.public java.util.Date getSessionStart()
public void setSessionStart()
public void setSessionStart(java.util.Date value)
value - (java.util.Date) The time when the session started.public java.util.Date getSessionEnd()
public void setSessionEnd()
public void setSessionEnd(java.util.Date value)
value - (java.util.Date) The time when the session ended.public int getSessionTime()
public void setSessionTime()
public void setSessionTime(int value)
value - (int) The elapsed time for the session (minutes).public java.lang.String getUserId()
public void setUserId(java.lang.String value)
value - (String) The user id associated with the session.public java.lang.String getUserType()
public void setUserType(java.lang.String value)
value - (String) The user type associated with the session.public java.lang.String getCustomerId()
public void setCustomerId(java.lang.String value)
value - (String) The customer id associated with the session.public int getGroup()
public void setGroup(int value)
value - (int) The activity group (based on user type). Must be
one of the defined group code constants.public java.util.Date getLogonStart()
public void setLogonStart()
public void setLogonStart(java.util.Date value)
value - (java.util.Date) The time when first logon occurred.public int getLogonTime()
public void setLogonTime()
public void setLogonTime(int value)
value - (int) The elapsed time of the logon (minutes).public int getAccounts()
public void setAccounts(int value)
value - (int) The number of new accounts created.public void addToAccounts()
public int getOrderInqs()
public void setOrderInqs(int value)
value - (int) The number of order status inquiries.public void addToOrderInqs()
public int getOrders()
public void setOrders(int value)
value - (int) The number of new orders created.public void addToOrders()
public java.math.BigDecimal getOrderAmt1()
public void setOrderAmt1(java.math.BigDecimal value)
value - (BigDecimal) The total order amount.public void addToOrderAmt1(java.math.BigDecimal amount)
amount - (BigDecimal) The amount to add to the total order amount.public java.math.BigDecimal getOrderAmt2()
public void setOrderAmt2(java.math.BigDecimal value)
value - (BigDecimal) The total order amount.public void addToOrderAmt2(java.math.BigDecimal amount)
amount - (BigDecimal) The amount to add to the total order amount.public int getOrderLines()
public void setOrderLines(int value)
value - (int) The number of product line items ordered.public void addToOrderLines(int count)
count - (int) The count to add to the number of product line
items ordered.public java.util.Date getOrderStart()
public void setOrderStart()
public void setOrderStart(java.util.Date value)
value - (java.util.Date) The time when the first order was created.public int getOrderTime()
public void setOrderTime()
public void setOrderTime(int value)
value - (int) The elapsed time from first logon to first order
(minutes).public int getRestockReqs()
public void setRestockReqs(int value)
value - (int) The number of restock notification requests.public void addToRestockReqs()
public int getAvailInqs()
public void setAvailInqs(int value)
value - (int) The number of product availability inquiries.public void addToAvailInqs()
public int getAddToOrders()
public void setAddToOrders(int value)
value - (int) The number of add to order requests.public void addToAddToOrders()