Top Description Fields Constructors Methods
org.hibernate.binder.internal

public Class TenantIdBinder

extends Object
implements AttributeBinder<TenantId>
Class Inheritance
All Implemented Interfaces
org.hibernate.binder.AttributeBinder
Imports
org.hibernate.MappingException, org.hibernate.annotations.TenantId, org.hibernate.binder.AttributeBinder, org.hibernate.boot.spi.InFlightMetadataCollector, .MetadataBuildingContext, org.hibernate.engine.spi.FilterDefinition, org.hibernate.mapping.Column, .Formula, .PersistentClass, .Property, .Selectable, org.hibernate.type.BasicType, org.hibernate.type.descriptor.java.JavaType, org.hibernate.type.spi.TypeConfiguration

Sets up filters associated with a TenantId field
Author
Gavin King

Field Summary

Modifier and TypeField and Description
public static final String
public static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
bind(TenantId
an annotation of the property that is declared as an org.hibernate.annotations.AttributeBinderType
tenantId
,
MetadataBuildingContext buildingContext, PersistentClass
the entity class acting as the ultimate container of the property (differs from Property#getPersistentClass() in the case of a property of an embeddable class)
persistentClass
,
Property
a Property object representing the annotated property
property
)

Implements org.hibernate.binder.AttributeBinder.bind.

Perform some custom configuration of the model relating to the given annotated Property of the given entity class or embeddable class.
private String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

FILTER_NAMEback to summary
public static final String FILTER_NAME
PARAMETER_NAMEback to summary
public static final String PARAMETER_NAME

Constructor Detail

TenantIdBinderback to summary
public TenantIdBinder()

Method Detail

bindback to summary
public void bind(TenantId tenantId, MetadataBuildingContext buildingContext, PersistentClass persistentClass, Property property)

Implements org.hibernate.binder.AttributeBinder.bind.

Doc from org.hibernate.binder.AttributeBinder.bind.

Perform some custom configuration of the model relating to the given annotated Property of the given entity class or embeddable class.

Parameters
tenantId:TenantId

an annotation of the property that is declared as an org.hibernate.annotations.AttributeBinderType

persistentClass:PersistentClass

the entity class acting as the ultimate container of the property (differs from Property#getPersistentClass() in the case of a property of an embeddable class)

property:Property

a Property object representing the annotated property

Annotations
@Override
columnNameOrFormulaback to summary
private String columnNameOrFormula(Property property)