|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openxava.calculators.IdentityCalculator
public class IdentityCalculator
To use identity database id generation.
An example of use:
<property name="id" key="true" type="int" hidden="true">
<default-value-calculator class="org.openxava.calculators.IdentityCalculator" on-create="true"/>
</property>
It does not work with EJB2. It works with Hibernate and EJB3 JPA.
| Constructor Summary | |
|---|---|
IdentityCalculator()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
calculate()
|
java.lang.String |
hbmGeneratorCode()
Returns the xml code to insert inside 'id' element in .hbml file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IdentityCalculator()
| Method Detail |
|---|
public java.lang.String hbmGeneratorCode()
IHibernateIdGeneratorCalculator
hbmGeneratorCode in interface IHibernateIdGeneratorCalculator
public java.lang.Object calculate()
throws java.lang.Exception
calculate in interface ICalculatorjava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||