Class AppointmentClosingTimeModel
java.lang.Object
de.xima.fc.gui.model.appointment.AAppointmentClosingTimeModel<AppointmentClosingTime>
de.xima.fc.gui.model.appointment.AppointmentClosingTimeModel
- All Implemented Interfaces:
Serializable
public final class AppointmentClosingTimeModel
extends AAppointmentClosingTimeModel<AppointmentClosingTime>
The view model for the
AppointmentClosingTime.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new empty model without any closing times. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSubtypePropertiesToItem(AppointmentClosingTime item, com.alibaba.fastjson.JSONObject json) When deserializing the JSON data received from the client.protected voidaddSubtypePropertiesToJson(com.alibaba.fastjson.JSONObject json, AppointmentClosingTime item) When serializing an entity as JSON for the client.protected booleanCompares two closing times for whether they are equal.protected AppointmentClosingTimeprotected AppointmentClosingTimeCreates a new, non-persisted entity and sets all fields required by the sub type (such as a reference to aclientetc.).protected de.xima.cmn.criteria.QueryCriteriaManagerCreates the query criteria manager with the filter and sorting criteria for reading all applicable closing time entities from the database.Methods inherited from class AAppointmentClosingTimeModel
add, addNew, getAllJsonString, loadAll, removeRows, save, setAllJsonString
-
Constructor Details
-
AppointmentClosingTimeModel
Creates a new empty model without any closing times.- Parameters:
template- Appointment template which contains the closing times.
-
-
Method Details
-
addSubtypePropertiesToItem
protected void addSubtypePropertiesToItem(AppointmentClosingTime item, com.alibaba.fastjson.JSONObject json) Description copied from class:AAppointmentClosingTimeModelWhen deserializing the JSON data received from the client. This method should read all properties from the JSON object that are not contained inAAppointmentClosingTime, and add those to the entity.- Specified by:
addSubtypePropertiesToItemin classAAppointmentClosingTimeModel<AppointmentClosingTime>- Parameters:
item- The entity to which the data should be added.json- JSON data for the item as received from the client.
-
addSubtypePropertiesToJson
protected void addSubtypePropertiesToJson(com.alibaba.fastjson.JSONObject json, AppointmentClosingTime item) Description copied from class:AAppointmentClosingTimeModelWhen serializing an entity as JSON for the client. This method should add all properties from the sub type not contained inAAppointmentClosingTimeto the JSON object.- Specified by:
addSubtypePropertiesToJsonin classAAppointmentClosingTimeModel<AppointmentClosingTime>- Parameters:
json- JSON object which will be passed to the client.item- Entity with the data to add to the JSON object.
-
areSubtypePropertiesEqual
Description copied from class:AAppointmentClosingTimeModelCompares two closing times for whether they are equal. Implementation only need to check for properties not present in theAAppointmentClosingTime.- Specified by:
areSubtypePropertiesEqualin classAAppointmentClosingTimeModel<AppointmentClosingTime>- Parameters:
x- One item to check.y- Another item to check.- Returns:
- Whether the properties of two items are equal.
-
cloneItem
- Specified by:
cloneItemin classAAppointmentClosingTimeModel<AppointmentClosingTime>- Parameters:
item- An item to clone.- Returns:
- A clone of the basic properties of the closing time, without the ID / UUID / locking version etc.
-
createNew
Description copied from class:AAppointmentClosingTimeModelCreates a new, non-persisted entity and sets all fields required by the sub type (such as a reference to aclientetc.).- Specified by:
createNewin classAAppointmentClosingTimeModel<AppointmentClosingTime>- Returns:
- A new closing time entity.
-
getFetchAllCriteria
protected de.xima.cmn.criteria.QueryCriteriaManager getFetchAllCriteria()Description copied from class:AAppointmentClosingTimeModelCreates the query criteria manager with the filter and sorting criteria for reading all applicable closing time entities from the database.- Specified by:
getFetchAllCriteriain classAAppointmentClosingTimeModel<AppointmentClosingTime>- Returns:
- A criteria manager for fetching all applicable entities.
-