Package de.xima.fc.gui.model.appointment
Class AppointmentClientClosingTimeModel
- java.lang.Object
 - 
- de.xima.fc.gui.model.appointment.AAppointmentClosingTimeModel<AppointmentClientClosingTime>
 - 
- de.xima.fc.gui.model.appointment.AppointmentClientClosingTimeModel
 
 
 
- 
- All Implemented Interfaces:
 Serializable
public final class AppointmentClientClosingTimeModel extends AAppointmentClosingTimeModel<AppointmentClientClosingTime>
The view model for theAppointmentClientClosingTime.- Since:
 - 8.0.0
 - Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description AppointmentClientClosingTimeModel(Mandant client, 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(AppointmentClientClosingTime item, com.alibaba.fastjson.JSONObject json)When deserializing the JSON data received from the client.protected voidaddSubtypePropertiesToJson(com.alibaba.fastjson.JSONObject json, AppointmentClientClosingTime item)When serializing an entity as JSON for the client.protected booleanareSubtypePropertiesEqual(AppointmentClientClosingTime x, AppointmentClientClosingTime y)Compares two closing times for whether they are equal.protected AppointmentClientClosingTimecloneItem(AppointmentClientClosingTime item)protected AppointmentClientClosingTimecreateNew()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
- 
AppointmentClientClosingTimeModel
public AppointmentClientClosingTimeModel(Mandant client, AppointmentTemplate template)
Creates a new empty model without any closing times.- Parameters:
 client- The currentclientscope.template- The appointment template to which the closing times belong.
 
 - 
 
- 
Method Detail
- 
addSubtypePropertiesToItem
protected void addSubtypePropertiesToItem(AppointmentClientClosingTime 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<AppointmentClientClosingTime>- 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, AppointmentClientClosingTime 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<AppointmentClientClosingTime>- 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(AppointmentClientClosingTime x, AppointmentClientClosingTime 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<AppointmentClientClosingTime>- Parameters:
 x- One item to check.y- Another item to check.- Returns:
 - Whether the properties of two items are equal.
 
 
- 
cloneItem
protected AppointmentClientClosingTime cloneItem(AppointmentClientClosingTime item)
- Specified by:
 cloneItemin classAAppointmentClosingTimeModel<AppointmentClientClosingTime>- 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 AppointmentClientClosingTime 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<AppointmentClientClosingTime>- 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<AppointmentClientClosingTime>- Returns:
 - A criteria manager for fetching all applicable entities.
 
 
 - 
 
 -