Package com.im.ijcs.api.ddl.dto
Class ModelChangeDescription
- java.lang.Object
-
- com.im.ijcs.api.ddl.dto.ModelChangeDescription
-
- All Implemented Interfaces:
java.io.Serializable
public class ModelChangeDescription extends java.lang.Object implements java.io.Serializable
Describes a change in the DIF model. Defines the type of change (create, delete, update), the parent of the item being changed, the schema it belongs to and the DTO for the actual item that is changed.- Author:
- Tim Dudgeon
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelChangeDescription.ChangeType
static class
ModelChangeDescription.MetaDataType
The type of metadata that needs to be updated.static class
ModelChangeDescription.PhysicalType
-
Constructor Summary
Constructors Constructor Description ModelChangeDescription(java.lang.String operationID, ModelChangeDescription.ChangeType changeType, ModelChangeDescription.MetaDataType metaDataType, ModelChangeDescription.PhysicalType physicalType, java.lang.String parentID, java.lang.Object oldItem, java.lang.Object newItem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelChangeDescription.ChangeType
getChangeType()
The type of changelong
getDuration()
ModelChangeDescription.MetaDataType
getMetaDataType()
The meta data type of changejava.lang.Object
getNewItem()
Get the value of new item, if applicable.java.lang.Object
getOldItem()
Get the value of old item, if applicable.java.lang.String
getOperationId()
Get the ID of the operation that instigated this changejava.lang.String
getParentID()
Get the ID of the parent DFItem.ModelChangeDescription.PhysicalType
getPhysicalType()
The physical type of changejava.sql.Timestamp
getStartTime()
void
setDuration(long duration)
void
setStartTime(java.sql.Timestamp startTime)
java.lang.String
toString()
-
-
-
Constructor Detail
-
ModelChangeDescription
public ModelChangeDescription(java.lang.String operationID, ModelChangeDescription.ChangeType changeType, ModelChangeDescription.MetaDataType metaDataType, ModelChangeDescription.PhysicalType physicalType, java.lang.String parentID, java.lang.Object oldItem, java.lang.Object newItem)
-
-
Method Detail
-
getOperationId
public java.lang.String getOperationId()
Get the ID of the operation that instigated this change- Returns:
- The ID
-
getChangeType
public ModelChangeDescription.ChangeType getChangeType()
The type of change- Returns:
- The value of changeType
-
getMetaDataType
public ModelChangeDescription.MetaDataType getMetaDataType()
The meta data type of change- Returns:
- The value of metaDataType
-
getPhysicalType
public ModelChangeDescription.PhysicalType getPhysicalType()
The physical type of change- Returns:
- The value of physicalType
-
getParentID
public java.lang.String getParentID()
Get the ID of the parent DFItem. Must always be defined, except in the case of DFSchema which has no parent.- Returns:
- The value of parent
-
getOldItem
public java.lang.Object getOldItem()
Get the value of old item, if applicable.- Returns:
- The value of old item. It is null in case of CREATE event.
-
getNewItem
public java.lang.Object getNewItem()
Get the value of new item, if applicable.- Returns:
- The value of new item. It is null in case of DELETE event.
-
getDuration
public long getDuration()
-
setDuration
public void setDuration(long duration)
-
getStartTime
public java.sql.Timestamp getStartTime()
-
setStartTime
public void setStartTime(java.sql.Timestamp startTime)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-