Class HDBTableColumnsModel
java.lang.Object
com.codbex.kronos.parser.hdbtable.model.HDBTableColumnsModel
The Class HDBTableColumnsModel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCheck for all mandatory column fields presence.Gets the comment.Gets the default value.Gets the length.getName()Gets the name.Gets the precision.getScale()Gets the scale.Gets the sql type.booleanChecks if is nullable.booleanisUnique()Checks if is unique.voidsetComment(String comment) Sets the comment.voidsetDefaultValue(String defaultValue) Sets the default value.voidSets the length.voidSets the name.voidsetNullable(boolean nullable) Sets the nullable.voidsetPrecision(String precision) Sets the precision.voidSets the scale.voidsetSqlType(String sqlType) Sets the sql type.voidsetUnique(boolean unique) Sets the unique.
-
Constructor Details
-
HDBTableColumnsModel
public HDBTableColumnsModel()
-
-
Method Details
-
getName
Gets the name.- Returns:
- the name
-
setName
Sets the name.- Parameters:
name- the new name
-
getSqlType
Gets the sql type.- Returns:
- the sql type
-
setSqlType
Sets the sql type.- Parameters:
sqlType- the new sql type
-
isNullable
public boolean isNullable()Checks if is nullable.- Returns:
- true, if is nullable
-
setNullable
public void setNullable(boolean nullable) Sets the nullable.- Parameters:
nullable- the new nullable
-
isUnique
public boolean isUnique()Checks if is unique.- Returns:
- true, if is unique
-
setUnique
public void setUnique(boolean unique) Sets the unique.- Parameters:
unique- the new unique
-
getLength
Gets the length.- Returns:
- the length
-
setLength
Sets the length.- Parameters:
length- the new length
-
getComment
Gets the comment.- Returns:
- the comment
-
setComment
Sets the comment.- Parameters:
comment- the new comment
-
getDefaultValue
Gets the default value.- Returns:
- the default value
-
setDefaultValue
Sets the default value.- Parameters:
defaultValue- the new default value
-
getPrecision
Gets the precision.- Returns:
- the precision
-
setPrecision
Sets the precision.- Parameters:
precision- the new precision
-
getScale
Gets the scale.- Returns:
- the scale
-
setScale
Sets the scale.- Parameters:
scale- the new scale
-
checkForAllMandatoryColumnFieldsPresence
public void checkForAllMandatoryColumnFieldsPresence()Check for all mandatory column fields presence.
-