com.cinecolombia.interfases.control.ejb.handlers
Class IngresarDatosComplejoEjbHandler

java.lang.Object
  |
  +--com.cinecolombia.interfases.control.ejb.handlers.StateHandlerSupport
        |
        +--com.cinecolombia.interfases.control.ejb.handlers.IngresarDatosComplejoEjbHandler
All Implemented Interfaces:
java.io.Serializable, StateHandler

public class IngresarDatosComplejoEjbHandler
extends StateHandlerSupport

ingresarDatosComplejo usecase: handler of user requests in the Services layer

Author:
CincoSOFT
See Also:
Serialized Form
Created:
Junio 2003

Field Summary
private  Debug debug
           
 
Fields inherited from class com.cinecolombia.interfases.control.ejb.handlers.StateHandlerSupport
machine
 
Constructor Summary
IngresarDatosComplejoEjbHandler()
           
 
Method Summary
private  void cargarConceptos(Model model, Interfases varInterfases)
          Método auxiliar para cargar conceptos de confitería y varios en el Model.
private  void cargarMediosDePago(Model model, Interfases varInterfases)
          Carga dela BD los medios de pago y los clasifica en el model como las parejas para "efectivo" y "tarjetas".
private  void evalFechasConsignacion(Model model, Interfases varInterfases)
          Calcula las fechas de consignacion que les corresponderían a todos los medios de pago del complejo contenido en un model.
private  void exportarArchivos(Interfases varInterfases, Complejo complejo, java.util.Date fechaExport)
          Método auxiliar que exporta archivos
 java.lang.Object perform(InterfasesEvent event)
          principal method that process a user request invoking Model EJBs methods
private  java.util.List performLIST(IngresarDatosComplejoEvent ev)
          Auxiliary method that processes an IngresarDatosComplejoEvent with LIST action.
private  java.util.List performTERMINAR(IngresarDatosComplejoEvent ev)
          Auxiliary method that processes an IngresarDatosComplejoEvent with TERMINAR action.
private  java.lang.String processProblem(java.lang.Exception e, java.lang.String messageEx)
          Método auxiliar que procesa problemas
private  void testBatchConceptos(Value value)
          Test para el servicio auxStoreConceptos.
 
Methods inherited from class com.cinecolombia.interfases.control.ejb.handlers.StateHandlerSupport
doEnd, doStart, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

private Debug debug
Constructor Detail

IngresarDatosComplejoEjbHandler

public IngresarDatosComplejoEjbHandler()
Method Detail

perform

public java.lang.Object perform(InterfasesEvent event)
                         throws InterfasesEventException
principal method that process a user request invoking Model EJBs methods

Specified by:
perform in interface StateHandler
Overrides:
perform in class StateHandlerSupport
Parameters:
event - request data
Returns:
answer to request
Throws:
InterfasesEventException

performLIST

private java.util.List performLIST(IngresarDatosComplejoEvent ev)
                            throws InterfasesEventException
Auxiliary method that processes an IngresarDatosComplejoEvent with LIST action.

Parameters:
ev - event of ingresarDatosComplejo usecase
Returns:
answer to request
Throws:
InterfasesEventException

performTERMINAR

private java.util.List performTERMINAR(IngresarDatosComplejoEvent ev)
                                throws InterfasesEventException
Auxiliary method that processes an IngresarDatosComplejoEvent with TERMINAR action.

Parameters:
ev - event of ingresarDatosComplejo usecase
Returns:
answer to request
Throws:
InterfasesEventException

exportarArchivos

private void exportarArchivos(Interfases varInterfases,
                              Complejo complejo,
                              java.util.Date fechaExport)
                       throws java.lang.Exception
Método auxiliar que exporta archivos

Parameters:
varInterfases - El EJB que da los servicios.
complejo - Un complejo.
fechaExport - Fecha de exportación.
java.lang.Exception

processProblem

private java.lang.String processProblem(java.lang.Exception e,
                                        java.lang.String messageEx)
Método auxiliar que procesa problemas

Parameters:
e - Exception
messageEx - Mensaje de la aplicación asociado a e
Returns:
Cadena que explica el problema, junto con un stacktrace

cargarConceptos

private void cargarConceptos(Model model,
                             Interfases varInterfases)
                      throws DAOException,
                             java.rmi.RemoteException
Método auxiliar para cargar conceptos de confitería y varios en el Model.

Parameters:
model - El model.
varInterfases - El EJB que proporciona el servicio.
DAOException
java.rmi.RemoteException

cargarMediosDePago

private void cargarMediosDePago(Model model,
                                Interfases varInterfases)
                         throws DAOException,
                                java.rmi.RemoteException
Carga dela BD los medios de pago y los clasifica en el model como las parejas para "efectivo" y "tarjetas".

DAOException
java.rmi.RemoteException

evalFechasConsignacion

private void evalFechasConsignacion(Model model,
                                    Interfases varInterfases)
                             throws DAOException,
                                    java.rmi.RemoteException
Calcula las fechas de consignacion que les corresponderían a todos los medios de pago del complejo contenido en un model.

Parameters:
model - El model en cuestión.
varInterfases - El EJB que dael servicio.
DAOException
java.rmi.RemoteException

testBatchConceptos

private void testBatchConceptos(Value value)
Test para el servicio auxStoreConceptos.