Package net.java.ao.schema.ddl
Class DDLAction
java.lang.Object
net.java.ao.schema.ddl.DDLAction
Database-agnostic representation of any supported DDL action (usually one or two statements). The idea behind this class is to allow ActiveObjects to internally represent actions to be taken on a database schema without coupling to a database-specific rendering of the action.
As this class is meant to be a generic container of different
action types, some fields may not be relevant to certain action
types, and thus these fields will contain null
values. For example, the equivalent of an ALTER TABLE DROP FIELD
action will return null
for getIndex()
.
However, code should not depend on this behavior; instead testing
the action type and only retrieving relevant data.
- Author:
- Daniel Spiewak
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DDLActionBuilder
builder
(DDLActionType actionType) boolean
getField()
getIndex()
getKey()
getTable()
DDLValue[]
int
hashCode()
void
void
void
setKey
(DDLForeignKey key) void
setOldField
(DDLField oldField) void
void