CodeCharge Studio

toSql Method (Java)

Applies to

JDBCConnection Object

Syntax

public String toSql(java.lang.String value,int type);
public String toSql(java.lang.String,com.codecharge.components.ControlType);
public String toSql(boolean);
public String toSql(java.lang.Boolean);
public String toSql(java.util.Date);

Return value

String - converted (SQL safe) string

Parameters

Name Type Description
value String The Element of sql expression
type int The value type indicating necessary changes

Description

This method converts a String value to an SQL expression by adding quotes and delimiters.


On-line, printable versions and updates