org.hibernate.jpa.event.internal.EmptyCallbackRegistryImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
JPMS Module-Info's for a few of the Jakarta Libraries just until they add them in themselves
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
*/
package org.hibernate.jpa.event.internal;
import org.hibernate.jpa.event.spi.Callback;
import org.hibernate.jpa.event.spi.CallbackType;
final class EmptyCallbackRegistryImpl implements CallbackRegistryImplementor {
@Override
public boolean hasRegisteredCallbacks(final Class entityClass, final CallbackType callbackType) {
return false;
}
@Override
public void preCreate(final Object entity) {
//no-op
}
@Override
public void postCreate(final Object entity) {
//no-op
}
@Override
public boolean preUpdate(final Object entity) {
return false;
}
@Override
public void postUpdate(final Object entity) {
//no-op
}
@Override
public void preRemove(final Object entity) {
//no-op
}
@Override
public void postRemove(final Object entity) {
//no-op
}
@Override
public boolean postLoad(final Object entity) {
return false;
}
@Override
public boolean hasPostCreateCallbacks(final Class entityClass) {
return false;
}
@Override
public boolean hasPostUpdateCallbacks(final Class entityClass) {
return false;
}
@Override
public boolean hasPostRemoveCallbacks(final Class entityClass) {
return false;
}
@Override
public boolean hasRegisteredCallbacks(final Class entityClass, final Class annotationClass) {
return false;
}
@Override
public void release() {
//no-op
}
@Override
public void registerCallbacks(Class entityClass, Callback[] callbacks) {
//no-op
}
}