public class Column extends Object
ResultSetMetaData
so check out this class for details.Constructor and Description |
---|
Column(String name)
Constructs a Column with the supplied name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Determines whether this Column is equal to the supplied object.
|
String |
getClassName()
Gets the Java class name used for this column.
|
String |
getName()
Gets the name of this Column.
|
Integer |
getPrecision()
For a numeric Column, this method gets the precision.
|
Integer |
getScale()
For a numeric Column, this method gets the scale.
|
int |
getType()
Gets the JDBC type of this Column.
|
String |
getTypeName()
Gets the JDBC type of this Column.
|
Integer |
getWidth()
Gets the maximum width (in characters) for this Column.
|
int |
hashCode()
Computes the hash code for this Column.
|
boolean |
isNullable()
Determines if this column is nullable or not.
|
void |
setClassName(String className)
Gets the Java class name used for this column.
|
void |
setNullable(boolean nullable)
Sets this column to nullable or not nullable.
|
void |
setPrecision(Integer precision)
For a numeric Column, this method sets the precision.
|
void |
setScale(Integer scale)
For a numeric Column, this method sets the scale.
|
void |
setType(int type)
Sets the JDBC type for this Column.
|
void |
setTypeName(String typeName)
Sets the JDBC type name for this Column.
|
void |
setWidth(Integer width)
Sets the maximum width (in characters) for this Column.
|
String |
toString()
Creates a String representation of this Column.
|
public Column(String name)
name
- Column's name.IllegalArgumentException
- When the supplied name is empty.NullPointerException
- When the supplied name is null.public String getName()
public String getClassName()
public void setClassName(String className)
className
- The Java class name used for this column.IllegalArgumentException
- When the supplied name is empty.NullPointerException
- When the supplied name is null.public int getType()
public void setType(int type)
type
- The JDBC type for this Column.public String getTypeName()
public void setTypeName(String typeName)
typeName
- The JDBC type name for this Column.IllegalArgumentException
- When the supplied typeName is empty.NullPointerException
- When the supplied className is null.public Integer getWidth()
public void setWidth(Integer width)
width
- The maximum width this Column occupies.public Integer getPrecision()
public void setPrecision(Integer precision)
precision
- The precision for this Column.public Integer getScale()
public void setScale(Integer scale)
scale
- The scale for this Column.public boolean isNullable()
public void setNullable(boolean nullable)
nullable
- True when nullable, otherwise false.public boolean equals(Object object)
public int hashCode()
Copyright © 2008–2018. All rights reserved.