Open Source Repository

Home /hibernate/hibernate-3.2.7.ga | Repository Home


org/hibernate/id/enhanced/AccessCallback.java
package org.hibernate.id.enhanced;

/**
 * Contract for providing callback access to a {@link DatabaseStructure},
 * typically from the {@link Optimizer}.
 *
 @author Steve Ebersole
 */
public interface AccessCallback {
  /**
   * Retrieve the next value from the underlying source.
   *
   @return The next value.
   */
  public long getNextValue();
}