edu.wpi.cs.DSRG.xmldb.Utils
Class OracleEncoding

java.lang.Object
  |
  +--edu.wpi.cs.DSRG.xmldb.Utils.OracleEncoding

public class OracleEncoding
extends java.lang.Object

This class is used to encode the Text, or other values before send to the Oracle database. For Text, if we want to express ' in the value, we have to use ''.


Constructor Summary
OracleEncoding()
           
 
Method Summary
static java.lang.String encode(java.lang.String value)
          Encode the value to change "'" into "''".
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

OracleEncoding

public OracleEncoding()
Method Detail

encode

public static java.lang.String encode(java.lang.String value)
Encode the value to change "'" into "''".