public class ParameterList extends java.lang.Object implements JBaseJDBCGlobals, JBaseSerializable
JBaseJDBCGlobals.TYPES
JBaseSerializable.TYPE
AM, CHAR_AM, CHAR_SM, CHAR_VM, SHORT_AM, SHORT_CHAR_AM, SHORT_CHAR_SM, SHORT_CHAR_VM, SHORT_SM, SHORT_VM, SM, VM
Constructor and Description |
---|
ParameterList() |
ParameterList(int n)
Constructor.
|
ParameterList(ParameterList pl)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allBound() |
void |
clear()
Clear the parameter list.
|
void |
copyFrom(ParameterList other) |
int |
count() |
java.lang.Object |
get(int i) |
int |
getType()
Implementation of JBaseSerializable.
|
int |
getVersion() |
void |
readObject(JBaseObjectReader reader,
int version)
Not implemented yet (currently ParameterList is only being sent from the client to the server).
|
void |
setBigDecimal(int parameterIndex,
java.math.BigDecimal x) |
void |
setBlob(int parameterIndex,
java.sql.Blob x) |
void |
setBoolean(int parameterIndex,
boolean x) |
void |
setByte(int parameterIndex,
byte x) |
void |
setBytes(int parameterIndex,
byte[] x) |
void |
setDate(int parameterIndex,
java.sql.Date x) |
void |
setDate(int parameterIndex,
java.sql.Date x,
java.util.Calendar cal) |
void |
setDouble(int parameterIndex,
double x) |
void |
setFloat(int parameterIndex,
float x) |
void |
setInt(int parameterIndex,
int x) |
void |
setLong(int parameterIndex,
long x) |
void |
setNull(int parameterIndex,
int sqlType) |
void |
setNull(int parameterIndex,
int sqlType,
java.lang.String typeName)
Sets the parameter number parameterIndex to NULL of sqlType type and typeName name.
|
void |
setObject(int parameterIndex,
java.lang.Object x) |
void |
setObject(int parameterIndex,
java.lang.Object x,
int targetSqlType,
int scale) |
void |
setParametersType(int parameterIndex,
int sqlType) |
void |
setRegisterAsOutParameter(int parameterIndex,
boolean b) |
void |
setScale(int parameterIndex,
int scale) |
void |
setShort(int parameterIndex,
short x) |
void |
setString(int parameterIndex,
java.lang.String x)
This and following methods gets called from
equivalent methods in @see JBaseJDBCPreparedStatement
|
void |
setTime(int parameterIndex,
java.sql.Time x,
java.util.Calendar cal) |
void |
setTimestamp(int parameterIndex,
java.sql.Timestamp x,
java.util.Calendar cal) |
void |
writeObject(JBaseObjectWriter writer,
int version)
Implementation of JBaseSerializable.
|
public ParameterList()
public ParameterList(int n)
n
- How many parameters the list will hold.public ParameterList(ParameterList pl)
pl
- ParameterList to be copiedpublic int getType()
getType
in interface JBaseSerializable
public int getVersion()
getVersion
in interface JBaseSerializable
public void writeObject(JBaseObjectWriter writer, int version) throws java.io.IOException
writeObject
in interface JBaseSerializable
java.io.IOException
public void readObject(JBaseObjectReader reader, int version) throws java.io.IOException, java.lang.ClassNotFoundException
readObject
in interface JBaseSerializable
java.io.IOException
java.lang.ClassNotFoundException
public int count()
public java.lang.Object get(int i)
public boolean allBound()
public void clear()
public void setString(int parameterIndex, java.lang.String x) throws java.sql.SQLException
java.sql.SQLException
public void setNull(int parameterIndex, int sqlType, java.lang.String typeName) throws java.sql.SQLException
java.sql.SQLException
public void setObject(int parameterIndex, java.lang.Object x) throws java.sql.SQLException
java.sql.SQLException
public void setBlob(int parameterIndex, java.sql.Blob x) throws java.sql.SQLException
java.sql.SQLException
public void setByte(int parameterIndex, byte x) throws java.sql.SQLException
java.sql.SQLException
public void setDouble(int parameterIndex, double x) throws java.sql.SQLException
java.sql.SQLException
public void setFloat(int parameterIndex, float x) throws java.sql.SQLException
java.sql.SQLException
public void setInt(int parameterIndex, int x) throws java.sql.SQLException
java.sql.SQLException
public void setNull(int parameterIndex, int sqlType) throws java.sql.SQLException
java.sql.SQLException
public void setLong(int parameterIndex, long x) throws java.sql.SQLException
java.sql.SQLException
public void setShort(int parameterIndex, short x) throws java.sql.SQLException
java.sql.SQLException
public void setBoolean(int parameterIndex, boolean x) throws java.sql.SQLException
java.sql.SQLException
public void setDate(int parameterIndex, java.sql.Date x, java.util.Calendar cal) throws java.sql.SQLException
java.sql.SQLException
public void setTime(int parameterIndex, java.sql.Time x, java.util.Calendar cal) throws java.sql.SQLException
java.sql.SQLException
public void setTimestamp(int parameterIndex, java.sql.Timestamp x, java.util.Calendar cal) throws java.sql.SQLException
java.sql.SQLException
public void setDate(int parameterIndex, java.sql.Date x) throws java.sql.SQLException
java.sql.SQLException
public void setBytes(int parameterIndex, byte[] x) throws java.sql.SQLException
java.sql.SQLException
public void setObject(int parameterIndex, java.lang.Object x, int targetSqlType, int scale) throws java.sql.SQLException
java.sql.SQLException
public void setBigDecimal(int parameterIndex, java.math.BigDecimal x) throws java.sql.SQLException
java.sql.SQLException
public void setParametersType(int parameterIndex, int sqlType)
public void setScale(int parameterIndex, int scale)
public void setRegisterAsOutParameter(int parameterIndex, boolean b)
public void copyFrom(ParameterList other)