Package cdc.impex.templates
Class Usage
java.lang.Object
cdc.impex.templates.Usage
Definition for each
ImportAction of the expected presence of data or column.
When a column is missing, actual data is necessarily undefined.
When a column is present, actual data can be defined, undefined, or declared as ERASE.
- Author:
- Damien Carbonne
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UsageUsage dedicated to the action column.static final UsageThe column is a read-only derived (computed) entity attribute.static final UsageThe column is a mandatory read-only entity attribute.static final UsageThe column is a mandatory read-only part of the entity id.static final UsageThe column is a mandatory read-write entity attribute.static final UsageThe column is a optional read-only entity attribute.static final UsageThe column is an optional read-only part of the entity id.static final UsageThe column is a optional read-write entity attribute. -
Method Summary
Modifier and TypeMethodDescriptionstatic Usage.Builderbuilder()intgetImportActions(Presence presence) getName()getPresence(ImportAction action) booleanbooleanisIgnoredFor(ImportAction action) booleanisMandatoryFor(ImportAction action) booleanbooleanisOptionalFor(ImportAction action) toString()
-
Field Details
-
ACTION
Usage dedicated to the action column.- CREATE:
Presence.OPTIONAL - UPDATE:
Presence.OPTIONAL, CAN NOT be erased - DELETE:
Presence.OPTIONAL
- CREATE:
-
MANDATORY_RO_ID
The column is a mandatory read-only part of the entity id.- CREATE:
Presence.MANDATORY - UPDATE:
Presence.MANDATORY, CAN NOT be erased - DELETE:
Presence.MANDATORY
- CREATE:
-
OPTIONAL_RO_ID
The column is an optional read-only part of the entity id.- CREATE:
Presence.OPTIONAL - UPDATE:
Presence.OPTIONAL, CAN NOT be erased - DELETE:
Presence.OPTIONAL
- CREATE:
-
MANDATORY_RO_ATT
The column is a mandatory read-only entity attribute.- CREATE:
Presence.MANDATORY - UPDATE:
Presence.IGNORED, CAN NOT be erased - DELETE:
Presence.IGNORED
It can not be changed. - CREATE:
-
OPTIONAL_RO_ATT
The column is a optional read-only entity attribute.- CREATE:
Presence.OPTIONAL - UPDATE:
Presence.IGNORED, CAN NOT be erased - DELETE:
Presence.IGNORED
It can not be changed. - CREATE:
-
MANDATORY_RW_ATT
The column is a mandatory read-write entity attribute.- CREATE:
Presence.MANDATORY - UPDATE:
Presence.OPTIONAL, CAN NOT be erased - DELETE:
Presence.IGNORED
null.
It must be set at creation time.
It can be changed. - CREATE:
-
OPTIONAL_RW_ATT
The column is a optional read-write entity attribute.- CREATE:
Presence.OPTIONAL - UPDATE:
Presence.OPTIONAL, CAN be erased - DELETE:
Presence.IGNORED
null.
It can be set at creation time.
It can be changed. - CREATE:
-
DERIVED_RO_ATT
The column is a read-only derived (computed) entity attribute.- CREATE:
Presence.IGNORED - UPDATE:
Presence.IGNORED, can not be erased - DELETE:
Presence.IGNORED
- CREATE:
-
-
Method Details
-
getName
-
getPresence
-
isErasable
public boolean isErasable()- Returns:
trueif the column can be erased during update.
-
getCount
-
getImportActions
-
isMandatoryFor
- Parameters:
action- The action.- Returns:
trueif this usage is mandatory foraction.
-
isOptionalFor
- Parameters:
action- The action.- Returns:
trueif this usage is optional foraction.
-
isIgnoredFor
- Parameters:
action- The action.- Returns:
trueif this usage is ignored foraction.
-
isMandatoryForFutureImport
public boolean isMandatoryForFutureImport()- Returns:
trueif this usage is mandatory for a future import.
-
toString
-
builder
-