Package org.openxava.calculators
Class CounterByPassOidCalculator
java.lang.Object
org.openxava.calculators.CounterByPassOidCalculator
- All Implemented Interfaces:
Serializable,IAggregateOidCalculator,ICalculator
- Author:
- Javier Paniza
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetContainer(Object contenedorKey) The container object of aggregate.voidsetCounter(int counter) A number that can be used to create the oid.
-
Constructor Details
-
CounterByPassOidCalculator
public CounterByPassOidCalculator()
-
-
Method Details
-
setContainer
Description copied from interface:IAggregateOidCalculatorThe container object of aggregate.- Specified by:
setContainerin interfaceIAggregateOidCalculator
-
setCounter
public void setCounter(int counter) Description copied from interface:IAggregateOidCalculatorA number that can be used to create the oid.Usually this is a sequential number
- Specified by:
setCounterin interfaceIAggregateOidCalculator
-
calculate
- Specified by:
calculatein interfaceICalculator- Throws:
Exception
-