public class ColumnMetaData extends Object
Constructor and Description |
---|
ColumnMetaData(ResultSetMetaData m,
int column)
Construct an instance with result set metadata and column index
|
Modifier and Type | Method and Description |
---|---|
static List<ColumnMetaData> |
createList(ResultSetMetaData m)
Get all the column meta data and put them into a list in their default order
|
static Map<String,ColumnMetaData> |
createMapByLabelOrName(ResultSetMetaData m)
Get all the column meta data and put them into a map keyed by column label or name
|
String |
getCatalogName() |
String |
getClassName() |
int |
getDisplaySize() |
int |
getIndex() |
String |
getLabel() |
String |
getLabelOrName() |
String |
getName() |
int |
getNullable() |
int |
getPrecision() |
String |
getPropertyName() |
int |
getScale() |
String |
getSchemaName() |
String |
getTableName() |
int |
getType() |
String |
getTypeName() |
boolean |
isAutoIncrement() |
boolean |
isCaseSensitive() |
boolean |
isDefinitelyWritable() |
boolean |
isReadOnly() |
boolean |
isSearchable() |
boolean |
isSigned() |
boolean |
isWritable() |
void |
setAutoIncrement(boolean autoIncrement) |
void |
setCaseSensitive(boolean caseSensitive) |
void |
setCatalogName(String catalogName) |
void |
setClassName(String className) |
void |
setDefinitelyWritable(boolean definitelyWritable) |
void |
setDisplaySize(int displaySize) |
void |
setIndex(int index) |
void |
setLabel(String label) |
void |
setLabelOrName(String labelOrName) |
void |
setName(String name) |
void |
setNullable(int nullable) |
void |
setPrecision(int precision) |
void |
setPropertyName(String propertyName) |
void |
setReadOnly(boolean readOnly) |
void |
setScale(int scale) |
void |
setSchemaName(String schemaName) |
void |
setSearchable(boolean searchable) |
void |
setSigned(boolean signed) |
void |
setTableName(String tableName) |
void |
setType(int type) |
void |
setTypeName(String typeName) |
void |
setWritable(boolean writable) |
public ColumnMetaData(ResultSetMetaData m, int column) throws SQLException
m
- result set metadatacolumn
- index. the first column has the index of 1SQLException
public static Map<String,ColumnMetaData> createMapByLabelOrName(ResultSetMetaData m) throws SQLException
m
- the result set meta dataSQLException
public static List<ColumnMetaData> createList(ResultSetMetaData m) throws SQLException
m
- the result set meta dataSQLException
public String getCatalogName()
public void setCatalogName(String catalogName)
public String getClassName()
public void setClassName(String className)
public int getDisplaySize()
public void setDisplaySize(int displaySize)
public String getLabel()
public void setLabel(String label)
public String getName()
public void setName(String name)
public int getType()
public void setType(int type)
public String getTypeName()
public void setTypeName(String typeName)
public int getPrecision()
public void setPrecision(int precision)
public int getScale()
public void setScale(int scale)
public String getSchemaName()
public void setSchemaName(String schemaName)
public String getTableName()
public void setTableName(String tableName)
public boolean isAutoIncrement()
public void setAutoIncrement(boolean autoIncrement)
public boolean isCaseSensitive()
public void setCaseSensitive(boolean caseSensitive)
public boolean isDefinitelyWritable()
public void setDefinitelyWritable(boolean definitelyWritable)
public int getNullable()
public void setNullable(int nullable)
public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
public boolean isSearchable()
public void setSearchable(boolean searchable)
public boolean isSigned()
public void setSigned(boolean signed)
public boolean isWritable()
public void setWritable(boolean writable)
public int getIndex()
public void setIndex(int index)
public String getPropertyName()
public void setPropertyName(String propertyName)
public String getLabelOrName()
public void setLabelOrName(String labelOrName)
Copyright © 2014. All Rights Reserved.