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