| Constructor and Description |
|---|
AbstractMentaBean() |
AbstractMentaBean(BeanSession session)
You can inject the bean session through the constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete()
Attempt to delete a bean from the database.
|
BeanSession |
getBeanSession()
Return the bean session being used by this MentaBean.
|
void |
insert()
Attempt to insert a bean in the database.
|
boolean |
load()
Attempt to load the bean properties from the database.
|
int |
save(Object... forceNull)
Attempt to save a bean in the database.
|
void |
setBeanSession(BeanSession session)
You can inject the bean session through the setter.
|
boolean |
update()
Attempt to update the bean properties in the database.
|
boolean |
updateAll()
Attempt to update ALL the bean properties in the database, not just the ones that have been changed.
|
public AbstractMentaBean()
public AbstractMentaBean(BeanSession session)
session - the bean session to injectpublic void setBeanSession(BeanSession session)
session - the bean session to injectpublic BeanSession getBeanSession()
MentaBeangetBeanSession in interface MentaBeanpublic void insert()
MentaBeanpublic boolean load()
MentaBeanpublic boolean update()
MentaBeanpublic boolean updateAll()
MentaBeanpublic boolean delete()
MentaBeanpublic int save(Object... forceNull)
MentaBeansave in interface MentaBeanBeanSession.save(Object, Object...)Copyright © 2016. All Rights Reserved.