JavaPreparedStatementMBS class
Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version
22.2
22.3
22.4
22.5
23.0
23.1
23.2
23.3
23.4
23.5
24.0
24.1
The list of the topics,
classes,
interfaces,
controls,
modules,
global methods by category,
global methods by name,
screenshots,
licenses
and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
JavaPreparedStatementMBS class
Super class: JavaStatementMBS
An object that represents a precompiled SQL statement.
A SQL statement is precompiled and stored in a PreparedStatement object. This object can then be used to efficiently execute this statement multiple times.
Note: The setter methods (setShort, setString, and so on) for setting IN parameter values must specify types that are compatible with the defined SQL type of the input parameter. For instance, if the IN parameter has SQL type INTEGER, then the method setInt should be used.
If arbitrary parameter type conversions are required, the method setObject should be used with a target SQL type.
In the following example of setting a parameter, con represents an active connection:
PreparedStatement pstmt = con.prepareStatement("UPDATE EMPLOYEES SET SALARY = ? WHERE ID = ?");
pstmt.setBigDecimal(1, 153833.00)
pstmt.setInt(2, 110592)
Subclass of the JavaStatementMBS class.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 20 methods
- method addBatch
- method clearParameters
- method Constructor Private
- method execute as boolean
- method executeQuery as JavaResultSetMBS
- method executeUpdate as Integer
- method getMetaData as JavaResultSetMetaDataMBS
- method getParameterMetaData as JavaParameterMetaDataMBS
- method setBlob(parameterIndex as Integer, x as JavaBlobMBS)
- method setBoolean(parameterIndex as Integer, x as boolean)
- method setByte(parameterIndex as Integer, x as Integer)
- method setBytes(parameterIndex as Integer, Value as String)
- method setClob(parameterIndex as Integer, x as JavaClobMBS)
- method setDouble(parameterIndex as Integer, x as Double)
- method setFloat(parameterIndex as Integer, x as single)
- method setInt(parameterIndex as Integer, x as Integer)
- method setLong(parameterIndex as Integer, x as Int64)
- method setNull(parameterIndex as Integer, sqlType as Integer)
- method setShort(parameterIndex as Integer, x as Integer)
- method setString(parameterIndex as Integer, x as string)
- 16 properties
- 28 methods
- method CallBooleanMethod(MethodID as JavaMethodMBS, args as memoryblock) as boolean
- method CallByteMethod(MethodID as JavaMethodMBS, args as memoryblock) as Integer
- method CallCharMethod(MethodID as JavaMethodMBS, args as memoryblock) as Integer
- method CallDoubleMethod(MethodID as JavaMethodMBS, args as memoryblock) as Double
- method CallFloatMethod(MethodID as JavaMethodMBS, args as memoryblock) as single
- method CallIntMethod(MethodID as JavaMethodMBS, args as memoryblock) as Integer
- method CallLongMethod(MethodID as JavaMethodMBS, args as memoryblock) as Int64
- method CallMethod(MethodID as JavaMethodMBS, args() as Variant) as Variant
- method CallNonvirtualBooleanMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args as memoryblock) as boolean
- method CallNonvirtualByteMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args as memoryblock) as Integer
- method CallNonvirtualCharMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args as memoryblock) as Integer
- method CallNonvirtualDoubleMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args as memoryblock) as Double
- method CallNonvirtualFloatMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args as memoryblock) as single
- method CallNonvirtualIntMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args as memoryblock) as Integer
- method CallNonvirtualLongMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args as memoryblock) as Int64
- method CallNonvirtualMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args() as Variant) as Variant
- method CallNonvirtualObjectMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args as memoryblock) as JavaObjectMBS
- method CallNonvirtualShortMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args as memoryblock) as Integer
- method CallNonvirtualVoidMethod(TheClass as JavaClassMBS, MethodID as JavaMethodMBS, args as memoryblock)
- method CallObjectMethod(MethodID as JavaMethodMBS, args as memoryblock) as JavaObjectMBS
- method CallShortMethod(MethodID as JavaMethodMBS, args as memoryblock) as Integer
- method CallVoidMethod(MethodID as JavaMethodMBS, args as memoryblock)
- method Constructor Private
- method GetDirectBufferAddress(directbuffer as JavaObjectMBS) as Integer
- method GetDirectBufferCapacity(directbuffer as JavaObjectMBS) as Integer
- method IsInstanceOf(TheClass as JavaClassMBS) as boolean
- method IsSameObject(obj as JavaObjectMBS) as boolean
- method ObjectClass as JavaClassMBS
This class has no sub classes.
Some methods using this class:
Some examples using this class:
Blog Entries
The items on this page are in the following plugins: MBS Java Plugin.
JavaParameterMetaDataMBS
-
JavaResultSetMBS