|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.empire.jsf2.pages.PageElement
org.apache.empire.jsf2.pageelements.RecordPageElement<T>
public class RecordPageElement<T extends DBRecord>
| Field Summary | |
|---|---|
protected T |
record
|
protected DBRowSet |
rowset
|
| Constructor Summary | |
|---|---|
RecordPageElement(Page page,
DBRowSet rowset,
T record,
String propertyName)
|
|
| Method Summary | |
|---|---|
boolean |
canReloadRecord(boolean newRecord)
return true if the record can be restored from the session. |
void |
closeRecord()
closes a record |
void |
createRecord()
creates a new record |
void |
deleteRecord()
deletes a record |
T |
getRecord()
|
String |
getRecordIdParam()
|
DBRowSet |
getRowSet()
|
void |
loadRecord(Object[] recKey)
loads the record identified by the supplied key from the database |
void |
loadRecord(String idParam)
loads an existing record |
protected void |
onInitPage()
|
void |
reloadRecord()
loads the record identified by the supplied key from the database |
boolean |
updateRecord()
updates or inserts the record in the database |
| Methods inherited from class org.apache.empire.jsf2.pages.PageElement |
|---|
getConnection, getConnection, getPage, getPropertyName, getSessionObject, onRefreshPage, removeSessionObject, setSessionObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DBRowSet rowset
protected T extends DBRecord record
| Constructor Detail |
|---|
public RecordPageElement(Page page,
DBRowSet rowset,
T record,
String propertyName)
| Method Detail |
|---|
public T getRecord()
public DBRowSet getRowSet()
public String getRecordIdParam()
protected void onInitPage()
onInitPage in class PageElementpublic boolean canReloadRecord(boolean newRecord)
newRecord - flag to detect session data for a new reaord otherwise for an existing record
public void reloadRecord()
public void loadRecord(Object[] recKey)
public void loadRecord(String idParam)
idParam - public void createRecord()
public boolean updateRecord()
public void deleteRecord()
public void closeRecord()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||