|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentabean.AbstractMentaBean
public abstract class AbstractMentaBean
A abstract implementation of the MentaBean interface. Your beans might choose to inherit from this class to be able to persist themselves.
| Constructor Summary | |
|---|---|
AbstractMentaBean()
|
|
AbstractMentaBean(BeanSession session)
You can inject the bean session through the constructor. |
|
| Method Summary | |
|---|---|
boolean |
delete()
Attempt to delete a bean from the database. |
BeanSession |
getBeanSession()
Return the bean session being used by this menta bean. |
void |
insert()
Attempt to insert a bean to the database. |
boolean |
load()
Attempt to load the bean properties from 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMentaBean()
public AbstractMentaBean(BeanSession session)
session - the bean session to inject| Method Detail |
|---|
public void setBeanSession(BeanSession session)
session - the bean session to injectpublic BeanSession getBeanSession()
MentaBean
getBeanSession in interface MentaBeanpublic void insert()
MentaBean
insert in interface MentaBeanpublic boolean load()
MentaBean
load in interface MentaBeanpublic boolean update()
MentaBean
update in interface MentaBeanpublic boolean updateAll()
MentaBean
updateAll in interface MentaBeanpublic boolean delete()
MentaBean
delete in interface MentaBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||