Class QuickSavedView
java.lang.Object
com.kingsrook.qqq.backend.core.model.data.QRecordEntity
com.kingsrook.qqq.backend.core.model.savedviews.QuickSavedView
Entity bean for the quick saved view table - a many to one join
with SavedView, for display in as a "quick" view.
This is a many-to-one join with saved view, because there's some data in this table that might be adjusted per-user (sortOrder, doCount). So in addition to sharing a SavedView to a user (or, in an application via additional fields like a groupId or userTypeId), a QuickSavedView against one SavedView can be set up for multiple users (groups, etc in application-layer) with different values for those settings.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for createDateGetter for doCountgetId()Getter for idgetLabel()Getter for labelGetter for modifyDateGetter for savedViewIdGetter for sortOrderGetter for userIdvoidsetCreateDate(Instant createDate) Setter for createDatevoidsetDoCount(Boolean doCount) Setter for doCountvoidSetter for idvoidSetter for labelvoidsetModifyDate(Instant modifyDate) Setter for modifyDatevoidsetSavedViewId(Integer savedViewId) Setter for savedViewIdvoidsetSortOrder(Integer sortOrder) Setter for sortOrdervoidSetter for userIdwithCreateDate(Instant createDate) Fluent setter for createDatewithDoCount(Boolean doCount) Fluent setter for doCountFluent setter for idFluent setter for labelwithModifyDate(Instant modifyDate) Fluent setter for modifyDatewithSavedViewId(Integer savedViewId) Fluent setter for savedViewIdwithSortOrder(Integer sortOrder) Fluent setter for sortOrderwithUserId(String userId) Fluent setter for userIdMethods inherited from class com.kingsrook.qqq.backend.core.model.data.QRecordEntity
fromQRecord, fromQRecord, getAnnotationOnField, getAssociationList, getFieldList, getFieldNameFromGetter, getQAssociationAnnotation, getQFieldAnnotation, getQIgnoreAnnotation, getTableName, populateFromQRecord, populateFromQRecord, registerTable, tableName, toQRecord, toQRecordOnlyChangedFields, toQRecordOnlyChangedFields
-
Field Details
-
TABLE_NAME
- See Also:
-
-
Constructor Details
-
QuickSavedView
public QuickSavedView()Constructor -
QuickSavedView
-
-
Method Details
-
getId
-
setId
-
withId
Fluent setter for id- Parameters:
id- primary key of the record- Returns:
- this
-
getCreateDate
-
setCreateDate
-
withCreateDate
Fluent setter for createDate- Parameters:
createDate- create date of the record- Returns:
- this
-
getModifyDate
-
setModifyDate
-
withModifyDate
Fluent setter for modifyDate- Parameters:
modifyDate- modify date of the record- Returns:
- this
-
getSavedViewId
-
setSavedViewId
-
withSavedViewId
Fluent setter for savedViewId- Parameters:
savedViewId- id of the saved view that this quick saved view refers to- Returns:
- this
-
getSortOrder
-
setSortOrder
-
withSortOrder
Fluent setter for sortOrder- Parameters:
sortOrder- Integer to control the sort-order for the user's quick saved views.- Returns:
- this
-
getDoCount
-
setDoCount
-
withDoCount
Fluent setter for doCount- Parameters:
doCount- boolean to specify whether or not the frontend should execute a count whenever it displays a button for this quick saved view.- Returns:
- this
-
getUserId
-
setUserId
-
withUserId
Fluent setter for userId- Parameters:
userId- TODO document this property- Returns:
- this
-
getLabel
-
setLabel
-
withLabel
Fluent setter for label- Parameters:
label- Label for the quick saved view. As you might want it different (shorter) than the saved view, and/or, different users might want it different.- Returns:
- this
-