org.enableit.db
Class SqlEncoder

java.lang.Object
  |
  +--org.enableit.db.SqlEncoder

public class SqlEncoder
extends java.lang.Object

Ensure special characters are escaped before issuing SQL statements.

Version:
v1.0
Author:
__AUTHOR__

Constructor Summary
SqlEncoder()
          Default Constructor
 
Method Summary
static java.lang.String encode(java.lang.String string)
          Encodes characters as escape sequences to prevent errors when passed to a SQL statement Actual chars requiring encoding are: ', newline, \,
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlEncoder

public SqlEncoder()
Default Constructor

Method Detail

encode

public static java.lang.String encode(java.lang.String string)
Encodes characters as escape sequences to prevent errors when passed to a SQL statement Actual chars requiring encoding are: ', newline, \,



Copyright © 1999-2004 enableIT.org. All Rights Reserved.