org.ujoframework.orm.sample
Class Item

java.lang.Object
  extended by org.ujoframework.extensions.AbstractUjo
      extended by org.ujoframework.implementation.quick.QuickUjo
          extended by org.ujoframework.implementation.orm.OrmTable<Item>
              extended by org.ujoframework.orm.sample.Item
All Implemented Interfaces:
UjoCloneable, UjoTextable, OrmUjo, Ujo

public class Item
extends OrmTable<Item>

The column mapping to DB table ITEM (a sample of usage). Note, that the Item object have got a reference to a Order object.


Field Summary
static UjoProperty<Item,java.util.Date> _ORDER_DATE
          A composed/indirect PATH property to a "date" attribute of the Order
static UjoProperty<Item,java.lang.String> DESCR
          Description of Item
static UjoProperty<Item,java.lang.Long> ID
          Unique key
static UjoProperty<Item,Order> ORDER
          A reference to common Order
static UjoProperty<Item,java.lang.Integer> USER_ID
          User key
 
Fields inherited from class org.ujoframework.implementation.quick.QuickUjo
data
 
Constructor Summary
Item()
           
 
Method Summary
 java.lang.String getDescr()
           
 java.lang.Long getId()
           
 Order getOrder()
           
 java.util.Date getOrderDate()
          Example of the composed PATH property
 java.lang.Integer getUsrId()
           
 void setDescr(java.lang.String descr)
           
 void setId(java.lang.Long id)
           
 void setOrder(Order descr)
           
 void setUsrId(java.lang.Integer usrId)
           
 
Methods inherited from class org.ujoframework.implementation.orm.OrmTable
get, newRelation, readAuthorization, readChangedProperties, readSession, readValue, set, writeSession, writeValue
 
Methods inherited from class org.ujoframework.implementation.quick.QuickUjo
newListProperty, newProperty, newProperty, newProperty, newProperty, newProperty, newProperty
 
Methods inherited from class org.ujoframework.extensions.AbstractUjo
clone, equals, init, init, 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
readProperties
 

Field Detail

ID

public static final UjoProperty<Item,java.lang.Long> ID
Unique key


USER_ID

public static final UjoProperty<Item,java.lang.Integer> USER_ID
User key


DESCR

public static final UjoProperty<Item,java.lang.String> DESCR
Description of Item


ORDER

public static final UjoProperty<Item,Order> ORDER
A reference to common Order


_ORDER_DATE

public static final UjoProperty<Item,java.util.Date> _ORDER_DATE
A composed/indirect PATH property to a "date" attribute of the Order

Constructor Detail

Item

public Item()
Method Detail

getId

public java.lang.Long getId()

setId

public void setId(java.lang.Long id)

getUsrId

public java.lang.Integer getUsrId()

setUsrId

public void setUsrId(java.lang.Integer usrId)

getDescr

public java.lang.String getDescr()

setDescr

public void setDescr(java.lang.String descr)

getOrder

public Order getOrder()

setOrder

public void setOrder(Order descr)

getOrderDate

public java.util.Date getOrderDate()
Example of the composed PATH property



Copyright © 2009. All Rights Reserved.