Package adalid.util.sql
Class SqlColumn
- java.lang.Object
-
- adalid.util.sql.SqlArtifact
-
- adalid.util.sql.SqlColumn
-
public class SqlColumn extends SqlArtifact
- Author:
- Jorge Campins
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDefault()java.lang.StringgetDefaultLabel()SqlTablegetForeignTable()java.lang.StringgetForeignTableName()intgetLength()java.lang.StringgetMetajavaType()intgetPosition()intgetPrecision()java.lang.StringgetQualifiedName()intgetScale()java.lang.StringgetSqlDataType()java.lang.StringgetSqlDefaultValue()java.lang.StringgetSqlType()SqlTablegetTable()java.lang.StringgetTrueType()java.lang.StringgetType()booleanisBooleanish()booleanisCollision()booleanisDescription()booleanisDiscriminator()booleanisForeign()booleanisName()booleanisNullable()booleanisOrdinary()booleanisPrimary()booleanisSpecial()booleanisUnique()booleanisUpdatable()booleanisVersion()booleanmatches(java.lang.String type, java.lang.String role)-
Methods inherited from class adalid.util.sql.SqlArtifact
getCapitalizedJavaName, getDecapitalizedJavaName, getJavaName, getName, toString
-
-
-
-
Constructor Detail
-
SqlColumn
public SqlColumn(SqlTable table)
-
-
Method Detail
-
getTable
public SqlTable getTable()
- Returns:
- the table
-
getPosition
public int getPosition()
- Returns:
- the ordinal position
-
getDefaultLabel
public java.lang.String getDefaultLabel()
- Returns:
- the default label
-
getType
public java.lang.String getType()
- Returns:
- the type
-
getSqlDataType
public java.lang.String getSqlDataType()
- Returns:
- the sql data type
-
getSqlType
public java.lang.String getSqlType()
- Returns:
- the sql type
-
getLength
public int getLength()
- Returns:
- the length
-
getPrecision
public int getPrecision()
- Returns:
- the precision
-
getScale
public int getScale()
- Returns:
- the scale
-
isCollision
public boolean isCollision()
- Returns:
- the collision indicator
-
isUpdatable
public boolean isUpdatable()
- Returns:
- the updatable indicator
-
isNullable
public boolean isNullable()
- Returns:
- the nullable indicator
-
isPrimary
public boolean isPrimary()
- Returns:
- the primary indicator
-
isUnique
public boolean isUnique()
- Returns:
- the unique indicator
-
isBooleanish
public boolean isBooleanish()
- Returns:
- the booleanish indicator
-
isForeign
public boolean isForeign()
- Returns:
- the foreign indicator
-
getForeignTableName
public java.lang.String getForeignTableName()
- Returns:
- the foreign table name
-
getForeignTable
public SqlTable getForeignTable()
- Returns:
- the foreign table
-
getDefault
public java.lang.String getDefault()
- Returns:
- the default value
-
getSqlDefaultValue
public java.lang.String getSqlDefaultValue()
- Returns:
- the sql default value
-
isVersion
public boolean isVersion()
- Returns:
- the version indicator
-
isDiscriminator
public boolean isDiscriminator()
- Returns:
- the discriminator indicator
-
isName
public boolean isName()
- Returns:
- the name indicator
-
isDescription
public boolean isDescription()
- Returns:
- the description indicator
-
matches
public boolean matches(java.lang.String type, java.lang.String role)
-
isOrdinary
public boolean isOrdinary()
-
isSpecial
public boolean isSpecial()
-
getTrueType
public java.lang.String getTrueType()
-
getMetajavaType
public java.lang.String getMetajavaType()
-
getQualifiedName
public java.lang.String getQualifiedName()
-
-