public class BindCallCustomParameter
extends java.lang.Object
implements java.io.Serializable
Purpose: To provide a base type for customary parameters' types used for binding by DatabaseCall: descendants of DatabasePlatform may create instances of descendants of this class in customModifyInDatabaseCall method.
Responsibilities:
Constructor and Description |
---|
BindCallCustomParameter(java.lang.Object obj)
INTERNAL:
Binds the custom parameter (obj) into the passed PreparedStatement
for the passed DatabaseCall.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
convert(java.lang.Object parameter,
DatabaseField dbField,
AbstractSession session,
java.sql.Connection connection)
INTERNAL:
Converts the parameter object from a collection or java object into a JDBC type such as an
Array or Struct object, based on the type information contained in the dbField object.
|
void |
set(DatabasePlatform platform,
java.sql.PreparedStatement statement,
int index,
AbstractSession session) |
boolean |
shouldUseUnwrappedConnection()
Return if unwrapped connection should be used.
|
java.lang.String |
toString() |
public BindCallCustomParameter(java.lang.Object obj)
public boolean shouldUseUnwrappedConnection()
public void set(DatabasePlatform platform, java.sql.PreparedStatement statement, int index, AbstractSession session) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object convert(java.lang.Object parameter, DatabaseField dbField, AbstractSession session, java.sql.Connection connection) throws java.sql.SQLException
java.sql.SQLException
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference