Top Fields Constructors Methods
org.hibernate.boot.beanvalidation

public Class DuplicationStrategyImpl

extends Object
implements DuplicationStrategy
Class Inheritance
All Implemented Interfaces
org.hibernate.event.service.spi.DuplicationStrategy
Imports
org.hibernate.event.service.spi.DuplicationStrategy

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final DuplicationStrategyImpl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
areMatch(Object
The listener we are currently trying to register
listener
,
Object
An already registered listener
original
)

Implements org.hibernate.event.service.spi.DuplicationStrategy.areMatch.

Are the two listener instances considered a duplication?
public DuplicationStrategy.Action
getAction()

Implements org.hibernate.event.service.spi.DuplicationStrategy.getAction.

How should a duplication be handled?
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final DuplicationStrategyImpl INSTANCE

Constructor Detail

DuplicationStrategyImplback to summary
public DuplicationStrategyImpl()

Method Detail

areMatchback to summary
public boolean areMatch(Object listener, Object original)

Implements org.hibernate.event.service.spi.DuplicationStrategy.areMatch.

Doc from org.hibernate.event.service.spi.DuplicationStrategy.areMatch.

Are the two listener instances considered a duplication?

Parameters
listener:Object

The listener we are currently trying to register

original:Object

An already registered listener

Returns:boolean

true if the two instances are considered a duplication; false otherwise

Annotations
@Override
getActionback to summary
public DuplicationStrategy.Action getAction()

Implements org.hibernate.event.service.spi.DuplicationStrategy.getAction.

Doc from org.hibernate.event.service.spi.DuplicationStrategy.getAction.

How should a duplication be handled?

Returns:DuplicationStrategy.Action

The strategy for handling duplication

Annotations
@Override