Top Fields Constructors Methods
org.hibernate.bytecode.enhance.spi.interceptor

public abstract Class AbstractInterceptor

extends Object
implements SessionAssociableInterceptor
Class Inheritance
All Implemented Interfaces
org.hibernate.bytecode.enhance.spi.interceptor.SessionAssociableInterceptor, org.hibernate.engine.spi.PersistentAttributeInterceptor, org.hibernate.bytecode.enhance.spi.LazyPropertyInitializer.InterceptorImplementor
Known Direct Subclasses
org.hibernate.bytecode.enhance.spi.interceptor.AbstractLazyLoadInterceptor
Imports
org.hibernate.engine.spi.SharedSessionContractImplementor

Deprecated

as a consequence of SessionAssociableInterceptor being deprecated. See corresponding docs for further information.

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private boolean
private final String
private transient SharedSessionContractImplementor
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public String
public SharedSessionContractImplementor
public String
protected abstract Object
handleRead(Object target, String attributeName, Object value)

Handle the case of reading an attribute.

protected abstract Object
handleWrite(Object target, String attributeName, Object oldValue, Object newValue)

Handle the case of writing an attribute.

public boolean
public byte
public char
public double
public float
public int
public long
public Object
public short
public void
public void
public boolean
writeBoolean(Object obj, String name, boolean oldValue, boolean newValue)

Implements org.hibernate.engine.spi.PersistentAttributeInterceptor.writeBoolean.

public byte
public char
public double
writeDouble(Object obj, String name, double oldValue, double newValue)

Implements org.hibernate.engine.spi.PersistentAttributeInterceptor.writeDouble.

public float
public int
public long
public Object
public short
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

allowLoadOutsideTransactionback to summary
private boolean allowLoadOutsideTransaction
entityNameback to summary
private final String entityName
sessionback to summary
private transient SharedSessionContractImplementor session
sessionFactoryUuidback to summary
private String sessionFactoryUuid

Constructor Detail

AbstractInterceptorback to summary
public AbstractInterceptor(String entityName)

Method Detail

allowLoadOutsideTransactionback to summary
public boolean allowLoadOutsideTransaction()

Implements org.hibernate.bytecode.enhance.spi.interceptor.SessionAssociableInterceptor.allowLoadOutsideTransaction.

Annotations
@Override
getEntityNameback to summary
public String getEntityName()
getLinkedSessionback to summary
public SharedSessionContractImplementor getLinkedSession()

Implements org.hibernate.bytecode.enhance.spi.interceptor.SessionAssociableInterceptor.getLinkedSession.

Annotations
@Override
getSessionFactoryUuidback to summary
public String getSessionFactoryUuid()

Implements org.hibernate.bytecode.enhance.spi.interceptor.SessionAssociableInterceptor.getSessionFactoryUuid.

Annotations
@Override
handleReadback to summary
protected abstract Object handleRead(Object target, String attributeName, Object value)

Handle the case of reading an attribute. The result is what is returned to the caller

handleWriteback to summary
protected abstract Object handleWrite(Object target, String attributeName, Object oldValue, Object newValue)

Handle the case of writing an attribute. The result is what is set as the entity state

readBooleanback to summary
public boolean readBoolean(Object obj, String name, boolean oldValue)

Implements org.hibernate.engine.spi.PersistentAttributeInterceptor.readBoolean.

Annotations
@Override
readByteback to summary
public byte readByte(Object obj, String name, byte oldValue)

Implements org.hibernate.engine.spi.PersistentAttributeInterceptor.readByte.

Annotations
@Override
readCharback to summary
public char readChar(Object obj, String name, char oldValue)

Implements org.hibernate.engine.spi.PersistentAttributeInterceptor.readChar.

Annotations
@Override
readDoubleback to summary
public double readDouble(Object obj, String name, double oldValue)

Implements org.hibernate.engine.spi.PersistentAttributeInterceptor.readDouble.

Annotations
@Override
readFloatback to summary
public float readFloat(Object obj, String name, float oldValue)

Implements org.hibernate.engine.spi.PersistentAttributeInterceptor.readFloat.

Annotations
@Override
readIntback to summary
public int readInt(Object obj, String name, int oldValue)

Implements org.hibernate.engine.spi.PersistentAttributeInterceptor.readInt.

Annotations
@Override
readLongback to summary
public long readLong(Object obj, String name, long oldValue)

Implements org.hibernate.engine.spi.PersistentAttributeInterceptor.readLong.

Annotations
@Override
readObjectback to summary
public Object readObject(Object obj, String name, Object oldValue)

Implements org.hibernate.engine.spi.PersistentAttributeInterceptor.readObject.

Annotations
@Override
readShortback to summary
public short readShort(Object obj, String name, short oldValue)

Implements org.hibernate.engine.spi.PersistentAttributeInterceptor.readShort.

Annotations
@Override
setSessionback to summary
public void setSession(SharedSessionContractImplementor session)

Implements org.hibernate.bytecode.enhance.spi.interceptor.SessionAssociableInterceptor.setSession.

Annotations
@Override
unsetSessionback to summary
public void unsetSession()

Implements org.hibernate.bytecode.enhance.spi.interceptor.SessionAssociableInterceptor.unsetSession.

Annotations
@Override
writeBooleanback to summary
public boolean writeBoolean(Object obj, String name, boolean oldValue, boolean newValue)

Implements org.hibernate.engine.spi.PersistentAttributeInterceptor.writeBoolean.

Annotations
@Override
writeByteback to summary
public byte writeByte(Object obj, String name, byte oldValue, byte newValue)

Implements org.hibernate.engine.spi.PersistentAttributeInterceptor.writeByte.

Annotations
@Override
writeCharback to summary
public char writeChar(Object obj, String name, char oldValue, char newValue)

Implements org.hibernate.engine.spi.PersistentAttributeInterceptor.writeChar.

Annotations
@Override
writeDoubleback to summary
public double writeDouble(Object obj, String name, double oldValue, double newValue)

Implements org.hibernate.engine.spi.PersistentAttributeInterceptor.writeDouble.

Annotations
@Override
writeFloatback to summary
public float writeFloat(Object obj, String name, float oldValue, float newValue)

Implements org.hibernate.engine.spi.PersistentAttributeInterceptor.writeFloat.

Annotations
@Override
writeIntback to summary
public int writeInt(Object obj, String name, int oldValue, int newValue)

Implements org.hibernate.engine.spi.PersistentAttributeInterceptor.writeInt.

Annotations
@Override
writeLongback to summary
public long writeLong(Object obj, String name, long oldValue, long newValue)

Implements org.hibernate.engine.spi.PersistentAttributeInterceptor.writeLong.

Annotations
@Override
writeObjectback to summary
public Object writeObject(Object obj, String name, Object oldValue, Object newValue)

Implements org.hibernate.engine.spi.PersistentAttributeInterceptor.writeObject.

Annotations
@Override
writeShortback to summary
public short writeShort(Object obj, String name, short oldValue, short newValue)

Implements org.hibernate.engine.spi.PersistentAttributeInterceptor.writeShort.

Annotations
@Override