org.hibernate.proxy.EntityNotFoundDelegate Java Examples

The following examples show how to use org.hibernate.proxy.EntityNotFoundDelegate. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SessionFactoryWrapper.java    From lemon with Apache License 2.0 4 votes vote down vote up
public EntityNotFoundDelegate getEntityNotFoundDelegate() {
    return sessionFactoryImplementor.getEntityNotFoundDelegate();
}
 
Example #2
Source File: SessionFactoryImpl.java    From cacheonix-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
public EntityNotFoundDelegate getEntityNotFoundDelegate() {
	return entityNotFoundDelegate;
}
 
Example #3
Source File: SessionFactoryDelegatingImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public EntityNotFoundDelegate getEntityNotFoundDelegate() {
	return delegate.getEntityNotFoundDelegate();
}
 
Example #4
Source File: SessionFactoryImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public EntityNotFoundDelegate getEntityNotFoundDelegate() {
	return sessionFactoryOptions.getEntityNotFoundDelegate();
}
 
Example #5
Source File: AbstractDelegatingSessionFactoryOptions.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public EntityNotFoundDelegate getEntityNotFoundDelegate() {
	return delegate.getEntityNotFoundDelegate();
}
 
Example #6
Source File: AbstractDelegatingSessionFactoryBuilder.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public T applyEntityNotFoundDelegate(EntityNotFoundDelegate entityNotFoundDelegate) {
	delegate.applyEntityNotFoundDelegate( entityNotFoundDelegate );
	return getThis();
}
 
Example #7
Source File: SessionFactoryOptionsBuilder.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public EntityNotFoundDelegate getEntityNotFoundDelegate() {
	return entityNotFoundDelegate;
}
 
Example #8
Source File: SessionFactoryOptionsBuilder.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
public void applyEntityNotFoundDelegate(EntityNotFoundDelegate entityNotFoundDelegate) {
	this.entityNotFoundDelegate = entityNotFoundDelegate;
}
 
Example #9
Source File: SessionFactoryBuilderImpl.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public SessionFactoryBuilder applyEntityNotFoundDelegate(EntityNotFoundDelegate entityNotFoundDelegate) {
	this.optionsBuilder.applyEntityNotFoundDelegate( entityNotFoundDelegate );
	return this;
}
 
Example #10
Source File: SessionFactoryOptions.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get the delegate for handling entity-not-found exception conditions.
 *
 * @return The specific EntityNotFoundDelegate to use,  May be {@code null}
 */
EntityNotFoundDelegate getEntityNotFoundDelegate();
 
Example #11
Source File: Configuration.java    From cacheonix-core with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Specify a user-supplied delegate to be used to handle scenarios where an entity could not be
 * located by specified id.  This is mainly intended for EJB3 implementations to be able to
 * control how proxy initialization errors should be handled...
 *
 * @param entityNotFoundDelegate The delegate to use
 */
public void setEntityNotFoundDelegate(EntityNotFoundDelegate entityNotFoundDelegate) {
	this.entityNotFoundDelegate = entityNotFoundDelegate;
}
 
Example #12
Source File: Configuration.java    From cacheonix-core with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Retrieve the user-supplied delegate to handle non-existent entity
 * scenarios.  May be null.
 *
 * @return The user-supplied delegate
 */
public EntityNotFoundDelegate getEntityNotFoundDelegate() {
	return entityNotFoundDelegate;
}
 
Example #13
Source File: Configuration.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Retrieve the user-supplied delegate to handle non-existent entity
 * scenarios.  May be null.
 *
 * @return The user-supplied delegate
 */
public EntityNotFoundDelegate getEntityNotFoundDelegate() {
	return entityNotFoundDelegate;
}
 
Example #14
Source File: SessionFactoryBuilder.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Names the {@link org.hibernate.proxy.EntityNotFoundDelegate} to be applied to the SessionFactory.  EntityNotFoundDelegate is a
 * strategy that accounts for different exceptions thrown between Hibernate and JPA when an entity cannot be found.
 *
 * @param entityNotFoundDelegate The delegate/strategy to use.
 *
 * @return {@code this}, for method chaining
 */
SessionFactoryBuilder applyEntityNotFoundDelegate(EntityNotFoundDelegate entityNotFoundDelegate);
 
Example #15
Source File: Configuration.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Specify a user-supplied delegate to be used to handle scenarios where an entity could not be
 * located by specified id.  This is mainly intended for EJB3 implementations to be able to
 * control how proxy initialization errors should be handled...
 *
 * @param entityNotFoundDelegate The delegate to use
 */
public void setEntityNotFoundDelegate(EntityNotFoundDelegate entityNotFoundDelegate) {
	this.entityNotFoundDelegate = entityNotFoundDelegate;
}
 
Example #16
Source File: SessionFactoryImplementor.java    From cacheonix-core with GNU Lesser General Public License v2.1 votes vote down vote up
public EntityNotFoundDelegate getEntityNotFoundDelegate(); 
Example #17
Source File: SessionFactoryImplementor.java    From lams with GNU General Public License v2.0 votes vote down vote up
EntityNotFoundDelegate getEntityNotFoundDelegate();