Package lu.kbra.modelizer_next.domain
Class FieldModel
java.lang.Object
lu.kbra.modelizer_next.domain.FieldModel
- All Implemented Interfaces:
IdOwner,NamesOwner,StyleOwner,TagsOwner
Persistent model of a class field or table column, including names, data type, keys, cardinality,
style, and visibility.
-
Field Summary
FieldsFields inherited from interface lu.kbra.modelizer_next.domain.TagsOwner
NOT_NULL_FLAG, PRIMARY_KEY_FLAG, UNIQUE_FLAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getId()Returns the ID.getNames()Returns the names.getStyle()Returns the style.getTags()getType()Returns the type.booleanChecks whether technical only is enabled or applies.voidSets the ID.voidsetLastPaletteName(String lastPaletteName) voidsetNames(ElementNames names) Sets the names.voidsetNotNullLegacy(boolean notNull) Deprecated.voidsetPrimaryKeyLegacy(boolean primaryKey) Deprecated.voidsetStyle(ElementStyle style) Sets the style.voidvoidsetTechnicalOnly(boolean notConceptual) Sets the technical only.voidSets the type.voidsetUniqueLegacy(boolean unique) Deprecated.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface lu.kbra.modelizer_next.domain.impl.NamesOwner
getConceptualName, getName, getTechnicalName, hasTechnicalName, setConceptualName, setName, setName, setName, setTechnicalNameMethods inherited from interface lu.kbra.modelizer_next.domain.impl.StyleOwner
getBackgroundColor, getTextColor, setBackgroundColor, setBorderColor, setTextColorMethods inherited from interface lu.kbra.modelizer_next.domain.TagsOwner
getFlags, hasFlags, isNonNull, isPrimaryKey, isUnique, setNonNull, setPrimaryKey, setUnique
-
Field Details
-
SQL_TYPES
-
-
Constructor Details
-
FieldModel
public FieldModel()Creates a field model instance.
-
-
Method Details
-
getBorderColor
Deprecated.Returns the border color.- Specified by:
getBorderColorin interfaceStyleOwner- Returns:
- the border color
-
getId
Returns the ID. -
getLastPaletteName
- Specified by:
getLastPaletteNamein interfaceStyleOwner
-
getNames
Returns the names.- Specified by:
getNamesin interfaceNamesOwner- Returns:
- the names
-
getStyle
Returns the style.- Specified by:
getStylein interfaceStyleOwner- Returns:
- the style
-
getTags
-
getType
Returns the type.- Returns:
- the type
-
isTechnicalOnly
public boolean isTechnicalOnly()Checks whether technical only is enabled or applies.- Returns:
trueif technical only is enabled or applies; otherwisefalse
-
setId
Sets the ID. -
setLastPaletteName
- Specified by:
setLastPaletteNamein interfaceStyleOwner
-
setNotNullLegacy
Deprecated. -
setPrimaryKeyLegacy
Deprecated. -
setTags
-
setTechnicalOnly
public void setTechnicalOnly(boolean notConceptual) Sets the technical only.- Parameters:
notConceptual- whether not conceptual is enabled
-
setType
Sets the type.- Parameters:
type- type value that selects the operation mode
-
setUniqueLegacy
Deprecated. -
toString
-