T
- type of entitypublic abstract class AbstractBaseBean<T> extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ENTITY_CLASS_TO_LOAD |
static String |
ENTITY_REQUEST_TO_LOAD |
Constructor and Description |
---|
AbstractBaseBean() |
Modifier and Type | Method and Description |
---|---|
void |
create()
Creates a new entity instance
|
void |
createDataModel()
Creates a LazyDataModelImpl to entity
|
void |
delete()
This method will delete the current entity calling "bo.delete()":
calls "preDelete()"
calls "getBO().delete"
calls "postDelete()" if deletion is successful
|
T |
findById(Object id) |
abstract AbstractBusinessObject |
getBO() |
BaseDAO<T> |
getDAO() |
LazyDataModelImpl<T> |
getDataModel() |
JoinBuilder |
getDataModelJoinBuilder() |
LazyCountType |
getDataModelLazyCountType() |
abstract String |
getDataModelOrder() |
List<Restriction> |
getDataModelRestrictions() |
String |
getDialog() |
T |
getEntity() |
Class |
getEntityClass() |
T |
getEntityNewInstance() |
String |
getEntitySimpleName() |
FilterByHandler |
getFilterByHandler() |
Object |
getId() |
OrderByHandler |
getOrderByHandler() |
String |
getOutcome()
return a String representation of an outocome page
|
void |
init()
Called after "@PostConstruct"
|
boolean |
isForceReloadEntity()
Verify if entity must be reloaded
|
boolean |
isLoadEntityOnPostConstruct() |
void |
loadEntityFromParameter()
Load the entity from parameter "id"
|
void |
loadEntityFromRequestParameter()
Load the entity from request map
|
void |
postConstruct()
Method called on "@PostConstruct" event
Try to get the entity from request map.
|
void |
postDelete()
Called after "delete()" and "remove()" methods (only if deletion is
successful)
|
void |
postSave()
Method called after asve entity (only if save is successful)
|
void |
preDelete()
Called before "delete()" and "remove()" methods
|
void |
preSave()
Method called before save entity
|
void |
putEntityInRequest()
put a entity in request map
|
void |
reloadEntity()
Reload a entity calling "dao.find(id)"
|
void |
remove()
This method will delete the current entity calling "bo.remove()":
calls "preDelete()"
calls "getBO().remove"
calls "postDelete()" if deletion is successful
|
void |
save()
Persists entity:
calls "preSave()"
calls " getBO().save()"
calls "postSave()"
close dialog (if is defined)
|
void |
setDataModel(LazyDataModelImpl<T> dataModel) |
void |
setDialog(String dialog) |
void |
setEntity(T entity) |
void |
setForceReloadEntity(boolean forceReloadEntity) |
void |
setId(Object id) |
void |
setLoadEntityOnPostConstruct(boolean loadEntityOnPostConstruct) |
void |
setOutcome(String outcome) |
public static final String ENTITY_REQUEST_TO_LOAD
public static final String ENTITY_CLASS_TO_LOAD
public abstract AbstractBusinessObject getBO()
public abstract String getDataModelOrder()
public OrderByHandler getOrderByHandler()
public JoinBuilder getDataModelJoinBuilder()
public FilterByHandler getFilterByHandler()
public void init()
@PostConstruct public void postConstruct()
public void putEntityInRequest()
public void loadEntityFromRequestParameter()
public void loadEntityFromParameter()
public void save()
public List<Restriction> getDataModelRestrictions()
public void preSave()
public void postSave()
public void create()
public Class getEntityClass()
public T getEntityNewInstance()
public void createDataModel()
public void delete()
public void remove()
public void reloadEntity()
public LazyCountType getDataModelLazyCountType()
public String getEntitySimpleName()
public void preDelete()
public void postDelete()
public String getDialog()
public void setDialog(String dialog)
public Object getId()
public void setId(Object id)
public LazyDataModelImpl<T> getDataModel()
public void setDataModel(LazyDataModelImpl<T> dataModel)
public T getEntity()
public void setEntity(T entity)
public boolean isLoadEntityOnPostConstruct()
public void setLoadEntityOnPostConstruct(boolean loadEntityOnPostConstruct)
public String getOutcome()
public void setOutcome(String outcome)
public boolean isForceReloadEntity()
public void setForceReloadEntity(boolean forceReloadEntity)
Copyright © 2015. All rights reserved.