fr.paris.lutece.plugins.stock.modules.tickets.business
Class SeanceDTO

java.lang.Object
  extended by fr.paris.lutece.plugins.stock.commons.AbstractDTO<fr.paris.lutece.plugins.stock.business.offer.Offer>
      extended by fr.paris.lutece.plugins.stock.modules.tickets.business.SeanceDTO

public class SeanceDTO
extends fr.paris.lutece.plugins.stock.commons.AbstractDTO<fr.paris.lutece.plugins.stock.business.offer.Offer>

DTO for Seance

Author:
nmoitry

Field Summary
static String ATTR_DATE
           
static String ATTR_HOUR
           
static String ATTR_ID_CONTACT
           
static String ATTR_INIT_QUANTITY
           
static String ATTR_REDUCT_PRICE
           
 
Fields inherited from class fr.paris.lutece.plugins.stock.commons.AbstractDTO
mapper
 
Constructor Summary
SeanceDTO()
           
 
Method Summary
 fr.paris.lutece.plugins.stock.business.offer.Offer convert()
          Convert an offer to database
static SeanceDTO convertEntity(fr.paris.lutece.plugins.stock.business.offer.Offer source)
          Convert entity from database
static fr.paris.lutece.plugins.stock.commons.ResultList<SeanceDTO> convertEntityList(Collection<fr.paris.lutece.plugins.stock.business.offer.Offer> listSource)
          Convert entity list from database
 String getDate()
           
 Date getDateHour()
           
 String getDescription()
           
 String getHour()
           
 Integer getId()
           
 Integer getIdContact()
           
 Integer getIdGenre()
          Gets the id genre.
 Integer getInitialQuantity()
           
 String getName()
           
 ShowDTO getProduct()
          return the product
 Integer getQuantity()
           
 Float getReductPrice()
           
 String getStatut()
           
 String getTypeName()
          Gets the type name.
 void setDate(String date)
          Sets the date.
 void setDateHour(Date theDateHour)
          Sets the date hour.
 void setDescription(String description)
          Sets the description.
 void setHour(String hour)
          Sets the hour.
 void setId(Integer idOffer)
          Sets the id.
 void setIdContact(Integer idContact)
          Set the contact
 void setIdGenre(Integer idGenre)
          Sets the id genre.
 void setInitialQuantity(Integer initialQuantity)
          Sets the initial quantity.
 void setName(String name)
          Sets the name.
 void setProduct(ShowDTO theProduct)
          set the product to product
 void setQuantity(Integer quantity)
          Sets the quantity.
 void setReductPrice(Float reductPrice)
          Sets the reduct price.
 void setStatut(String statut)
          Sets the statut.
 void setTypeName(String typeName)
          Sets the type name.
 
Methods inherited from class fr.paris.lutece.plugins.stock.commons.AbstractDTO
convertList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_DATE

public static final String ATTR_DATE
See Also:
Constant Field Values

ATTR_REDUCT_PRICE

public static final String ATTR_REDUCT_PRICE
See Also:
Constant Field Values

ATTR_HOUR

public static final String ATTR_HOUR
See Also:
Constant Field Values

ATTR_INIT_QUANTITY

public static final String ATTR_INIT_QUANTITY
See Also:
Constant Field Values

ATTR_ID_CONTACT

public static final String ATTR_ID_CONTACT
See Also:
Constant Field Values
Constructor Detail

SeanceDTO

public SeanceDTO()
Method Detail

getId

public Integer getId()
Specified by:
getId in class fr.paris.lutece.plugins.stock.commons.AbstractDTO<fr.paris.lutece.plugins.stock.business.offer.Offer>
Returns:
the id

setId

public void setId(Integer idOffer)
Sets the id.

Parameters:
idOffer - the new id

getDescription

public String getDescription()
Returns:
the description

setDescription

public void setDescription(String description)
Sets the description.

Parameters:
description - the description to set

getName

public String getName()
Returns:
the name

setName

public void setName(String name)
Sets the name.

Parameters:
name - the name to set

getReductPrice

public Float getReductPrice()
Returns:
the reductPrice

setReductPrice

public void setReductPrice(Float reductPrice)
Sets the reduct price.

Parameters:
reductPrice - the reductPrice to set

getQuantity

public Integer getQuantity()
Returns:
the quantity

setQuantity

public void setQuantity(Integer quantity)
Sets the quantity.

Parameters:
quantity - the quantity to set

getInitialQuantity

public Integer getInitialQuantity()
Returns:
the initial quantity

setInitialQuantity

public void setInitialQuantity(Integer initialQuantity)
Sets the initial quantity.

Parameters:
quantity - the quantity to set

getHour

public String getHour()
Returns:
the hour

setHour

public void setHour(String hour)
Sets the hour.

Parameters:
hour - the hour to set

getDate

public String getDate()
Returns:
the date

setDate

public void setDate(String date)
Sets the date.

Parameters:
date - the date to set

convertEntityList

public static fr.paris.lutece.plugins.stock.commons.ResultList<SeanceDTO> convertEntityList(Collection<fr.paris.lutece.plugins.stock.business.offer.Offer> listSource)
Convert entity list from database

Parameters:
listSource - the list source
Returns:
the result list

convertEntity

public static SeanceDTO convertEntity(fr.paris.lutece.plugins.stock.business.offer.Offer source)
Convert entity from database

Parameters:
source - the source
Returns:
the seance dto

convert

public fr.paris.lutece.plugins.stock.business.offer.Offer convert()
Convert an offer to database

Specified by:
convert in class fr.paris.lutece.plugins.stock.commons.AbstractDTO<fr.paris.lutece.plugins.stock.business.offer.Offer>
See Also:
AbstractDTO.convert()

setProduct

public void setProduct(ShowDTO theProduct)
set the product to product

Parameters:
theProduct - the product

getProduct

public ShowDTO getProduct()
return the product

Returns:
the product

setIdGenre

public void setIdGenre(Integer idGenre)
Sets the id genre.

Parameters:
idGenre - the new id genre

getIdGenre

public Integer getIdGenre()
Gets the id genre.

Returns:
the id genre

setTypeName

public void setTypeName(String typeName)
Sets the type name.

Parameters:
typeName - the new type name

getTypeName

public String getTypeName()
Gets the type name.

Returns:
the type name

setStatut

public void setStatut(String statut)
Sets the statut.

Parameters:
statut - the statut to set

getStatut

public String getStatut()
Returns:
the statut

getDateHour

public Date getDateHour()
Returns:
the dateHour

setDateHour

public void setDateHour(Date theDateHour)
Sets the date hour.

Parameters:
theDateHour - the dateHour to set

setIdContact

public void setIdContact(Integer idContact)
Set the contact

Parameters:
contact - the new contact to set

getIdContact

public Integer getIdContact()
Returns:
the contact


Copyright © 2014 Mairie de Paris. All Rights Reserved.