| Package | Description |
|---|---|
| org.apache.ddlutils |
This package mainly contains the database platform abstraction,
Platform
and the factory to create instances for individual platforms,
PlatformFactory. |
| org.apache.ddlutils.model |
This package contains the classes making up the database model.
|
| org.apache.ddlutils.platform |
This package contains the platform implementations for the individual databases.
|
| Modifier and Type | Method and Description |
|---|---|
CascadeActionEnum |
PlatformInfo.getDefaultOnDeleteAction()
Returns the default ON DELETE action that is used if none is specified.
|
CascadeActionEnum |
PlatformInfo.getDefaultOnUpdateAction()
Returns the default ON UPDATE action that is used if none is specified.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PlatformInfo.addEquivalentOnDeleteActions(CascadeActionEnum actionA,
CascadeActionEnum actionB)
Registers the given pair of ON DELETE actions to be equivalent.
|
void |
PlatformInfo.addEquivalentOnUpdateActions(CascadeActionEnum actionA,
CascadeActionEnum actionB)
Registers the given pair of ON UPDATE actions to be equivalent.
|
boolean |
PlatformInfo.areEquivalentOnDeleteActions(CascadeActionEnum actionA,
CascadeActionEnum actionB)
Determiones whether the two ON DELETE actions are equivalent.
|
boolean |
PlatformInfo.areEquivalentOnUpdateActions(CascadeActionEnum actionA,
CascadeActionEnum actionB)
Determiones whether the two ON UPDATE actions are equivalent.
|
boolean |
PlatformInfo.isActionSupportedForOnDelete(CascadeActionEnum action)
Determines whether the given action is supported for ON DELETE on this platform.
|
boolean |
PlatformInfo.isActionSupportedForOnUpdate(CascadeActionEnum action)
Determines whether the given action is supported for ON UPDATE on this platform.
|
void |
PlatformInfo.setDefaultOnDeleteAction(CascadeActionEnum defaultOnDeleteAction)
Sets the default ON DELETE action that is used if none is specified.
|
void |
PlatformInfo.setDefaultOnUpdateAction(CascadeActionEnum defaultOnUpdateAction)
Sets the default ON UPDATE action that is used if none is specified.
|
void |
PlatformInfo.setSupportedOnDeleteActions(CascadeActionEnum[] actions)
Sets the actions that this platform supports for ON DELETE.
|
void |
PlatformInfo.setSupportedOnUpdateActions(CascadeActionEnum[] actions)
Sets the actions that this platform supports for ON UPDATE.
|
| Modifier and Type | Field and Description |
|---|---|
static CascadeActionEnum |
CascadeActionEnum.CASCADE
The enum value for a cascade action which directs the database to apply the change to
the referenced table also to this table.
|
static CascadeActionEnum |
CascadeActionEnum.NONE
The enum value for the cascade action that directs the database to not change the local column
when the value of the referenced column changes, only check the foreign key constraint.
|
static CascadeActionEnum |
CascadeActionEnum.RESTRICT
The enum value for a cascade action which directs the database to restrict the change
changes to the referenced column.
|
static CascadeActionEnum |
CascadeActionEnum.SET_DEFAULT
The enum value for a cascade action which directs the database to set the local columns
referenced by the foreign key to the default value when the referenced row changes/is deleted.
|
static CascadeActionEnum |
CascadeActionEnum.SET_NULL
The enum value for a cascade action which directs the database to set the local columns
referenced by the foreign key to null when the referenced row changes/is deleted.
|
| Modifier and Type | Method and Description |
|---|---|
static CascadeActionEnum |
CascadeActionEnum.getEnum(int intValue)
Returns the enum value that corresponds to the given integer
representation.
|
static CascadeActionEnum |
CascadeActionEnum.getEnum(String defaultTextRep)
Returns the enum value that corresponds to the given textual
representation.
|
CascadeActionEnum |
ForeignKey.getOnDelete()
Returns the action for this foreignkey for when the referenced row is deleted.
|
CascadeActionEnum |
ForeignKey.getOnUpdate()
Returns the action for this foreignkey for when the referenced row is changed.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ForeignKey.setOnDelete(CascadeActionEnum onDelete)
Sets the action for this foreignkey for when the referenced row is deleted.
|
void |
ForeignKey.setOnUpdate(CascadeActionEnum onUpdate)
Sets the action for this foreignkey for when the referenced row is changed.
|
| Modifier and Type | Method and Description |
|---|---|
protected CascadeActionEnum |
JdbcModelReader.convertAction(Short jdbcActionValue)
Converts the JDBC action value (one of the
importKey constants in the
DatabaseMetaData class) to a CascadeActionEnum. |
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.