org.openxava.calculators
Class CounterByPassOidCalculator

java.lang.Object
  extended by org.openxava.calculators.CounterByPassOidCalculator
All Implemented Interfaces:
java.io.Serializable, IAggregateOidCalculator, ICalculator

public class CounterByPassOidCalculator
extends java.lang.Object
implements IAggregateOidCalculator

Author:
Javier Paniza
See Also:
Serialized Form

Constructor Summary
CounterByPassOidCalculator()
           
 
Method Summary
 java.lang.Object calculate()
           
 void setContainer(java.lang.Object contenedorKey)
          The container object of aggregate.
 void setCounter(int counter)
          A number that can be used to create the oid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CounterByPassOidCalculator

public CounterByPassOidCalculator()
Method Detail

setContainer

public void setContainer(java.lang.Object contenedorKey)
Description copied from interface: IAggregateOidCalculator
The container object of aggregate.

Specified by:
setContainer in interface IAggregateOidCalculator

setCounter

public void setCounter(int counter)
Description copied from interface: IAggregateOidCalculator
A number that can be used to create the oid.

Usually this is a sequential number

Specified by:
setCounter in interface IAggregateOidCalculator

calculate

public java.lang.Object calculate()
                           throws java.lang.Exception
Specified by:
calculate in interface ICalculator
Throws:
java.lang.Exception