org.hibernate.type

Class ForeignKeyDirection

Implemented Interfaces:
Serializable

public abstract class ForeignKeyDirection
extends java.lang.Object
implements Serializable

Represents directionality of the foreign key constraint
Author:
Gavin King

Field Summary

static ForeignKeyDirection
FOREIGN_KEY_FROM_PARENT
A foreign key from parent to child
static ForeignKeyDirection
FOREIGN_KEY_TO_PARENT
A foreign key from child to parent

Constructor Summary

ForeignKeyDirection()

Method Summary

abstract boolean
cascadeNow(int cascadePoint)
Should we cascade at this cascade point?

Field Details

FOREIGN_KEY_FROM_PARENT

public static final ForeignKeyDirection FOREIGN_KEY_FROM_PARENT
A foreign key from parent to child

FOREIGN_KEY_TO_PARENT

public static final ForeignKeyDirection FOREIGN_KEY_TO_PARENT
A foreign key from child to parent

Constructor Details

ForeignKeyDirection

protected ForeignKeyDirection()

Method Details

cascadeNow

public abstract boolean cascadeNow(int cascadePoint)
Should we cascade at this cascade point?