Top Description Fields Constructors Methods
org.hibernate.persister.entity.mutation

public final Class TableSet

extends Object
Class Inheritance
Imports
java.util.Arrays, .BitSet, org.hibernate.sql.model.MutationTarget, .TableMapping

Represents a Set of TableMapping(s); table mappings are identified by an ordered unique id: the order in which they are updated within the scope of a particular persister. This makes it possible to store a set of them as a bitset, which is typically more efficient than using a java.util.Set. These table ids come from org.hibernate.sql.model.TableMapping#getRelativePosition.

N.B. Make sure to not store TableMappings from different persisters, as their unique identifiers will overlap: we'll only verify a mismatch if assertions are enabled.

Field Summary

Modifier and TypeField and Description
private BitSet
private Object[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
add(final TableMapping tableMapping)

private boolean
addForChecks(final TableMapping tableMapping)

public boolean
contains(final TableMapping tableMapping)

private void
ensureCapacity(final int position)

public boolean
private boolean
matchRead(final TableMapping tableMapping)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bitsback to summary
private BitSet bits
checksback to summary
private Object[] checks

Constructor Detail

TableSetback to summary
public TableSet()

Method Detail

addback to summary
public void add(final TableMapping tableMapping)
addForChecksback to summary
private boolean addForChecks(final TableMapping tableMapping)
containsback to summary
public boolean contains(final TableMapping tableMapping)
ensureCapacityback to summary
private void ensureCapacity(final int position)
isEmptyback to summary
public boolean isEmpty()
matchReadback to summary
private boolean matchRead(final TableMapping tableMapping)