|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.db.BasicDBListener
public class BasicDBListener
This class is an default implementation of DBListener.
Field Summary | |
---|---|
static String |
REVISION
|
Constructor Summary | |
---|---|
BasicDBListener()
|
Method Summary | |
---|---|
Date |
getAdateFromState(Object[] state)
Returns the adate from the given hibernate state. |
String |
getAuthorIdFromState(Object[] state)
Returns the authorId from the given hibernate state. |
Date |
getCdateFromState(Object[] state)
Returns the cdate from the given hibernate state. |
Date |
getEdateFromState(Object[] state)
Returns the edate from the given hibernate state. |
Date |
getMdateFromState(Object[] state)
Returns the mdate from the given hibernate state. |
Date |
getPdateFromState(Object[] state)
Returns the pdate from the given hibernate state. |
int |
getPrePstatus(org.hibernate.event.PostUpdateEvent event)
Returns the pstatus from the given PostUpdateEvent. |
int |
getPrePstatus(org.hibernate.event.PreUpdateEvent event)
Returns the pstatus from the given PreUpdateEvent. |
int |
getPstatusFromState(Object[] state)
Returns the pstatus from the given hibernate state. |
boolean |
hasNoChange(org.hibernate.event.PostUpdateEvent event)
|
boolean |
hasNoChange(org.hibernate.event.PreUpdateEvent event)
|
boolean |
init(Plugin plugin)
Initialize the component with the given plugin configuration |
void |
onPostDelete(DBData data,
org.hibernate.event.PostDeleteEvent event,
boolean firstTime)
|
void |
onPostInsert(DBData data,
org.hibernate.event.PostInsertEvent event,
boolean firstTime)
|
void |
onPostUpdate(DBData data,
org.hibernate.event.PostUpdateEvent event,
boolean firstTime)
|
void |
onPreUpdate(DBData data,
org.hibernate.event.PreUpdateEvent event)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
Constructor Detail |
---|
public BasicDBListener()
Method Detail |
---|
public boolean init(Plugin plugin)
PluginComponent
init
in interface PluginComponent
plugin
- the calling plugin
PluginComponent.init(Plugin)
public void onPostInsert(DBData data, org.hibernate.event.PostInsertEvent event, boolean firstTime)
onPostInsert
in interface DBListener
DBListener.onPostInsert(DBData, PostInsertEvent, boolean)
public void onPreUpdate(DBData data, org.hibernate.event.PreUpdateEvent event)
onPreUpdate
in interface DBListener
DBListener.onPreUpdate(DBData, PreUpdateEvent)
public void onPostUpdate(DBData data, org.hibernate.event.PostUpdateEvent event, boolean firstTime)
onPostUpdate
in interface DBListener
DBListener.onPostUpdate(DBData, PostUpdateEvent, boolean)
public void onPostDelete(DBData data, org.hibernate.event.PostDeleteEvent event, boolean firstTime)
onPostDelete
in interface DBListener
DBListener.onPostDelete(DBData, PostDeleteEvent, boolean)
public boolean hasNoChange(org.hibernate.event.PreUpdateEvent event)
public boolean hasNoChange(org.hibernate.event.PostUpdateEvent event)
public Date getCdateFromState(Object[] state)
state
- the state
public Date getMdateFromState(Object[] state)
state
- the state
public String getAuthorIdFromState(Object[] state)
state
- the state
public int getPstatusFromState(Object[] state)
state
- the state
public Date getPdateFromState(Object[] state)
state
- the state
public Date getEdateFromState(Object[] state)
state
- the state
public Date getAdateFromState(Object[] state)
state
- the state
public int getPrePstatus(org.hibernate.event.PreUpdateEvent event)
event
- the event
public int getPrePstatus(org.hibernate.event.PostUpdateEvent event)
event
- the event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |