org.apache.empire.jsf2.pageelements
Class RecordPageElement<T extends DBRecord>

java.lang.Object
  extended by org.apache.empire.jsf2.pages.PageElement
      extended by org.apache.empire.jsf2.pageelements.RecordPageElement<T>
All Implemented Interfaces:
Serializable

public class RecordPageElement<T extends DBRecord>
extends PageElement

See Also:
Serialized Form

Field Summary
protected  T record
           
protected  DBRowSet rowset
           
 
Constructor Summary
RecordPageElement(Page page, DBRowSet rowset, T record, String propertyName)
           
 
Method Summary
 void createRecord()
          creates a new 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
 
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

rowset

protected DBRowSet rowset

record

protected T extends DBRecord record
Constructor Detail

RecordPageElement

public RecordPageElement(Page page,
                         DBRowSet rowset,
                         T record,
                         String propertyName)
Method Detail

getRecord

public T getRecord()

getRowSet

public DBRowSet getRowSet()

onInitPage

protected void onInitPage()
Overrides:
onInitPage in class PageElement

reloadRecord

public void reloadRecord()
loads the record identified by the supplied key from the database


loadRecord

public void loadRecord(Object[] recKey)
loads the record identified by the supplied key from the database


createRecord

public void createRecord()
creates a new record


loadRecord

public void loadRecord(String idParam)
loads an existing record

Parameters:
idParam -

getRecordIdParam

public String getRecordIdParam()


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.