|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujoframework.extensions.AbstractUjo
org.ujoframework.implementation.quick.QuickUjo
org.ujoframework.implementation.quick.QuickUjoMid<UJO_IMPL>
public abstract class QuickUjoMid<UJO_IMPL extends QuickUjoMid>
This is a fast implementation of the UjoMiddle.
For implementation define only a "public static final UjoProperty" constants call a static method init() from the static block located after the latest property.
All properties must be objects (no primitive types) in the current version of UJO Framework.
Features: good performance, simple code.
import org.ujoframework.implementation.quick.*; public class Person extends QuickUjo { public static final UjoProperty<Person,String > NAME = newProperty(String.class); public static final UjoProperty<Person,Boolean> MALE = newProperty(Boolean.class); public static final UjoProperty<Person,Date > BIRTH = newProperty(Date.class); static { init(Person.class); } }
UjoMiddle,
Serialized Form| Constructor Summary | |
|---|---|
QuickUjoMid()
No parameters constuctor |
|
QuickUjoMid(java.lang.Object[] aData)
Constructor |
|
| Method Summary | ||
|---|---|---|
|
get(UjoProperty<UJO,VALUE> property)
Getter based on one UjoProperty |
|
java.lang.String |
getText(UjoProperty property)
Returns a String value by a NULL context. |
|
|
set(UjoProperty<UJO,VALUE> property,
VALUE value)
Setter based on UjoProperty. |
|
void |
setText(UjoProperty property,
java.lang.String value)
Set value from a String format by a NULL context. |
|
| Methods inherited from class org.ujoframework.implementation.quick.QuickUjo |
|---|
newListProperty, newListProperty, newProperty, newProperty, newProperty, newProperty, newProperty, newProperty, readValue, writeValue |
| Methods inherited from class org.ujoframework.extensions.AbstractUjo |
|---|
clone, equals, init, init, readAuthorization, readProperties, readUjoManager, readValueString, toString, writeValueString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ujoframework.Ujo |
|---|
readAuthorization, readProperties, readValue, writeValue |
| Constructor Detail |
|---|
public QuickUjoMid(java.lang.Object[] aData)
public QuickUjoMid()
| Method Detail |
|---|
public <UJO extends UJO_IMPL,VALUE> VALUE get(UjoProperty<UJO,VALUE> property)
get in interface UjoMiddle<UJO_IMPL extends QuickUjoMid>
public <UJO extends UJO_IMPL,VALUE> Ujo set(UjoProperty<UJO,VALUE> property,
VALUE value)
set in interface UjoMiddle<UJO_IMPL extends QuickUjoMid>public java.lang.String getText(UjoProperty property)
getText in interface UjoMiddle<UJO_IMPL extends QuickUjoMid>property - A Property
public void setText(UjoProperty property,
java.lang.String value)
setText in interface UjoMiddle<UJO_IMPL extends QuickUjoMid>property - Propertyvalue - String value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||