public final class DbColumnInfo extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SEQUENCE_NEXT_VAL_PATTERN
Pattern for getting auto incremented value from a sequence.
|
Constructor and Description |
---|
DbColumnInfo() |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultValue()
Column default value.
|
int |
getLength()
Column length.
|
String |
getName()
Returns column name.
|
int |
getScale() |
Class<? extends Column<?>> |
getType()
Returns column type.
|
boolean |
isMax() |
boolean |
isNullable()
Whether column is nullable.
|
boolean |
reflects(Column<?> value) |
void |
setDefaultValue(String defaultValue)
Sets column default value.
|
void |
setLength(int length)
Sets column length.
|
void |
setMax(boolean max) |
void |
setName(String name)
Sets column name.
|
void |
setNullable(boolean nullable)
Sets if column is nullable.
|
void |
setScale(int scale) |
void |
setType(Class<? extends Column<?>> type)
Sets column type.
|
public static final String SEQUENCE_NEXT_VAL_PATTERN
public String getName()
public boolean isNullable()
public String getDefaultValue()
public int getLength()
public boolean isMax()
public void setName(String name)
name
- column namepublic void setType(Class<? extends Column<?>> type)
type
- column typepublic void setNullable(boolean nullable)
nullable
- true
if column is nullable otherwise false
public void setDefaultValue(String defaultValue)
defaultValue
- column default valuepublic void setLength(int length)
length
- column lengthpublic int getScale()
public void setScale(int scale)
public void setMax(boolean max)
public boolean reflects(Column<?> value)
Copyright © 2023 CURS. All rights reserved.