public static class ForeignKeys.Nullifier extends Object
| Constructor and Description |
|---|
Nullifier(Object self,
boolean isDelete,
boolean isEarlyInsert,
SessionImplementor session)
Constructs a Nullifier
|
| Modifier and Type | Method and Description |
|---|---|
void |
nullifyTransientReferences(Object[] values,
Type[] types)
Nullify all references to entities that have not yet been inserted in the database, where the foreign key
points toward that entity.
|
public Nullifier(Object self, boolean isDelete, boolean isEarlyInsert, SessionImplementor session)
self - The entityisDelete - Are we in the middle of a delete action?isEarlyInsert - Is this an early insert (INSERT generated id strategy)?session - The sessionpublic void nullifyTransientReferences(Object[] values, Type[] types)
values - The entity attribute valuestypes - The entity attribute typesCopyright © 2017 JBoss by Red Hat. All rights reserved.