Package de.xima.fc.gui.model.appointment
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 theAppointmentClosingTime.- Since:
 - 8.0.0
 - Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description AppointmentClosingTimeModel(AppointmentTemplate template)Creates a new empty model without any closing times. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 booleanareSubtypePropertiesEqual(AppointmentClosingTime x, AppointmentClosingTime y)Compares two closing times for whether they are equal.protected AppointmentClosingTimecloneItem(AppointmentClosingTime item)protected AppointmentClosingTimecreateNew()Creates 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.QueryCriteriaManagergetFetchAllCriteria()Creates the query criteria manager with the filter and sorting criteria for reading all applicable closing time entities from the database.- 
Methods inherited from class de.xima.fc.gui.model.appointment.AAppointmentClosingTimeModel
add, addNew, getAllJsonString, loadAll, removeRows, save, setAllJsonString 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
AppointmentClosingTimeModel
public AppointmentClosingTimeModel(AppointmentTemplate template)
Creates a new empty model without any closing times.- Parameters:
 template- Appointment template which contains the closing times.
 
 - 
 
- 
Method Detail
- 
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
protected boolean areSubtypePropertiesEqual(AppointmentClosingTime x, AppointmentClosingTime y)
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
protected AppointmentClosingTime cloneItem(AppointmentClosingTime item)
- 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
protected AppointmentClosingTime 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.
 
 
 - 
 
 -