Skip to main content


class %XDBC.Gateway.JDBC.PreparedStatement extends %XDBC.Gateway.JDBC.Statement

FOR INTERNAL USE - do not invoke directly

Property Inventory

Method Inventory


property %foreignstatement as %Net.Remote.Object;
Property methods: %foreignstatementGet(), %foreignstatementGetSwizzled(), %foreignstatementIsValid(), %foreignstatementNewObject(), %foreignstatementSet()


method %OnNew(connection As %XDBC.Gateway.JDBC.Connection, statement As %ObjectHandle) as %Status
Inherited description: This callback method is invoked by the %New() method to provide notification that a new instance of an object is being created.

If this method returns an error then the object will not be created.

It is passed the arguments provided in the %New call. When customizing this method, override the arguments with whatever variables and types you expect to receive from %New(). For example, if you're going to call %New, passing 2 arguments, %OnNew's signature could be:

Method %OnNew(dob as %Date = "", name as %Name = "") as %Status If instead of returning a %Status code this returns an oref and this oref is a subclass of the current class then this oref will be the one returned to the caller of %New method.

method AddBatch(sql As %String)
Inherited description: Sets the value of the designated parameter with the given object. Method SetObject(parameterName As %String, parameter As %ObjectHandle) {} Adds the given SQL command to the current list of commmands for this Statement object.
method Execute(void As %Library.String, autoGeneratedKeys As %Library.Integer = "") as %Boolean
boolean execute()
method ExecuteQuery(void As %String) as ResultSet
Executes the prepared statement, returns a single ResultSet object Accepts no arguments, a single void argument is defined to satisfy inheritance rules but is not expected to be passed. If void is defined then an exception will be thrown. ResultSet executeQuery()
method ExecuteUpdate(void As %Library.String, autoGeneratedKeys As %Library.Integer = 0) as %Integer
int executeUpdate()
method GetMetaData() as %SQL.StatementMetadata
ResultSetMetaData getMetaData()
method GetParameterMetaData() as %SQL.StatementParameter
method SetAsciiStream(paramIdx As %RawString, value As %Stream.Object, length As %Integer)
method SetAsciiStream(paramIdx as %RawString, value As %Stream.Object) {}
method SetBigDecimal(paramIdx As %RawString, value As %Decimal)
method SetBinaryStream(paramIdx As %RawString, value As %Stream.Object, length As %Integer)
method SetBlob(paramIdx As %RawString, value As %Stream.Object, length As %Integer)
method SetBoolean(paramIdx As %RawString, value As %Boolean)
method SetByte(paramIdx As %RawString, value As %SmallInt)
method SetBytes(paramIdx As %RawString, value As %RawString)
method SetCharacterStream(paramIdx As %RawString, value As %Stream.Object, length As %Integer)
method SetClob(paramIdx As %RawString, value As %Stream.Object, length As %Integer)
method SetDate(paramIdx As %RawString, value As %Date, cal As %Net.Remote.Object)
method SetDouble(paramIdx As %RawString, value As %Float)
void setDouble(int parameterIndex, double x)
method SetFloat(paramIdx As %RawString, value As %Float)
method SetInt(paramIdx As %RawString, value As %Integer)
void setInt(int parameterIndex, int x)
method SetLong(paramIdx As %RawString, value As %Integer)
method SetNCharacterStream(paramIdx As %RawString, value As %Stream.Object, length As %Integer)
method SetNCharacterStream(paramIdx as %RawString, value as %Stream.Object) {}
method SetNClob(paramIdx As %RawString, value As %Stream.Object, length As %Integer)
method SetNClob(paramIdx as %RawString, value As %Stream.Object) {} method SetNClob(paramIdx as %RawString, value as %Stream.Object) {}
method SetNString(paramIdx As %RawString, value As %String)
method SetNull(paramIdx As %RawString, sqlType As %Integer, typeName As %String)
throws SQLException method SetNull(paramIdx as %RawString, sqlType as %Integer) {}
method SetObject(paramIdx As %RawString, value As %ObjectHandle, targetSqlType As %Integer, scale As %Integer)
method SetObject(paramIdx as %RawString, value As %ObjectHandle, targetSqlType as %Integer) {} method SetObject(paramIdx as %RawString, x) {}
method SetShort(paramIdx As %RawString, value As %SmallInt)
method SetString(paramIdx As %RawString, value As %String)
void setString(int parameterIndex, String x)
method SetTime(paramIdx As %RawString, value As %Time, cal As %Net.Remote.Object)
method SetTimestamp(paramIdx As %RawString, value As %TimeStamp, cal As %Net.Remote.Object)
throws SQLException method SetTimestamp(paramIdx as %RawString, value As %TimeStamp) {}
method SetURL(paramIdx As %RawString, value As %RawString)
throws SQLException method SetURL(paramIdx as %RawString, val) {}

Inherited Members

Inherited Properties

Inherited Methods


FeedbackOpens in a new tab