Class ColumnMetaDataImpl
- java.lang.Object
-
- de.akquinet.jbosscc.guttenbase.meta.impl.ColumnMetaDataImpl
-
- All Implemented Interfaces:
ColumnMetaData
,InternalColumnMetaData
,Serializable
,Comparable<ColumnMetaData>
public class ColumnMetaDataImpl extends Object implements InternalColumnMetaData
Information about a table column.© 2012-2034 akquinet tech@spree
- Author:
- M. Dahm
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ColumnMetaDataImpl(int columnType, String columnName, String columnTypeName, String columnClassName, boolean isNullable, boolean isAutoIncrement, int precision, int scale, TableMetaData tableMetaData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ColumnMetaData that)
boolean
equals(Object obj)
String
getColumnClassName()
UUID
getColumnId()
/** Make columns globally uniq since the name may not be uniq within the data base.String
getColumnName()
int
getColumnType()
String
getColumnTypeName()
int
getPrecision()
Map<String,List<ColumnMetaData>>
getReferencedColumns()
Map<String,List<ColumnMetaData>>
getReferencingColumns()
int
getScale()
TableMetaData
getTableMetaData()
int
hashCode()
boolean
isAutoIncrement()
boolean
isNullable()
boolean
isPrimaryKey()
void
setPrimaryKey(boolean primaryKey)
String
toString()
-
-
-
Constructor Detail
-
ColumnMetaDataImpl
public ColumnMetaDataImpl(int columnType, String columnName, String columnTypeName, String columnClassName, boolean isNullable, boolean isAutoIncrement, int precision, int scale, TableMetaData tableMetaData)
-
-
Method Detail
-
setPrimaryKey
public void setPrimaryKey(boolean primaryKey)
- Specified by:
setPrimaryKey
in interfaceInternalColumnMetaData
-
isPrimaryKey
public boolean isPrimaryKey()
- Specified by:
isPrimaryKey
in interfaceColumnMetaData
-
getColumnType
public int getColumnType()
- Specified by:
getColumnType
in interfaceColumnMetaData
-
getColumnName
public String getColumnName()
- Specified by:
getColumnName
in interfaceColumnMetaData
-
getColumnTypeName
public String getColumnTypeName()
- Specified by:
getColumnTypeName
in interfaceColumnMetaData
-
getColumnClassName
public String getColumnClassName()
- Specified by:
getColumnClassName
in interfaceColumnMetaData
-
isNullable
public boolean isNullable()
- Specified by:
isNullable
in interfaceColumnMetaData
-
isAutoIncrement
public boolean isAutoIncrement()
- Specified by:
isAutoIncrement
in interfaceColumnMetaData
-
getPrecision
public int getPrecision()
- Specified by:
getPrecision
in interfaceColumnMetaData
-
getScale
public int getScale()
- Specified by:
getScale
in interfaceColumnMetaData
-
getReferencedColumns
public Map<String,List<ColumnMetaData>> getReferencedColumns()
- Specified by:
getReferencedColumns
in interfaceColumnMetaData
- Returns:
- referenced columns for each foreign key constraint
-
getReferencingColumns
public Map<String,List<ColumnMetaData>> getReferencingColumns()
- Specified by:
getReferencingColumns
in interfaceColumnMetaData
- Returns:
- list of referencing columns for each foreign key constraint
-
getTableMetaData
public TableMetaData getTableMetaData()
- Specified by:
getTableMetaData
in interfaceColumnMetaData
- Returns:
- containing table
-
getColumnId
public UUID getColumnId()
/** Make columns globally uniq since the name may not be uniq within the data base.- Specified by:
getColumnId
in interfaceInternalColumnMetaData
-
compareTo
public int compareTo(ColumnMetaData that)
- Specified by:
compareTo
in interfaceComparable<ColumnMetaData>
-
-