org.jboss.errai.jpa.client.local
Class IntIdGenerator<X>
java.lang.Object
org.jboss.errai.jpa.client.local.IntIdGenerator<X>
- All Implemented Interfaces:
- ErraiIdGenerator<Integer>
public class IntIdGenerator<X>
- extends Object
- implements ErraiIdGenerator<Integer>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntIdGenerator
public IntIdGenerator(ErraiSingularAttribute<X,Integer> attr)
hasNext
public boolean hasNext(ErraiEntityManager entityManager)
- We assume there is always the possibility to find another unused Integer value.
- Specified by:
hasNext
in interface ErraiIdGenerator<Integer>
- Returns:
- true
next
public Integer next(ErraiEntityManager entityManager)
- Specified by:
next
in interface ErraiIdGenerator<Integer>
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.