/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* Copyright (c) 2008, 2013, Red Hat Inc. or third-party contributors as
* indicated by the @author tags or express copyright attribution
* statements applied by the authors. All third-party contributions are
* distributed under license by Red Hat Inc.
*
* This copyrighted material is made available to anyone wishing to use, modify,
* copy, or redistribute it subject to the terms and conditions of the GNU
* Lesser General Public License, as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this distribution; if not, write to:
* Free Software Foundation, Inc.
* 51 Franklin Street, Fifth Floor
* Boston, MA 02110-1301 USA
*/
package org.hibernate.id.enhanced;
import org.hibernate.id.IntegralDataTypeHolder;
Contract for providing callback access to a DatabaseStructure
, typically from the Optimizer
. Author: Steve Ebersole
/**
* 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.
Returns: The next value.
/**
* Retrieve the next value from the underlying source.
*
* @return The next value.
*/
public IntegralDataTypeHolder getNextValue();
Obtain the tenant identifier (multi-tenancy), if one, associated with this callback.
Returns: The tenant identifier
/**
* Obtain the tenant identifier (multi-tenancy), if one, associated with this callback.
*
* @return The tenant identifier
*/
public String getTenantIdentifier();
}