|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.GrouperAPI
public abstract class GrouperAPI
Base Grouper API class.
Field Summary | |
---|---|
static java.lang.String |
COLUMN_HIBERNATE_VERSION_NUMBER
column |
static java.lang.String |
FIELD_DB_VERSION
field name for db version |
static java.lang.String |
FIELD_HIBERNATE_VERSION_NUMBER
constant name of field (and javabean property) for hibernateVersion |
static long |
INITIAL_VERSION_NUMBER
|
Fields inherited from interface org.hibernate.classic.Lifecycle |
---|
NO_VETO, VETO |
Constructor Summary | |
---|---|
GrouperAPI()
|
Method Summary | |
---|---|
abstract GrouperAPI |
clone()
deep clone the fields in this object |
java.lang.Object |
dbVersion()
version of this object in the database |
void |
dbVersionClear()
set to null (e.g. on delete) |
java.util.Set<java.lang.String> |
dbVersionDifferentFields()
see which fields have changed compared to the DB state (last known) note that attributes will print out: attribute__attributeName |
boolean |
dbVersionIsDifferent()
see if the state of this object has changed compared to the DB state (last known) |
void |
dbVersionReset()
take a snapshot of the data since this is what is in the db |
java.lang.Object |
fieldValue(java.lang.String fieldName)
call this method to get the field value (e.g. from dbVersionDifferentFields). |
java.lang.Long |
getHibernateVersionNumber()
hibernate increments with each insert/update (-1 means insert, 0+ means update, null means 0) |
boolean |
onDelete(org.hibernate.Session s)
|
void |
onLoad(org.hibernate.Session s,
java.io.Serializable id)
|
void |
onPostDelete(HibernateSession hibernateSession)
after a delete occurs |
void |
onPostSave(HibernateSession hibernateSession)
after a save (insert) occurs |
void |
onPostUpdate(HibernateSession hibernateSession)
after an update occurs |
void |
onPreDelete(HibernateSession hibernateSession)
before a delete (insert) occurs |
void |
onPreSave(HibernateSession hibernateSession)
before a save (insert) occurs |
void |
onPreUpdate(HibernateSession hibernateSession)
before an update occurs |
boolean |
onSave(org.hibernate.Session s)
|
boolean |
onUpdate(org.hibernate.Session s)
|
void |
setHibernateVersionNumber(java.lang.Long hibernateVersionNumber)
hibernate increments with each insert/update (-1 means insert, 0+ means update, null means 0) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long INITIAL_VERSION_NUMBER
public static final java.lang.String COLUMN_HIBERNATE_VERSION_NUMBER
public static final java.lang.String FIELD_DB_VERSION
public static final java.lang.String FIELD_HIBERNATE_VERSION_NUMBER
Constructor Detail |
---|
public GrouperAPI()
Method Detail |
---|
public java.lang.Object fieldValue(java.lang.String fieldName)
fieldValue
in interface GrouperUtil.FieldValuable
fieldName
-
public java.lang.Object dbVersion()
public boolean dbVersionIsDifferent()
public java.util.Set<java.lang.String> dbVersionDifferentFields()
public void dbVersionReset()
public void dbVersionClear()
public boolean onDelete(org.hibernate.Session s) throws org.hibernate.CallbackException
onDelete
in interface org.hibernate.classic.Lifecycle
org.hibernate.CallbackException
Lifecycle.onDelete(org.hibernate.Session)
public void onLoad(org.hibernate.Session s, java.io.Serializable id)
onLoad
in interface org.hibernate.classic.Lifecycle
Lifecycle.onLoad(org.hibernate.Session, java.io.Serializable)
public void onPostDelete(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostDelete
in interface HibGrouperLifecycle
HibGrouperLifecycle.onPostDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPostSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostSave
in interface HibGrouperLifecycle
HibGrouperLifecycle.onPostSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPostUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPostUpdate
in interface HibGrouperLifecycle
HibGrouperLifecycle.onPostUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPreDelete(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreDelete
in interface HibGrouperLifecycle
HibGrouperLifecycle.onPreDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPreSave(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreSave
in interface HibGrouperLifecycle
HibGrouperLifecycle.onPreSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public void onPreUpdate(HibernateSession hibernateSession)
HibGrouperLifecycle
onPreUpdate
in interface HibGrouperLifecycle
HibGrouperLifecycle.onPreUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)
public boolean onSave(org.hibernate.Session s) throws org.hibernate.CallbackException
onSave
in interface org.hibernate.classic.Lifecycle
org.hibernate.CallbackException
Lifecycle.onSave(org.hibernate.Session)
public boolean onUpdate(org.hibernate.Session s) throws org.hibernate.CallbackException
onUpdate
in interface org.hibernate.classic.Lifecycle
org.hibernate.CallbackException
Lifecycle.onUpdate(org.hibernate.Session)
public abstract GrouperAPI clone()
clone
in interface GrouperCloneable
clone
in class java.lang.Object
Object.clone()
public java.lang.Long getHibernateVersionNumber()
public void setHibernateVersionNumber(java.lang.Long hibernateVersionNumber)
hibernateVersionNumber
- the hibernateVersion to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |