Errai 3.0.1-SNAPSHOT

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

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

public class IntIdGenerator<X>
extends Object
implements ErraiIdGenerator<Integer>


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

Constructor Detail

IntIdGenerator

public IntIdGenerator(ErraiSingularAttribute<X,Integer> attr)
Method Detail

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>

Errai 3.0.1-SNAPSHOT

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