org.openxma.dsl.reference.xma.order.server
Class OrderGen

java.lang.Object
  extended by at.spardat.xma.component.Component
      extended by at.spardat.xma.component.ComponentServer
          extended by org.openxma.dsl.platform.xma.DslComponentServer
              extended by org.openxma.dsl.platform.xma.SpringComponentServer
                  extended by org.openxma.dsl.reference.xma.order.server.OrderGen
All Implemented Interfaces:
at.spardat.xma.mdl.Synchronization, at.spardat.xma.mdl.util.Descriptive
Direct Known Subclasses:
Order

public abstract class OrderGen
extends org.openxma.dsl.platform.xma.SpringComponentServer

This class implements the generic server part of Order. It provides the mapping between typeIds and classnames of all pages in the component.

Author:
build

Field Summary
static short OrderEditFormClass
          the unique typeId for the page OrderEditForm
static short OrderSearchFormClass
          the unique typeId for the page OrderSearchForm
static short Page1Class
          the unique typeId for the page Page1
static short Page2Class
          the unique typeId for the page Page2
 
Fields inherited from class org.openxma.dsl.platform.xma.SpringComponentServer
applicationContext
 
Fields inherited from class at.spardat.xma.component.Component
session_
 
Constructor Summary
OrderGen(at.spardat.xma.session.XMASessionServer session, short id)
          Initializes the OrderGen.
 
Method Summary
 CustomerView getCustomer()
          returns the customer
 java.lang.String getModelClass(short typeId)
          Gets the full classname for the given typeId of a page in this component.
 OrderStateView getOrder()
          returns the order
 java.util.Collection getOrderItems()
          returns the orderItems
 java.util.Collection getOrders()
          returns the orders
static java.lang.String getShortModelClass(short typeId)
          Gets the short classname for the given typeId of a page in this component.
 void setCustomer(CustomerView customer)
          sets the customer
 void setOrder(OrderStateView order)
          sets the order
 void setOrderItems(java.util.Collection orderItems)
          sets the orderItems
 void setOrders(java.util.Collection orders)
          sets the orders
 
Methods inherited from class org.openxma.dsl.platform.xma.SpringComponentServer
getBean, getWebApplicationContext, newPageModel
 
Methods inherited from class org.openxma.dsl.platform.xma.DslComponentServer
instanceDataToModel, modelToInstanceData
 
Methods inherited from class at.spardat.xma.component.ComponentServer
cleanUpAfterServerEvent, convertToBaseException, dispose, estimateMemory, executeRemoteCall, executeRemoteCallImpl, externalize, getSession, internalize, registerServerPage, removePageModel
 
Methods inherited from class at.spardat.xma.component.Component
commit, describe, externalizePageSet, externalizeProperties, getId, getName, getNumPageModels, getPageModel, getPageModels, getPropDes, getPropDes, getSCN, incrementSCN, internalizePageSet, internalizeProperties, isPageModelAlive, isStateless, model2props, props2model, registerPageModel, rollback, setId, setSCN, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OrderSearchFormClass

public static final short OrderSearchFormClass
the unique typeId for the page OrderSearchForm

See Also:
Constant Field Values

OrderEditFormClass

public static final short OrderEditFormClass
the unique typeId for the page OrderEditForm

See Also:
Constant Field Values

Page1Class

public static final short Page1Class
the unique typeId for the page Page1

See Also:
Constant Field Values

Page2Class

public static final short Page2Class
the unique typeId for the page Page2

See Also:
Constant Field Values
Constructor Detail

OrderGen

public OrderGen(at.spardat.xma.session.XMASessionServer session,
                short id)
Initializes the OrderGen. This method is called by the XMA-Runtime.

Parameters:
session - the XMASession, this OrderGen belongs to.
id - the unique id of this Order.
Method Detail

getShortModelClass

public static java.lang.String getShortModelClass(short typeId)
Gets the short classname for the given typeId of a page in this component. The short classname does not contain the package.

Parameters:
typeId - the unique typeId
Returns:
the short classname

getModelClass

public java.lang.String getModelClass(short typeId)
Gets the full classname for the given typeId of a page in this component.

Specified by:
getModelClass in class at.spardat.xma.component.Component
Parameters:
typeId - the unique typeId
Returns:
the full classname

getOrder

public OrderStateView getOrder()
returns the order


setOrder

public void setOrder(OrderStateView order)
sets the order


getOrders

public java.util.Collection getOrders()
returns the orders


setOrders

public void setOrders(java.util.Collection orders)
sets the orders


getOrderItems

public java.util.Collection getOrderItems()
returns the orderItems


setOrderItems

public void setOrderItems(java.util.Collection orderItems)
sets the orderItems


getCustomer

public CustomerView getCustomer()
returns the customer


setCustomer

public void setCustomer(CustomerView customer)
sets the customer



Copyright © 2010. All Rights Reserved.