Class jet.datasource.JRColDesc
java.lang.Object
|
+----jet.datasource.JRColDesc
- public class JRColDesc
- extends Object
A class that encapsulates all description information about a column in a result set.
The description information is retrieved from the database
colName
- The column name in the column description.
nullable
- The nullable in the column description.
precision
- The precision in the column description.
- For char or date types this is the maximum number of characters, for numeric or decimal
types this is precision.
scale
- The scale in the column description.
- The number of fractional digits
sqlType
- The sql type in the column description.
- The value is the SQL type from java.sql.Types.
JRColDesc()
- Constructs an uninitialized JRColDesc.
JRColDesc(String, int,
int, int, int)
- Constructs an initialized DbColDesc.
clone()
- Duplicates a copy of this JRColDescs
getColName()
- Gets the column name.
getNullable()
- Gets the nullable.
getPrecision()
- Gets the precision.
getScale()
- Gets the scale.
getSqlType()
- Gets the data type.
setColName(String)
- Sets the column name for this JRColDesc to the specified name.
setNullable(int)
- Sets the nullable for this JRColDesc to the specified nullable.
setPrecision(int)
- Sets the precision for this JRColDesc to the specified precision.
setScale(int)
- Sets the scale for this JRColDesc to the specified scale.
setSqlType(int)
- Sets the data type for this JRColDesc to the specified type.
typeEquals(JRColDesc)
- Compares the specified column description and returns if the column description is equal
in type.

colName
public String colName
- The column name in the column description.

sqlType
public int sqlType
- The sql type in the column description.
- The value is the SQL type from java.sql.Types.

precision
public int precision
- The precision in the column description.
- For char or date types this is the maximum number of characters, for numeric or decimal
types this is precision.

scale
public int scale
- The scale in the column description.
- The number of fractional digits

nullable
public int nullable
- The nullable in the column description.
- Indicate whether the NULL value allowed.
0 - might not allow NULL values
1 - definitely allows NULL values
2 - nullability unknown

JRColDesc
public JRColDesc()
- Constructs an uninitialized JRColDesc.

JRColDesc
public JRColDesc(String colName,
int sqlType,
int precision,
int scale,
int nullable)
- Constructs an initialized DbColDesc.
- Parameters:
- colName - the column name
- sqlType - the data type
- precision - the precision
- scale - the scale
- nullable - the nullable

getColName
public String getColName()
- Gets the column name.
- Returns:
- the column name.
- See Also:
- setColName

setColName
public void setColName(String colName)
- Sets the column name for this JRColDesc to the specified name.
- Parameters:
- colName - the column name specified.
- See Also:
- getColName

getSqlType
public int getSqlType()
- Gets the data type.
- Returns:
- the data type of this field.
- See Also:
- setSqlType

setSqlType
public void setSqlType(int sqlType)
- Sets the data type for this JRColDesc to the specified type.
- Parameters:
- iSQLType - the specified data type .
- See Also:
- getSqlType

getPrecision
public int getPrecision()
- Gets the precision.
- Returns:
- the precision.
- See Also:
- setPrecision

setPrecision
public void setPrecision(int precision)
- Sets the precision for this JRColDesc to the specified precision.
- Parameters:
- iPrecision - the specified precision.
- See Also:
- getPrecision

getScale
public int getScale()
- Gets the scale.
- Returns:
- the scale.
- See Also:
- getScale

setScale
public void setScale(int scale)
- Sets the scale for this JRColDesc to the specified scale.
- Parameters:
- iScale - the specified scale.
- See Also:
- setScale

getNullable
public int getNullable()
- Gets the nullable.
- Returns:
- the nullable.
- See Also:
- setNullable

setNullable
public void setNullable(int nullable)
- Sets the nullable for this JRColDesc to the specified nullable.
- Parameters:
- iNullable - the specified nullable.
- See Also:
- getNullable

typeEquals
public boolean typeEquals(JRColDesc colDesc)
- Compares the specified column description and returns if the column description is equal
in type.
- Parameters:
- colDesc - the column description to compare
- Returns:
- if the coldesc is euals in type

clone
public Object clone()
- Duplicates a copy of this JRColDescs