org.openxma.dsl.reference.xma.customeredit.server
Class CustomerEditGen

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.customeredit.server.CustomerEditGen
All Implemented Interfaces:
at.spardat.xma.mdl.Synchronization, at.spardat.xma.mdl.util.Descriptive
Direct Known Subclasses:
CustomerEdit

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

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

Author:
build

Field Summary
static short CustomerEditFormClass
          the unique typeId for the page CustomerEditForm
static short CustomerSearchFormClass
          the unique typeId for the page CustomerSearchForm
protected  java.lang.String mode
          the mode of the component
static short Page1Class
          the unique typeId for the page Page1
static short Page2Class
          the unique typeId for the page Page2
static short Page3Class
          the unique typeId for the page Page3
protected  java.lang.String selectedCustomerFirstName
          firstname of the selected customer
protected  java.lang.String selectedCustomerId
          the id of the selected customer
protected  java.lang.String selectedCustomerLastName
          lastname of the selected customer
 
Fields inherited from class org.openxma.dsl.platform.xma.SpringComponentServer
applicationContext
 
Fields inherited from class at.spardat.xma.component.Component
session_
 
Constructor Summary
CustomerEditGen(at.spardat.xma.session.XMASessionServer session, short id)
          Initializes the CustomerEditGen.
 
Method Summary
 CustomerView getCustomer()
          returns the customer
 java.util.Collection getCustomers()
          returns the customers
protected  java.lang.String getMode()
          the mode of the component
 java.lang.String getModelClass(short typeId)
          Gets the full classname for the given typeId of a page in this component.
 java.util.Collection getOrders()
          returns the orders
protected  at.spardat.xma.component.ComponentProperty[] getPropDes()
           
 java.lang.String getSelectedCustomerFirstName()
          firstname of the selected customer
 java.lang.String getSelectedCustomerId()
          the id of the selected customer
 java.lang.String getSelectedCustomerLastName()
          lastname of the selected customer
static java.lang.String getShortModelClass(short typeId)
          Gets the short classname for the given typeId of a page in this component.
 VODataView getVodata()
          returns the vodata
 void setCustomer(CustomerView customer)
          sets the customer
 void setCustomers(java.util.Collection customers)
          sets the customers
 void setMode(java.lang.String mode)
          the mode of the component
 void setOrders(java.util.Collection orders)
          sets the orders
protected  void setSelectedCustomerFirstName(java.lang.String selectedCustomerFirstName)
          firstname of the selected customer
protected  void setSelectedCustomerId(java.lang.String selectedCustomerId)
          the id of the selected customer
protected  void setSelectedCustomerLastName(java.lang.String selectedCustomerLastName)
          lastname of the selected customer
 void setVodata(VODataView vodata)
          sets the vodata
 
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, 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

mode

protected java.lang.String mode
the mode of the component


selectedCustomerId

protected java.lang.String selectedCustomerId
the id of the selected customer


selectedCustomerFirstName

protected java.lang.String selectedCustomerFirstName
firstname of the selected customer


selectedCustomerLastName

protected java.lang.String selectedCustomerLastName
lastname of the selected customer


CustomerSearchFormClass

public static final short CustomerSearchFormClass
the unique typeId for the page CustomerSearchForm

See Also:
Constant Field Values

CustomerEditFormClass

public static final short CustomerEditFormClass
the unique typeId for the page CustomerEditForm

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

Page3Class

public static final short Page3Class
the unique typeId for the page Page3

See Also:
Constant Field Values
Constructor Detail

CustomerEditGen

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

Parameters:
session - the XMASession, this CustomerEditGen belongs to.
id - the unique id of this CustomerEdit.
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

getMode

protected java.lang.String getMode()
the mode of the component


setMode

public void setMode(java.lang.String mode)
the mode of the component


getSelectedCustomerId

public java.lang.String getSelectedCustomerId()
the id of the selected customer


setSelectedCustomerId

protected void setSelectedCustomerId(java.lang.String selectedCustomerId)
the id of the selected customer


getSelectedCustomerFirstName

public java.lang.String getSelectedCustomerFirstName()
firstname of the selected customer


setSelectedCustomerFirstName

protected void setSelectedCustomerFirstName(java.lang.String selectedCustomerFirstName)
firstname of the selected customer


getSelectedCustomerLastName

public java.lang.String getSelectedCustomerLastName()
lastname of the selected customer


setSelectedCustomerLastName

protected void setSelectedCustomerLastName(java.lang.String selectedCustomerLastName)
lastname of the selected customer


getPropDes

protected at.spardat.xma.component.ComponentProperty[] getPropDes()
Overrides:
getPropDes in class at.spardat.xma.component.Component
Returns:
descriptors of the properties of this component

getCustomer

public CustomerView getCustomer()
returns the customer


setCustomer

public void setCustomer(CustomerView customer)
sets the customer


getCustomers

public java.util.Collection getCustomers()
returns the customers


setCustomers

public void setCustomers(java.util.Collection customers)
sets the customers


getOrders

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


setOrders

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


getVodata

public VODataView getVodata()
returns the vodata


setVodata

public void setVodata(VODataView vodata)
sets the vodata



Copyright © 2010. All Rights Reserved.