Class ColumnDef
- java.lang.Object
-
- com.ibm.fhir.database.utils.model.ColumnDef
-
- All Implemented Interfaces:
Comparable<ColumnDef>
public class ColumnDef extends Object implements Comparable<ColumnDef>
Represents a column definition in a table
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ColumnDef that)
boolean
equals(Object other)
ColumnType
getColumnType()
String
getDefaultVal()
int
getInlineSize()
String
getName()
Integer
getPrecision()
long
getSize()
int
hashCode()
boolean
isNullable()
void
setColumnType(ColumnType columnType)
void
setDefaultVal(String defaultVal)
void
setInlineSize(int inlineSize)
void
setNullable(boolean nullable)
void
setPrecision(int precision)
void
setSize(long size)
-
-
-
Constructor Detail
-
ColumnDef
public ColumnDef(String name)
Public constructor- Parameters:
name
-
-
-
Method Detail
-
getName
public String getName()
-
isNullable
public boolean isNullable()
-
setNullable
public void setNullable(boolean nullable)
-
getColumnType
public ColumnType getColumnType()
-
setColumnType
public void setColumnType(ColumnType columnType)
-
getSize
public long getSize()
-
setSize
public void setSize(long size)
-
getPrecision
public Integer getPrecision()
-
setPrecision
public void setPrecision(int precision)
-
getDefaultVal
public String getDefaultVal()
-
setDefaultVal
public void setDefaultVal(String defaultVal)
- Parameters:
defaultVal
- this value is NOT auto-quoted, you must pass the single-quote (') within the string value for literal strings
-
compareTo
public int compareTo(ColumnDef that)
- Specified by:
compareTo
in interfaceComparable<ColumnDef>
-
getInlineSize
public int getInlineSize()
-
setInlineSize
public void setInlineSize(int inlineSize)
-
-