/*
 * 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.boot.internal;

import org.hibernate.CustomEntityDirtinessStrategy;
import org.hibernate.Session;
import org.hibernate.persister.entity.EntityPersister;

The default implementation of CustomEntityDirtinessStrategy which does nada.
Author:Steve Ebersole
/** * The default implementation of {@link org.hibernate.CustomEntityDirtinessStrategy} which does nada. * * @author Steve Ebersole */
public class DefaultCustomEntityDirtinessStrategy implements CustomEntityDirtinessStrategy { public static final DefaultCustomEntityDirtinessStrategy INSTANCE = new DefaultCustomEntityDirtinessStrategy(); @Override public boolean canDirtyCheck(Object entity, EntityPersister persister, Session session) { return false; } @Override public boolean isDirty(Object entity, EntityPersister persister, Session session) { return false; } @Override public void resetDirty(Object entity, EntityPersister persister, Session session) { } @Override public void findDirty( Object entity, EntityPersister persister, Session session, DirtyCheckContext dirtyCheckContext) { } }