Class ColumnMetadata
java.lang.Object
org.eclipse.dirigible.database.api.metadata.ColumnMetadata
public class ColumnMetadata extends Object
The Column Metadata transport object.
-
Constructor Summary
Constructors Constructor Description ColumnMetadata(String name, String type, int size, boolean nullable, boolean key, int scale)Instantiates a new column metadata. -
Method Summary
Modifier and Type Method Description StringgetKind()Gets the kind.StringgetName()Gets the name.intgetScale()Gets the scale.intgetSize()Gets the size.StringgetType()Gets the type.booleanisKey()Checks if is key.booleanisNullable()Checks if is nullable.voidsetKey(boolean key)Sets the key.voidsetKind(String kind)Sets the kind.voidsetName(String name)Sets the name.voidsetNullable(boolean nullable)Sets the nullable.voidsetScale(int scale)Sets the scale.voidsetSize(int size)Sets the size.voidsetType(String type)Sets the type.
-
Constructor Details
-
ColumnMetadata
public ColumnMetadata(String name, String type, int size, boolean nullable, boolean key, int scale)Instantiates a new column metadata.- Parameters:
name- the nametype- the typesize- the sizenullable- the nullablekey- the keyscale- the scale
-
-
Method Details
-
getName
Gets the name.- Returns:
- the name
-
setName
Sets the name.- Parameters:
name- the new name
-
getType
Gets the type.- Returns:
- the type
-
setType
Sets the type.- Parameters:
type- the new type
-
getSize
public int getSize()Gets the size.- Returns:
- the size
-
setSize
public void setSize(int size)Sets the size.- Parameters:
size- the new size
-
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
-
isKey
public boolean isKey()Checks if is key.- Returns:
- true, if is key
-
setKey
public void setKey(boolean key)Sets the key.- Parameters:
key- the new key
-
getKind
Gets the kind.- Returns:
- the kind
-
setKind
Sets the kind.- Parameters:
kind- the new kind
-
getScale
public int getScale()Gets the scale.- Returns:
- the scale
-
setScale
public void setScale(int scale)Sets the scale.- Parameters:
scale- the scale to set
-