org.opencrx.kernel.backend
Class Forecasts

java.lang.Object
  extended by org.opencrx.kernel.backend.AbstractImpl
      extended by org.opencrx.kernel.backend.Forecasts

public class Forecasts
extends AbstractImpl


Field Summary
static short VALUE_TYPE_AMOUNT
           
static short VALUE_TYPE_BASE_AMOUNT
           
static short VALUE_TYPE_DISCOUNT_AMOUNT
           
static short VALUE_TYPE_NA
           
static short VALUE_TYPE_PRICE_PER_UNIT
           
 
Constructor Summary
protected Forecasts()
           
 
Method Summary
 Segment getForecastSegment(javax.jdo.PersistenceManager pm, String providerName, String segmentName)
           
static Forecasts getInstance()
           
 void recalcBudget(SalesVolumeBudget budget)
           
static void register()
           
 void updateBudget(AbstractBudget budget)
          Invoked by jdoPreStore() can be overriden by custom-specific extension.
 
Methods inherited from class org.opencrx.kernel.backend.AbstractImpl
getInstance, getUidAsString, registerImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALUE_TYPE_NA

public static final short VALUE_TYPE_NA
See Also:
Constant Field Values

VALUE_TYPE_BASE_AMOUNT

public static final short VALUE_TYPE_BASE_AMOUNT
See Also:
Constant Field Values

VALUE_TYPE_AMOUNT

public static final short VALUE_TYPE_AMOUNT
See Also:
Constant Field Values

VALUE_TYPE_DISCOUNT_AMOUNT

public static final short VALUE_TYPE_DISCOUNT_AMOUNT
See Also:
Constant Field Values

VALUE_TYPE_PRICE_PER_UNIT

public static final short VALUE_TYPE_PRICE_PER_UNIT
See Also:
Constant Field Values
Constructor Detail

Forecasts

protected Forecasts()
Method Detail

register

public static void register()

getInstance

public static Forecasts getInstance()
                             throws ServiceException
Throws:
ServiceException

getForecastSegment

public Segment getForecastSegment(javax.jdo.PersistenceManager pm,
                                  String providerName,
                                  String segmentName)
Returns:
Returns the forecast segment.

updateBudget

public void updateBudget(AbstractBudget budget)
                  throws ServiceException
Invoked by jdoPreStore() can be overriden by custom-specific extension.

Throws:
ServiceException

recalcBudget

public void recalcBudget(SalesVolumeBudget budget)
                  throws ServiceException
Throws:
ServiceException


This software is published under the BSD license. Copyright © 2003-2012, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.