Errai 3.0.1-SNAPSHOT

org.jboss.errai.jpa.client.local
Class LongIdGenerator<X>

java.lang.Object
  extended by org.jboss.errai.jpa.client.local.LongIdGenerator<X>
All Implemented Interfaces:
ErraiIdGenerator<Long>

public class LongIdGenerator<X>
extends Object
implements ErraiIdGenerator<Long>


Constructor Summary
LongIdGenerator(ErraiSingularAttribute<X,Long> attr)
           
 
Method Summary
 boolean hasNext(ErraiEntityManager entityManager)
          We assume there is always the possibility to find another unused Long value.
 Long next(ErraiEntityManager entityManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongIdGenerator

public LongIdGenerator(ErraiSingularAttribute<X,Long> attr)
Method Detail

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>

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.