|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.cjdbc.common.sql.schema.DatabaseProcedureParameter
Represents a parameter of procedure
Field Summary | |
private int |
columnType
|
private int |
dataType
|
private int |
length
|
private java.lang.String |
name
|
private int |
nullable
|
private float |
precision
|
static int |
ProcedureColumnIn
IN parameter |
static int |
ProcedureColumnInOut
INOUT parameter |
static int |
ProcedureColumnOut
OUT parameter |
static int |
ProcedureColumnResult
procedure return value |
static int |
ProcedureColumnReturn
procedure return value |
static int |
ProcedureColumnUnknown
nobody knows |
static int |
ProcedureNoNulls
does not allow NULL values |
static int |
ProcedureNullable
allows NULL values |
static int |
ProcedureNullableUnknown
nullability unknown |
private int |
radix
|
private java.lang.String |
remarks
|
private int |
scale
|
private java.lang.String |
typeName
|
Constructor Summary | |
DatabaseProcedureParameter(java.lang.String name,
int columnType,
int nullable)
Reduced version of constructor for static schemas |
|
DatabaseProcedureParameter(java.lang.String name,
int columnType,
int dataType,
java.lang.String typeName,
float precision,
int length,
int scale,
int radix,
int nullable,
java.lang.String remarks)
|
Method Summary | |
boolean |
equals(java.lang.Object other)
Two DatabaseProcedureParameter are considered equal if they
have the same name and the same descriptive attributes. |
int |
getColumnType()
|
static java.lang.String |
getColumnTypeFromInt(int type)
get column type given an int |
static int |
getColumnTypeFromString(java.lang.String type)
get type from string |
int |
getDataType()
|
int |
getLength()
|
java.lang.String |
getName()
|
int |
getNullable()
|
static java.lang.String |
getNullFromInt(int nullable)
get null ability given an int |
static int |
getNullFromString(java.lang.String nullable)
get null ability given a string |
float |
getPrecision()
|
int |
getRadix()
|
java.lang.String |
getRemarks()
|
int |
getScale()
|
java.lang.String |
getTypeName()
|
java.lang.String |
getXml()
Get xml information about this procedure. |
void |
setColumnType(int columnType)
|
void |
setDataType(int dataType)
|
void |
setLength(int length)
|
void |
setName(java.lang.String name)
|
void |
setNullable(int nullable)
|
void |
setPrecision(int precision)
|
void |
setRadix(int radix)
|
void |
setRemarks(java.lang.String remarks)
|
void |
setScale(int scale)
|
void |
setTypeName(java.lang.String typeName)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ProcedureColumnUnknown
public static final int ProcedureColumnIn
public static final int ProcedureColumnInOut
public static final int ProcedureColumnOut
public static final int ProcedureColumnReturn
public static final int ProcedureColumnResult
public static final int ProcedureNoNulls
public static final int ProcedureNullable
public static final int ProcedureNullableUnknown
private java.lang.String name
private int columnType
private int dataType
private java.lang.String typeName
private float precision
private int length
private int scale
private int radix
private int nullable
private java.lang.String remarks
Constructor Detail |
public DatabaseProcedureParameter(java.lang.String name, int columnType, int nullable)
name
- column/parameter namecolumnType
- kind of column/parameternullable
- can it contain NULL?public DatabaseProcedureParameter(java.lang.String name, int columnType, int dataType, java.lang.String typeName, float precision, int length, int scale, int radix, int nullable, java.lang.String remarks)
name
- column/parameter namecolumnType
- kind of column/parameterdataType
- SQL type from java.sql.TypestypeName
- SQL type name, for a UDT type the type name is fully
qualifiedprecision
- precisionlength
- length in bytes of datascale
- scaleradix
- radixnullable
- can it contain NULL?remarks
- comment describing parameter/columnMethod Detail |
public static int getNullFromString(java.lang.String nullable)
nullable
- recognized are "nonulls" and "nullable"
public static java.lang.String getNullFromInt(int nullable)
nullable
- as an integer
public static java.lang.String getColumnTypeFromInt(int type)
type
- as an int from the java specification
public static int getColumnTypeFromString(java.lang.String type)
type
- of the parameter
public final int getColumnType()
public final void setColumnType(int columnType)
columnType
- The columnType to set.public final int getDataType()
public final void setDataType(int dataType)
dataType
- The dataType to set.public final int getLength()
public final void setLength(int length)
length
- The length to set.public final java.lang.String getName()
public final void setName(java.lang.String name)
name
- The name to set.public final int getNullable()
public final void setNullable(int nullable)
nullable
- The nullable to set.public final float getPrecision()
public final void setPrecision(int precision)
precision
- The precision to set.public final int getRadix()
public final void setRadix(int radix)
radix
- The radix to set.public final java.lang.String getRemarks()
public final void setRemarks(java.lang.String remarks)
remarks
- The remarks to set.public final int getScale()
public final void setScale(int scale)
scale
- The scale to set.public final java.lang.String getTypeName()
public final void setTypeName(java.lang.String typeName)
typeName
- The typeName to set.public boolean equals(java.lang.Object other)
DatabaseProcedureParameter
are considered equal if they
have the same name and the same descriptive attributes.
other
- the object to compare with
true
if the DatabaseProcedureParameter are equalpublic java.lang.String getXml()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |