org.hibernate.util

Class Cloneable

Known Direct Subclasses:
EventListeners

public class Cloneable
extends java.lang.Object

An object that is shallow-coneable
Author:
Steve Ebersole

Method Summary

Object
shallowCopy()
Essentially performs a shallow copy of this SessionEventListenerConfig instance; meaning the SessionEventListenerConfig itself is cloned, but the individual listeners are not cloned.
void
validate()
Checks to ensure the SessionEventListenerConfig is fully configured (basically, that none of the listeners is null).

Method Details

shallowCopy

public Object shallowCopy()
Essentially performs a shallow copy of this SessionEventListenerConfig instance; meaning the SessionEventListenerConfig itself is cloned, but the individual listeners are not cloned.
Returns:
The SessionEventListenerConfig shallow copy.

validate

public void validate()
            throws HibernateException
Checks to ensure the SessionEventListenerConfig is fully configured (basically, that none of the listeners is null).
Throws:
HibernateException - If the SessionEventListenerConfig is not fully configured.