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

public Class LazyAttributeDescriptor

extends Object
Class Inheritance
Imports
org.hibernate.mapping.Property, org.hibernate.type.Type

Descriptor for an attribute which is enabled for bytecode lazy fetching
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final int
private final String
private final int
private final String
private final Type

Constructor Summary

AccessConstructor and Description
private
LazyAttributeDescriptor(int attributeIndex, int lazyIndex, String name, Type type, String fetchGroupName)

Method Summary

Modifier and TypeMethod and Description
public static LazyAttributeDescriptor
from(Property property, int attributeIndex, int lazyIndex)

public int

Returns:

The persister attribute index
getAttributeIndex
()

Access to the index of the attribute in terms of its position in the entity persister

public String

Returns:

The name of the fetch group the attribute belongs to
getFetchGroupName
()

Access to the name of the fetch group to which the attribute belongs

public int

Returns:

The persister lazy attribute index
getLazyIndex
()

Access to the index of the attribute in terms of its position within the lazy attributes of the persister

public String

Returns:

The attribute name
getName
()

Access to the name of the attribute

public Type

Returns:

The attribute type
getType
()

Access to the attribute's type

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attributeIndexback to summary
private final int attributeIndex
fetchGroupNameback to summary
private final String fetchGroupName
lazyIndexback to summary
private final int lazyIndex
nameback to summary
private final String name
typeback to summary
private final Type type

Constructor Detail

LazyAttributeDescriptorback to summary
private LazyAttributeDescriptor(int attributeIndex, int lazyIndex, String name, Type type, String fetchGroupName)

Method Detail

fromback to summary
public static LazyAttributeDescriptor from(Property property, int attributeIndex, int lazyIndex)
getAttributeIndexback to summary
public int getAttributeIndex()

Access to the index of the attribute in terms of its position in the entity persister

Returns:int

The persister attribute index

getFetchGroupNameback to summary
public String getFetchGroupName()

Access to the name of the fetch group to which the attribute belongs

Returns:String

The name of the fetch group the attribute belongs to

getLazyIndexback to summary
public int getLazyIndex()

Access to the index of the attribute in terms of its position within the lazy attributes of the persister

Returns:int

The persister lazy attribute index

getNameback to summary
public String getName()

Access to the name of the attribute

Returns:String

The attribute name

getTypeback to summary
public Type getType()

Access to the attribute's type

Returns:Type

The attribute type