public class IntIdGenerator<X> extends Object implements ErraiIdGenerator<Integer>
Constructor and Description |
---|
IntIdGenerator(ErraiSingularAttribute<X,Integer> attr) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext(ErraiEntityManager entityManager)
We assume there is always the possibility to find another unused Integer value.
|
Integer |
next(ErraiEntityManager entityManager) |
public IntIdGenerator(ErraiSingularAttribute<X,Integer> attr)
public boolean hasNext(ErraiEntityManager entityManager)
hasNext
in interface ErraiIdGenerator<Integer>
public Integer next(ErraiEntityManager entityManager)
next
in interface ErraiIdGenerator<Integer>
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.