OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.parser.extension.ddl.heavysql.HeavySqlSanitizedString Class Reference
+ Collaboration diagram for com.mapd.parser.extension.ddl.heavysql.HeavySqlSanitizedString:

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  } else if (s.startsWith("\"") && s.endsWith("\"")) {
21  sanitized_s = s.substring(1, s.length() - 1);
22  }
23  sanitized_s = sanitized_s.replace("''", "'");
24  return sanitized_s;
25  }

+ Here is the caller graph for this function:

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

Definition at line 28 of file HeavySqlSanitizedString.java.

References com.mapd.parser.extension.ddl.heavysql.HeavySqlSanitizedString.string.

Referenced by com.mapd.parser.extension.ddl.SqlShowForeignServers.Builder.addFilter(), and com.mapd.parser.extension.ddl.SqlCreateForeignTable.SqlCreateForeignTable().

+ Here is the caller graph for this function:

Member Data Documentation

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

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