|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tolven.app.entity.MenuDataVersion
public class MenuDataVersion
This entity contains a denomalized representation of a version number for each "collection" represented in MenuData. This entity is always populated as a side-effect of updating or adding a new MenuData entity by removing the trailing number and dash of the full path of the menuData item.
The resulting key should correspond to the "elementId" we maintain in the application for collections. The version number maintained here represents the version of the collection which can be stored in the client and then used to determine if a change has occurred that requires the client to requery the actual collection.
Although we maintain this entity transactionally, the data itself should not be used to determine official transaction behavior. For example, the version number itself is not an official indication that the underlying data has actually changed, only that a UI should consider refreshing the query of the underlying data if the version number in the table is newer than what the client has. Think of this table as completely optional. Also, if a list has been defined by MenuStructure but has not been populated with any MenuData, then no entry for it will exists in this table (version 1 is the lowest version in this table). If this entity is eventually expanded to contain an approximate count of the number of rows in the underlying list, then version 0 might be possible depending on the method of counting. But again, the count is not official and not a substitute for actually counting the rows. Also, the "approximate row count" can be assumed to be zero if no entry exists in this table.
| Constructor Summary | |
|---|---|
MenuDataVersion()
|
|
| Method Summary | |
|---|---|
Account |
getAccount()
|
java.lang.String |
getElement()
The id of the list. |
long |
getId()
|
java.util.Date |
getMaxDate()
|
java.util.Date |
getMinDate()
|
java.lang.String |
getRole()
|
long |
getVersion()
A version number incremented when an item is added to or removed from the list or if any item on the list is modified for any reason. |
void |
setAccount(Account account)
Account that owns the list we are keeping track of. |
void |
setElement(java.lang.String element)
|
void |
setId(long id)
|
void |
setMaxDate(java.util.Date maxDate)
|
void |
setMinDate(java.util.Date minDate)
|
void |
setRole(java.lang.String role)
|
void |
setVersion(long version)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MenuDataVersion()
| Method Detail |
|---|
public Account getAccount()
public void setAccount(Account account)
account - public java.lang.String getElement()
public void setElement(java.lang.String element)
public long getId()
public void setId(long id)
public long getVersion()
public void setVersion(long version)
public java.util.Date getMinDate()
public void setMinDate(java.util.Date minDate)
public java.util.Date getMaxDate()
public void setMaxDate(java.util.Date maxDate)
public java.lang.String getRole()
public void setRole(java.lang.String role)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||