001package io.ebean.bean;
002
003/**
004 * A callback that can be registered to fire on getter method calls.
005 * It's primary purpose is to automatically flush JDBC batch buffer.
006 */
007public interface PreGetterCallback {
008
009  /**
010   * Trigger the callback based on a getter on a property.
011   *
012   * @param propertyIndex The index of the property
013   */
014  void preGetterTrigger(int propertyIndex);
015}