|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjet.connect.DbColDesc
public class DbColDesc
A class that encapsulates all description information about a column in a result set.
| Field Summary | |
|---|---|
static int |
ARRAY
|
int |
bigDecimalLength
|
java.lang.String |
colName
|
static int |
CONSTANT
|
static int |
CURRENCY
|
static int |
ENCODE
|
static int |
GLOBAL
|
static int |
GROUPABLE
|
static int |
GROUPLEVEL
|
static int |
IGNORECASE
|
static int |
NOTAUTOENCODE
|
int |
nullable
|
static int |
PARAMETER
|
int |
precision
|
int |
scale
|
int |
sqlType
|
static int |
USER_DEFINED
A user defined column, like formula. |
| Constructor Summary | |
|---|---|
DbColDesc()
Constructs an uninitialized DbColDesc. |
|
DbColDesc(DbColDesc desc)
Constructs an initialized DbColDesc. |
|
DbColDesc(java.lang.String ColName,
int SqlType,
int Precision,
int Scale,
int Nullable)
Constructs an initialized DbColDesc. |
|
DbColDesc(java.lang.String ColName,
int SqlType,
int Precision,
int Scale,
int Nullable,
boolean bCurrency)
Constructs an initialized DbColDesc. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object colDesc)
|
int |
getColIndex()
|
java.lang.String |
getColName()
Returns the name of a column. |
java.lang.String |
getEncodingName()
|
int |
getFlag()
Return column flag. |
int |
getFromEncoding()
|
int |
getNullable()
Returns information on whether a column result set can have null values. |
int |
getPrecision()
Returns the precision (maximum length) of character or binary data, or the precision of decimal or numeric data, for a column in a result set. |
java.lang.String |
getRealColName()
|
int |
getScale()
Returns the scale of a column in a result set for decimal or numeric data. |
int |
getSqlType()
Returns the SqlType. |
int |
getToEncoding()
|
boolean |
isArray()
|
boolean |
isConstant()
|
boolean |
isCurrency()
|
boolean |
isEncode()
|
boolean |
isGlobal()
|
boolean |
isGroupable()
|
boolean |
isGroupLevel()
|
boolean |
isIgnoreCase()
|
boolean |
isNotAutoEncode()
|
boolean |
isParameter()
|
boolean |
isReadOnly()
|
boolean |
isUserDef()
|
void |
setArray(boolean b)
|
void |
setColIndex(int index)
|
void |
setColName(java.lang.String name)
Set the name of the column. |
void |
setConstant(boolean b)
|
void |
setConvertEncoding(int fromEncoding,
int toEncoding)
|
void |
setCurrency(boolean bCurrency)
|
void |
setEncode(boolean b)
|
void |
setEncodingName(java.lang.String enc)
|
void |
setFlag(int flag)
Set column flag. |
void |
setGlobal(boolean b)
|
void |
setGroupable(boolean g)
|
void |
setGroupLevel(boolean b)
|
void |
setIgnoreCase(boolean b)
|
void |
setNotAutoEncode(boolean b)
|
void |
setParameter(boolean b)
|
void |
setReadOnly(boolean readOnly)
|
void |
setRealColName(java.lang.String realName)
|
void |
setSqlType(int type)
|
void |
setUserDef(boolean b)
|
java.lang.String |
toString()
|
boolean |
typeEquals(DbColDesc colDesc)
|
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CURRENCY
public static final int CONSTANT
public static final int GROUPABLE
public static final int USER_DEFINED
public static final int PARAMETER
public static final int GLOBAL
public static final int IGNORECASE
public static final int NOTAUTOENCODE
public static final int ENCODE
public static final int GROUPLEVEL
public static final int ARRAY
public java.lang.String colName
public int sqlType
public int precision
public int scale
public int nullable
public int bigDecimalLength
| Constructor Detail |
|---|
public DbColDesc()
public DbColDesc(java.lang.String ColName,
int SqlType,
int Precision,
int Scale,
int Nullable,
boolean bCurrency)
public DbColDesc(java.lang.String ColName,
int SqlType,
int Precision,
int Scale,
int Nullable)
public DbColDesc(DbColDesc desc)
| Method Detail |
|---|
public void setConvertEncoding(int fromEncoding,
int toEncoding)
public int getFlag()
public void setFlag(int flag)
public final void setGroupable(boolean g)
public final boolean isGroupable()
public void setConstant(boolean b)
public boolean isConstant()
public void setCurrency(boolean bCurrency)
public boolean isCurrency()
public void setUserDef(boolean b)
public boolean isUserDef()
public void setGlobal(boolean b)
public boolean isGlobal()
public void setParameter(boolean b)
public boolean isParameter()
public void setIgnoreCase(boolean b)
public boolean isIgnoreCase()
public void setNotAutoEncode(boolean b)
public boolean isNotAutoEncode()
public void setEncode(boolean b)
public boolean isEncode()
public void setGroupLevel(boolean b)
public boolean isGroupLevel()
public void setArray(boolean b)
public boolean isArray()
public void setEncodingName(java.lang.String enc)
public java.lang.String getEncodingName()
public void setColIndex(int index)
public int getColIndex()
public java.lang.String getColName()
public void setColName(java.lang.String name)
public void setRealColName(java.lang.String realName)
public java.lang.String getRealColName()
public int getSqlType()
If SqlType cannot be determined, returns 0.
public void setSqlType(int type)
public int getPrecision()
DbBinary,
DbChar,
DbDecimal,
jet.connect.DbNumeric,
jet.connect.DbLongVarBinary,
jet.connect.DbLongVarChar,
jet.connect.DbVarBinary,
jet.connect.DbVarCharpublic int getScale()
DbDecimal,
jet.connect.DbNumericpublic int getNullable()
public java.lang.Object clone()
clone in class java.lang.Objectpublic boolean typeEquals(DbColDesc colDesc)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object colDesc)
equals in class java.lang.Objectpublic boolean isReadOnly()
public void setReadOnly(boolean readOnly)
readOnly - The readOnly to set.public int getToEncoding()
public int getFromEncoding()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||