FileDocCategorySizeDatePackage
ColumnMetadata.javaAPI DocHibernate 3.2.51223Thu Aug 11 15:41:22 BST 2005org.hibernate.tool.hbm2ddl

ColumnMetadata

public class ColumnMetadata extends Object
JDBC column metadata
author
Christoph Sturm

Fields Summary
private final String
name
private final String
typeName
private final int
columnSize
private final int
decimalDigits
private final String
isNullable
private final int
typeCode
Constructors Summary
ColumnMetadata(ResultSet rs)

		name = rs.getString("COLUMN_NAME");
		columnSize = rs.getInt("COLUMN_SIZE");
		decimalDigits = rs.getInt("DECIMAL_DIGITS");
		isNullable = rs.getString("IS_NULLABLE");
		typeCode = rs.getInt("DATA_TYPE");
		typeName = new StringTokenizer( rs.getString("TYPE_NAME"), "() " ).nextToken();
	
Methods Summary
public intgetColumnSize()

		return columnSize;
	
public intgetDecimalDigits()

		return decimalDigits;
	
public java.lang.StringgetName()

		return name;
	
public java.lang.StringgetNullable()

		return isNullable;
	
public intgetTypeCode()

		return typeCode;
	
public java.lang.StringgetTypeName()

		return typeName;
	
public java.lang.StringtoString()

		return "ColumnMetadata(" + name + ')";