org.ujoframework.orm.sample
Class Order

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

public class Order
extends OrmTable<Order>

The column mapping to DB table ORDER (a sample of usage). Note, that the Order object has got an collection of Items.


Field Summary
static UjoProperty<Order,java.util.Date> CREATED
          Date of creation
static UjoProperty<Order,java.lang.String> DESCR
          Description of the order
static UjoProperty<Order,java.lang.Long> ID
          Unique key
static RelationToMany<Order,Item> ITEMS
          References to Itemsr
static UjoProperty<Order,java.lang.Integer> USER_ID
          User key
 
Fields inherited from class org.ujoframework.implementation.quick.QuickUjo
data
 
Constructor Summary
Order()
           
 
Method Summary
 java.util.Date getDate()
           
 java.lang.String getDescr()
           
 java.lang.Long getId()
           
 UjoIterator<Item> getItems()
           
 java.lang.Integer getUsrId()
           
 void setDate(java.util.Date date)
           
 void setDescr(java.lang.String descr)
           
 void setId(java.lang.Long id)
           
 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<Order,java.lang.Long> ID
Unique key


USER_ID

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


DESCR

public static final UjoProperty<Order,java.lang.String> DESCR
Description of the order


CREATED

public static final UjoProperty<Order,java.util.Date> CREATED
Date of creation


ITEMS

public static final RelationToMany<Order,Item> ITEMS
References to Itemsr

Constructor Detail

Order

public Order()
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)

getDate

public java.util.Date getDate()

setDate

public void setDate(java.util.Date date)

getItems

public UjoIterator<Item> getItems()


Copyright © 2009. All Rights Reserved.