Class Column
- java.lang.Object
-
- net.lecousin.reactive.data.relational.schema.Column
-
public class Column extends Object
A column in a table.- Author:
- Guillaume Le Cousin
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.data.util.Pair<Table,Column>
getForeignKeyReferences()
String
getReferenceName()
String
getType()
boolean
isAutoIncrement()
boolean
isNullable()
boolean
isPrimaryKey()
boolean
isRandomUuid()
void
setAutoIncrement(boolean autoIncrement)
void
setForeignKeyReferences(org.springframework.data.util.Pair<Table,Column> foreignKeyReferences)
void
setNullable(boolean nullable)
void
setPrimaryKey(boolean primaryKey)
void
setRandomUuid(boolean randomUuid)
void
setType(String type)
String
toSql()
-
-
-
Constructor Detail
-
Column
public Column(Table table, org.springframework.data.relational.core.sql.SqlIdentifier sqlId)
-
-
Method Detail
-
isPrimaryKey
public boolean isPrimaryKey()
-
setPrimaryKey
public void setPrimaryKey(boolean primaryKey)
-
isNullable
public boolean isNullable()
-
setNullable
public void setNullable(boolean nullable)
-
isAutoIncrement
public boolean isAutoIncrement()
-
setAutoIncrement
public void setAutoIncrement(boolean autoIncrement)
-
isRandomUuid
public boolean isRandomUuid()
-
setRandomUuid
public void setRandomUuid(boolean randomUuid)
-
getType
public String getType()
-
setType
public void setType(String type)
-
getForeignKeyReferences
public org.springframework.data.util.Pair<Table,Column> getForeignKeyReferences()
-
setForeignKeyReferences
public void setForeignKeyReferences(org.springframework.data.util.Pair<Table,Column> foreignKeyReferences)
-
toSql
public String toSql()
-
getReferenceName
public String getReferenceName()
-
-