OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.parser.extension.ddl.heavysql.HeavySqlSanitizedString Class Reference

Public Member Functions

 HeavySqlSanitizedString (final String s)
 
 HeavySqlSanitizedString (final SqlNode node)
 
String toString ()
 

Private Member Functions

String sanitizeString (final String s)
 

Private Attributes

String string
 

Detailed Description

Definition at line 5 of file HeavySqlSanitizedString.java.

Constructor & Destructor Documentation

com.mapd.parser.extension.ddl.heavysql.HeavySqlSanitizedString.HeavySqlSanitizedString ( final String  s)
inline

Definition at line 8 of file HeavySqlSanitizedString.java.

References com.mapd.parser.extension.ddl.heavysql.HeavySqlSanitizedString.sanitizeString().

8  {
9  this.string = sanitizeString(s);
10  }

+ Here is the call graph for this function:

com.mapd.parser.extension.ddl.heavysql.HeavySqlSanitizedString.HeavySqlSanitizedString ( final SqlNode  node)
inline

Definition at line 12 of file HeavySqlSanitizedString.java.

References com.mapd.parser.extension.ddl.heavysql.HeavySqlSanitizedString.sanitizeString().

12  {
13  this.string = sanitizeString(node.toString());
14  }

+ Here is the call graph for this function:

Member Function Documentation

String com.mapd.parser.extension.ddl.heavysql.HeavySqlSanitizedString.sanitizeString ( final String  s)
inlineprivate

Definition at line 16 of file HeavySqlSanitizedString.java.

Referenced by com.mapd.parser.extension.ddl.heavysql.HeavySqlSanitizedString.HeavySqlSanitizedString().

16  {
17  String sanitized_s = s;
18  if (s.startsWith("'") && s.endsWith("'")) {
19  sanitized_s = s.substring(1, s.length() - 1);
20  }
21  sanitized_s = sanitized_s.replace("''", "'");
22  return sanitized_s;
23  }

+ Here is the caller graph for this function:

String com.mapd.parser.extension.ddl.heavysql.HeavySqlSanitizedString.toString ( )
inline

Member Data Documentation

String com.mapd.parser.extension.ddl.heavysql.HeavySqlSanitizedString.string
private

The documentation for this class was generated from the following file: