Errai 3.0.1-SNAPSHOT

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

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

public class BigIntegerIdGenerator<X>
extends Object
implements ErraiIdGenerator<BigInteger>


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

Constructor Detail

BigIntegerIdGenerator

public BigIntegerIdGenerator(ErraiSingularAttribute<X,BigInteger> 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<BigInteger>
Returns:
true

next

public BigInteger next(ErraiEntityManager entityManager)
Specified by:
next in interface ErraiIdGenerator<BigInteger>

Errai 3.0.1-SNAPSHOT

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