|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PersistEntity
The base interface that all the interfaces specifying the accessor methods should extend This interface provides common methods for all the persist interfaces as well as a number of database related methods.
Method Summary | |
---|---|
void |
commit()
Commits all changes made to the object to the database. |
Object |
get(String fieldName)
Generic get method This method will return the value any named field in the record. |
Object |
getPrimaryKey()
Returns the primary key Note: This method is package scoped, as it should only be used internally in jLips. |
String |
getTableName()
Returns the name of the table this entity is related to |
void |
remove()
Removes the record from the database Note, that after this method has been called, the reference to the entity should be discarted. |
void |
rollback()
The changes made to the data since the last commit will be discarted |
void |
set(String fieldName,
Object value)
Generic set method This method will set the value of any named field in the record to the specified value |
Method Detail |
---|
Object getPrimaryKey()
void commit()
void rollback()
void remove()
EntityNotFoundException
Object get(String fieldName)
fieldName
- Fieldname to be returned
void set(String fieldName, Object value)
fieldName
- Fieldname to be modifiedvalue
- New field valueString getTableName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |