|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.taggercat.model.AbstractTCEntity
public abstract class AbstractTCEntity
The standard super class for all Tagger Cat entities. The undo functionality is also implemented in this class.
![]() |
![]() |
![]() |
![]() |
| Constructor Summary | |
|---|---|
AbstractTCEntity()
|
|
| Method Summary | |
|---|---|
void |
afterDelete(DataSource datasource)
Called after the entity is deleted. |
void |
afterInsert(DataSource datasource)
Called after the entity is inserted into the owning datasource. |
void |
afterSave(DataSource datasource)
Called after the entity is saved, but before the modified and newly inserted property flags are reset. |
void |
afterUpdate(DataSource datasource,
java.lang.String propertyName,
java.lang.Object newValue,
java.lang.Object oldValue)
Called after a property is modified |
void |
beforeSave(DataSource datasource)
Called prior to the entity being saved. |
void |
beforeUpdate(DataSource datasource,
java.lang.String propertyName,
java.lang.Object newValue,
java.lang.Object oldValue)
Called before a property is modified. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getEntityClassName()
Returns the entities the fully qualified entity class name; the name without the proxy name mangling. |
java.lang.String |
getEntityName()
Returns the entities unqualified name; the name without the package prefix. |
java.io.Serializable |
getIdentifier()
|
java.lang.String |
getIdentifierPropertyName()
|
boolean |
getNewlyInserted()
|
java.lang.Object |
getOldValue(java.lang.String propertyName)
Gets the property's old value, this can be the most recent value on the undo stack, or the unmodified value. |
java.lang.Object |
getOriginalValue(java.lang.String propertyName)
Gets the property's original value, this can be the first value on the undo stack, or the unmodified value if there is not a value on the undo stack. |
java.lang.String |
getPKHexCode()
Tagger Cat sets a temporary PKHexCode for any transient entity, Otherwise, it is the HEX Code representation of the primary key |
java.lang.String |
getPropertyStringValue(java.lang.String propertyName)
|
java.lang.Object |
getPropertyValue(java.lang.String propertyName)
|
java.lang.String |
getRowID()
Gets the rowID for this entity. |
java.lang.Object |
getUserValue(java.lang.String key)
Gets a user specified value. |
java.util.Map<java.lang.String,java.lang.Object> |
getUserValues()
Gets the user values Map. |
int |
hashCode()
|
boolean |
hasUndoValues()
Returns true if this entity has any changed values |
boolean |
isFullyMaterialized()
|
boolean |
isModified()
|
boolean |
isNewlyInserted()
|
boolean |
isPropertyNull(java.lang.String propertyName)
|
void |
pushOldValue(java.lang.String propertyName,
java.lang.Object value)
|
void |
setFullyMaterialized()
|
void |
setFullyMaterialized(boolean fullyMaterialized)
|
void |
setIdentifierPropertyName(java.lang.String identifierPropertyName)
Sets the name of the identifier property name. |
void |
setModified()
|
void |
setModified(boolean state)
|
void |
setNewlyInserted()
|
void |
setNewlyInserted(boolean newlyInserted)
|
void |
setPKHexCode(java.lang.String pkHexCode)
|
void |
setUserValue(java.lang.String key,
java.lang.Object value)
|
void |
undo(org.hibernate.metadata.ClassMetadata entityMetadata)
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractTCEntity()
| Method Detail |
|---|
public java.lang.Object getPropertyValue(java.lang.String propertyName)
getPropertyValue in interface TCEntitypublic java.lang.String getPropertyStringValue(java.lang.String propertyName)
getPropertyStringValue in interface TCEntitypublic boolean isPropertyNull(java.lang.String propertyName)
isPropertyNull in interface TCEntitypublic boolean isNewlyInserted()
isNewlyInserted in interface TCEntitypublic boolean getNewlyInserted()
getNewlyInserted in interface TCEntitypublic void setNewlyInserted()
setNewlyInserted in interface TCEntitypublic void setModified()
setModified in interface TCEntitypublic boolean isModified()
isModified in interface TCEntitypublic java.io.Serializable getIdentifier()
getIdentifier in interface TCEntitypublic boolean hasUndoValues()
hasUndoValues in interface TCEntitypublic void undo(org.hibernate.metadata.ClassMetadata entityMetadata)
undo in interface TCEntitypublic java.lang.Object getOldValue(java.lang.String propertyName)
TCEntity
getOldValue in interface TCEntitypublic java.lang.Object getOriginalValue(java.lang.String propertyName)
TCEntity
getOriginalValue in interface TCEntity
public void pushOldValue(java.lang.String propertyName,
java.lang.Object value)
pushOldValue in interface TCEntitypublic java.lang.String getPKHexCode()
getPKHexCode in interface TCEntitypublic java.lang.String getRowID()
getRowID in interface TCEntitypublic void setPKHexCode(java.lang.String pkHexCode)
setPKHexCode in interface TCEntitypublic void setModified(boolean state)
setModified in interface TCEntitypublic void setNewlyInserted(boolean newlyInserted)
setNewlyInserted in interface TCEntitypublic java.lang.Object getUserValue(java.lang.String key)
getUserValue in interface TCEntitykey - the key the value is saved underpublic java.util.Map<java.lang.String,java.lang.Object> getUserValues()
getUserValues in interface TCEntity
public void setUserValue(java.lang.String key,
java.lang.Object value)
setUserValue in interface TCEntity
public void beforeSave(DataSource datasource)
throws java.lang.Exception
TCEntity
beforeSave in interface TCEntityjava.lang.Exceptiondatasource - the data source
public void afterSave(DataSource datasource)
throws java.lang.Exception
TCEntity
afterSave in interface TCEntityjava.lang.Exceptiondatasource - the data source
public void beforeUpdate(DataSource datasource,
java.lang.String propertyName,
java.lang.Object newValue,
java.lang.Object oldValue)
throws PropertyValueException
TCEntity
beforeUpdate in interface TCEntityPropertyValueExceptiondatasource - the data source being updatedpropertyName - the name of the property that is being modifiednewValue - the new value being setoldValue - the old value being updated
public void afterUpdate(DataSource datasource,
java.lang.String propertyName,
java.lang.Object newValue,
java.lang.Object oldValue)
throws PropertyValueException
TCEntity
afterUpdate in interface TCEntityPropertyValueExceptiondatasource - the data source being updatedpropertyName - the name of the property that is being modifiednewValue - the new value being setoldValue - the old value being updated
public void afterDelete(DataSource datasource)
throws java.lang.Exception
TCEntity
afterDelete in interface TCEntityjava.lang.Exception
public void afterInsert(DataSource datasource)
throws java.lang.Exception
TCEntitydatasource.
This method is not called after inserting into the DB.
afterInsert in interface TCEntityjava.lang.Exceptionpublic java.lang.String getEntityClassName()
getEntityClassName in interface TCEntitypublic java.lang.String getEntityName()
getEntityName in interface TCEntitypublic java.lang.String getIdentifierPropertyName()
getIdentifierPropertyName in interface TCEntitypublic void setIdentifierPropertyName(java.lang.String identifierPropertyName)
TCEntity
setIdentifierPropertyName in interface TCEntityidentifierPropertyName - the identifierPropertyName to setpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean isFullyMaterialized()
public void setFullyMaterialized(boolean fullyMaterialized)
public void setFullyMaterialized()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||