|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch6.complexPersistent.ComplexDataPersistent
public class ComplexDataPersistent
Annotate the bean so that advanced HTML form elements can be saved to a database.
The CollectionOfElements and IndexColumn annotations are used to save advanced HTML form elements to the database.
| Field Summary | |
|---|---|
protected java.lang.String |
comments
Variable for the textarea element. |
protected java.lang.String[] |
extra
Array for the checkbox group. |
protected double |
grade
Variable for the single-select list. |
protected int |
happiness
Variable for the radio group. |
protected java.lang.Long |
id
Primary key for the table. |
protected java.lang.String |
secretCode
Variable for the password element. |
protected java.lang.String[] |
team
Array for the multiple-select list. |
| Constructor Summary | |
|---|---|
ComplexDataPersistent()
Creates a new instance of RequestData |
|
| Method Summary | |
|---|---|
java.lang.String |
getComments()
Accessor for the textarea element. |
java.lang.String[] |
getExtra()
Accessor for the textarea element. |
double |
getGrade()
Mutator for the single-select list. |
int |
getHappiness()
Accessor for the radio group. |
java.lang.Long |
getId()
Accessor for the primary key for the table. |
java.lang.String |
getSecretCode()
Accessor for the password field. |
java.lang.String[] |
getTeam()
Accessor for the multiple-select list. |
void |
setComments(java.lang.String comments)
Mutator for the textarea element. |
void |
setExtra(java.lang.String[] extra)
Mutator for the textarea element. |
void |
setGrade(double grade)
Mutator for the single-select list. |
void |
setHappiness(int happiness)
Mutator for the radio group. |
protected void |
setId(java.lang.Long id)
Mutarator for the primary key. |
void |
setSecretCode(java.lang.String code)
Mutator for the password field. |
void |
setTeam(java.lang.String[] team)
Mutator for the multiple-select list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Long id
protected java.lang.String secretCode
protected int happiness
protected java.lang.String[] extra
protected java.lang.String comments
protected double grade
protected java.lang.String[] team
| Constructor Detail |
|---|
public ComplexDataPersistent()
| Method Detail |
|---|
public java.lang.Long getId()
Annotated with Id and GenerateValue
protected void setId(java.lang.Long id)
id - The idpublic void setSecretCode(java.lang.String code)
code - The element data from the requestpublic java.lang.String getSecretCode()
public void setHappiness(int happiness)
happiness - The element data from the requestpublic void setExtra(java.lang.String[] extra)
extra - The element data from the requestpublic void setComments(java.lang.String comments)
comments - The element data from the requestpublic java.lang.String getComments()
public void setGrade(double grade)
grade - The element data from the requestpublic void setTeam(java.lang.String[] team)
team - The element data from the requestpublic int getHappiness()
Use the SetByAttribute annotation with AttributeType.CHECKED to indicate that the HTML form element is initialised with the attribute Checked.
public double getGrade()
Use the SetByAttribute annotation with AttributeType.SELECTED to indicate that the HTML form element is initialised with the attribute Selected.
public java.lang.String[] getExtra()
Use the SetByAttribute annotation with AttributeType.CHECKED to indicate that the HTML form element is initialised with the attribute Checked.
Use the CollectionOfElements and IndexColumn annotations to indicate to Hibernate that this is a multiple-valued element that should have its own related table the database.
public java.lang.String[] getTeam()
Use the SetByAttribute annotation with AttributeType.SELECTED to indicate that the HTML form element is initialised with the attribute Selected.
Use the CollectionOfElements and IndexColumn annotations to indicate to Hibernate that this is a multiple-valued element that should have its own related table the database.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||