|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.data.BasicData net.sf.basedb.core.data.ContextData
public class ContextData
This class holds context information to help client applications with storing common settings for tables.
ItemContext
,
Session and client overviewField Summary | |
---|---|
private ClientData |
client
|
private int |
include
|
private boolean |
isPublic
|
private int |
itemId
|
private int |
itemType
|
static int |
MAX_NAME_LENGTH
The maximum length of the name that can be stored in the database. |
static int |
MAX_SORTPROPERTY_LENGTH
The maximum length of the sort order that can be stored in the database. |
static int |
MAX_SUBCONTEXT_LENGTH
The maximum length of the name that can be stored in the database. |
private String |
name
|
private int |
page
|
private Map<String,PropertyFilterData> |
propertyFilters
|
private int |
rowsPerPage
|
private Map<String,String> |
settings
|
private int |
sortDirection
|
private String |
sortProperty
|
private String |
subContext
|
private UserData |
user
|
Constructor Summary | |
---|---|
ContextData()
|
Method Summary | |
---|---|
ClientData |
getClient()
Get the client which uses this context. |
int |
getInclude()
Flags for specifying include options to an entity query. |
int |
getItemId()
Get the current item ID or 0 if no item is current. |
int |
getItemType()
Get the item type this context is valid for. |
String |
getName()
Get the name of this Context item. |
int |
getPage()
Get the current page number, starting at 0. |
Map<String,PropertyFilterData> |
getPropertyFilters()
Get the map that manages property filters in this context. |
int |
getRowsPerPage()
Get the number of rows that are displayed on each table page. |
Map<String,String> |
getSettings()
Get a map for other settings. |
int |
getSortDirection()
Get the sort direction, 0 = ascending, 1 = descending |
String |
getSortProperty()
Get property name to sort on. |
String |
getSubContext()
Get the subcontext this context belongs to. |
UserData |
getUser()
Get the user that owns this context. |
boolean |
isPublic()
If the settings are public (ie. can be used by anyone) or not. |
void |
setClient(ClientData client)
|
void |
setInclude(int include)
|
void |
setItemId(int itemId)
|
void |
setItemType(int itemType)
|
void |
setName(String name)
|
void |
setPage(int page)
|
(package private) void |
setPropertyFilters(Map<String,PropertyFilterData> propertyFilters)
|
void |
setPublic(boolean isPublic)
|
void |
setRowsPerPage(int rowsPerPage)
|
(package private) void |
setSettings(Map<String,String> settings)
|
void |
setSortDirection(int sortDirection)
|
void |
setSortProperty(String sortProperty)
|
void |
setSubContext(String subContext)
|
void |
setUser(UserData user)
|
Methods inherited from class net.sf.basedb.core.data.BasicData |
---|
equals, getId, getVersion, hashCode, setId, setVersion, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private UserData user
private ClientData client
public static final int MAX_NAME_LENGTH
setName(String)
,
Constant Field Valuesprivate String name
private int itemType
public static final int MAX_SUBCONTEXT_LENGTH
setName(String)
,
Constant Field Valuesprivate String subContext
private boolean isPublic
private int rowsPerPage
private int itemId
private int page
public static final int MAX_SORTPROPERTY_LENGTH
setSortProperty(String)
,
Constant Field Valuesprivate String sortProperty
private int sortDirection
private int include
private Map<String,PropertyFilterData> propertyFilters
private Map<String,String> settings
Constructor Detail |
---|
public ContextData()
Method Detail |
---|
public UserData getUser()
public void setUser(UserData user)
public ClientData getClient()
public void setClient(ClientData client)
public String getName()
Context
item.
public void setName(String name)
public int getItemType()
public void setItemType(int itemType)
public String getSubContext()
public void setSubContext(String subContext)
public boolean isPublic()
public void setPublic(boolean isPublic)
public int getRowsPerPage()
public void setRowsPerPage(int rowsPerPage)
public int getItemId()
public void setItemId(int itemId)
public int getPage()
public void setPage(int page)
public String getSortProperty()
public void setSortProperty(String sortProperty)
public int getSortDirection()
public void setSortDirection(int sortDirection)
public int getInclude()
public void setInclude(int include)
public Map<String,PropertyFilterData> getPropertyFilters()
void setPropertyFilters(Map<String,PropertyFilterData> propertyFilters)
public Map<String,String> getSettings()
void setSettings(Map<String,String> settings)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |