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