Package org.openxava.calculators
Class CounterByPassOidCalculator
- java.lang.Object
-
- 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
Constructors Constructor Description CounterByPassOidCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
setContainer
public void setContainer(java.lang.Object contenedorKey)
Description copied from interface:IAggregateOidCalculator
The container object of aggregate.- Specified by:
setContainer
in interfaceIAggregateOidCalculator
-
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 interfaceIAggregateOidCalculator
-
calculate
public java.lang.Object calculate() throws java.lang.Exception
- Specified by:
calculate
in interfaceICalculator
- Throws:
java.lang.Exception
-
-