net.sourceforge.crudo.jsf.bean
Class CrudoController

java.lang.Object
  extended by net.sourceforge.crudo.jsf.bean.CrudoController
All Implemented Interfaces:
java.io.Serializable, ICrudoController
Direct Known Subclasses:
SinglePageCRUDBean

public abstract class CrudoController
extends java.lang.Object
implements ICrudoController

Author:
jorge This bean implements navigation, and web operations. This beans shouldn't implement database operations.
See Also:
Serialized Form

Field Summary
protected  java.lang.String className
           
protected  java.io.Serializable dto
           
protected  boolean editable
           
protected  ExtendedListDataModel model
           
protected  IPersistenceServiceLocator persistenceService
           
protected  UIInput uiinput
           
 
Fields inherited from interface net.sourceforge.crudo.jsf.bean.ICrudoController
CREATE_OPERATION, DELETE_OPERATION, DTO_BACUP_NAME, READ_OPERATION, UPDATE_OPERATION
 
Constructor Summary
CrudoController()
           
 
Method Summary
 void cancel(ActionEvent e)
           
 void choose(ActionEvent e)
           
 void create(ActionEvent e)
           
 void delete(ActionEvent e)
           
 java.lang.String getClassName()
           
 java.io.Serializable getDto()
           
 ExtendedListDataModel getModel()
           
 UIInput getUiinput()
           
 boolean isEditable()
           
 void preCreate(ActionEvent e)
           
 void preDelete(ActionEvent e)
           
 void preRead(ActionEvent e)
           
 void preUpdate(ActionEvent e)
           
 void read(ActionEvent e)
           
 void search(ActionEvent e)
           
 void setClassName(java.lang.String className)
           
 void setDto(java.io.Serializable dto)
           
 void setEditable(boolean editable)
           
 void setModel(ExtendedListDataModel model)
           
 void setUiinput(UIInput uiinput)
           
 void update(ActionEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

editable

protected boolean editable

uiinput

protected UIInput uiinput

dto

protected java.io.Serializable dto

className

protected java.lang.String className

model

protected ExtendedListDataModel model

persistenceService

protected IPersistenceServiceLocator persistenceService
Constructor Detail

CrudoController

public CrudoController()
Method Detail

create

public void create(ActionEvent e)
Specified by:
create in interface ICrudoController

read

public void read(ActionEvent e)
Specified by:
read in interface ICrudoController

update

public void update(ActionEvent e)
Specified by:
update in interface ICrudoController

delete

public void delete(ActionEvent e)
Specified by:
delete in interface ICrudoController

preCreate

public void preCreate(ActionEvent e)
Specified by:
preCreate in interface ICrudoController

preRead

public void preRead(ActionEvent e)
Specified by:
preRead in interface ICrudoController

preDelete

public void preDelete(ActionEvent e)
Specified by:
preDelete in interface ICrudoController

preUpdate

public void preUpdate(ActionEvent e)
Specified by:
preUpdate in interface ICrudoController

search

public void search(ActionEvent e)
Specified by:
search in interface ICrudoController

cancel

public void cancel(ActionEvent e)
Specified by:
cancel in interface ICrudoController

choose

public void choose(ActionEvent e)

isEditable

public boolean isEditable()
Specified by:
isEditable in interface ICrudoController

setEditable

public void setEditable(boolean editable)
Specified by:
setEditable in interface ICrudoController

getUiinput

public UIInput getUiinput()
Specified by:
getUiinput in interface ICrudoController

setUiinput

public void setUiinput(UIInput uiinput)
Specified by:
setUiinput in interface ICrudoController

getDto

public java.io.Serializable getDto()
Specified by:
getDto in interface ICrudoController

setDto

public void setDto(java.io.Serializable dto)
Specified by:
setDto in interface ICrudoController

getClassName

public java.lang.String getClassName()

setClassName

public void setClassName(java.lang.String className)

getModel

public ExtendedListDataModel getModel()
Specified by:
getModel in interface ICrudoController

setModel

public void setModel(ExtendedListDataModel model)