|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthibergui.Component<T>
hibergui.Form<T>
hibergui.hibernate.HibernateForm<T>
public abstract class HibernateForm<T>
| Field Summary | |
|---|---|
protected org.hibernate.Session |
session
|
protected org.hibernate.Transaction |
tx
|
| Fields inherited from class hibergui.Form |
|---|
fieldEditors, persistentClass |
| Fields inherited from class hibergui.Component |
|---|
lsn_WIDGET_FOCUS, lsn_WIDGET_KEY, style |
| Constructor Summary | |
|---|---|
HibernateForm(org.eclipse.swt.widgets.Composite parent,
int style)
|
|
| Method Summary | |
|---|---|
void |
commit()
Commits the recent changes on the storage. |
protected org.hibernate.Criteria |
createCriteria()
|
protected org.hibernate.Criteria |
createCriteriaByExample()
|
org.hibernate.criterion.Example |
createExample(java.lang.Object sample)
|
protected void |
delete(T object)
Deletes the business entity from the storage. |
protected java.util.List<T> |
findSuch()
Finds business entities similar to the entity extracted from the form. |
org.hibernate.Session |
getSession()
|
protected void |
init()
Initializes the component. |
void |
refresh()
Refreshes the form. |
void |
rollback()
Rolls back the recent changes on the storage. |
protected void |
save(T object)
Saves the business entity onto the storage. |
protected void |
update(T object)
Updates the business entity on the storage. |
| Methods inherited from class hibergui.Form |
|---|
addColumn, addMessageListener, apply, create, createButtons, createColumnsForTable, createContents, createFields, createTable, delete, dispose, extract, extract, fill, fill, get, getColumnText, getSelection, getSortDirection, getSortProperty, hasChanged, isDirty, isSearchMode, modify, refreshSelector, removeMessageListener, revoke, set, setFocus, setMessage, setMessage, setSearchMode, setWindowTitle, verify |
| Methods inherited from class hibergui.Component |
|---|
addChangeListener, addControlListener, addFocusListener, addKeyListener, fireChange, fireKeyPressed, fireKeyReleased, getControl, removeChangeListener, removeControlListener, removeFocusListener, removeKeyListener, setLayoutData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.hibernate.Session session
protected org.hibernate.Transaction tx
| Constructor Detail |
|---|
public HibernateForm(org.eclipse.swt.widgets.Composite parent,
int style)
| Method Detail |
|---|
protected void init()
Component
init in class Form<T>public org.hibernate.Session getSession()
public void commit()
Form
commit in class Form<T>public void rollback()
Form
rollback in class Form<T>protected void save(T object)
Form
save in class Form<T>object - the business entity to be savedprotected void update(T object)
Form
update in class Form<T>object - the business entity to be updatedprotected void delete(T object)
Form
delete in class Form<T>object - the business entity to be deletedpublic void refresh()
Form
refresh in class Form<T>protected java.util.List<T> findSuch()
Form
findSuch in class Form<T>protected org.hibernate.Criteria createCriteria()
protected org.hibernate.Criteria createCriteriaByExample()
public org.hibernate.criterion.Example createExample(java.lang.Object sample)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||