fr.paris.lutece.plugins.appointment.business.calendar
Class AppointmentDayHome

java.lang.Object
  extended by fr.paris.lutece.plugins.appointment.business.calendar.AppointmentDayHome

public final class AppointmentDayHome
extends Object

This class provides instances management methods (create, find, ...) for AppointmentDay objects


Method Summary
static void create(AppointmentDay day)
          Creates a new day in the database
static AppointmentDay findByPrimaryKey(int nIdDay)
          Returns an instance of a day whose identifier is specified in parameter
static List<AppointmentDay> getAppointmentDayListByIdForm(int nIdForm)
          Get the list of days associated with a form.
static List<AppointmentDay> getDaysBetween(int nIdForm, Date dateMin, Date dateMax)
          Get the list of days associated with a form and which date are between 2 given dates.
static void remove(int nIdDay)
          Remove a day from the database
static void removeByIdForm(int nIdForm)
          Remove days from the database that are associated with a given form
static void removeLonelyDays(Date dateMonday)
          Delete days which date is before a given date and that are not associated with any slot
static void update(AppointmentDay day)
          Update a day
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static void create(AppointmentDay day)
Creates a new day in the database

Parameters:
day - The day to create

update

public static void update(AppointmentDay day)
Update a day

Parameters:
day - The day to create

remove

public static void remove(int nIdDay)
Remove a day from the database

Parameters:
nIdDay - The id of the day to remove

removeByIdForm

public static void removeByIdForm(int nIdForm)
Remove days from the database that are associated with a given form

Parameters:
nIdForm - The id of the form

removeLonelyDays

public static void removeLonelyDays(Date dateMonday)
Delete days which date is before a given date and that are not associated with any slot

Parameters:
dateMonday - The date of days

findByPrimaryKey

public static AppointmentDay findByPrimaryKey(int nIdDay)
Returns an instance of a day whose identifier is specified in parameter

Parameters:
nIdDay - The appointmentDay primary key
Returns:
an instance of AppointmentDay

getAppointmentDayListByIdForm

public static List<AppointmentDay> getAppointmentDayListByIdForm(int nIdForm)
Get the list of days associated with a form.

Parameters:
nIdForm - The id of the form
Returns:
The list of days associated with the given form

getDaysBetween

public static List<AppointmentDay> getDaysBetween(int nIdForm,
                                                  Date dateMin,
                                                  Date dateMax)
Get the list of days associated with a form and which date are between 2 given dates.

Parameters:
nIdForm - The id of the form
dateMin - The minimum date
dateMax - The maximum date
Returns:
The list of days


Copyright © 2014 Mairie de Paris. All Rights Reserved.