OmniSciDB  2e3a973ef4
com.mapd.parser.extension.ddl.omnisql.OmniSqlSanitizedString Class Reference

Public Member Functions

 OmniSqlSanitizedString (final String s)
 
 OmniSqlSanitizedString (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 OmniSqlSanitizedString.java.

Constructor & Destructor Documentation

◆ OmniSqlSanitizedString() [1/2]

com.mapd.parser.extension.ddl.omnisql.OmniSqlSanitizedString.OmniSqlSanitizedString ( final String  s)
inline

Definition at line 8 of file OmniSqlSanitizedString.java.

References com.mapd.parser.extension.ddl.omnisql.OmniSqlSanitizedString.sanitizeString().

8  {
9  this.string = sanitizeString(s);
10  }
+ Here is the call graph for this function:

◆ OmniSqlSanitizedString() [2/2]

com.mapd.parser.extension.ddl.omnisql.OmniSqlSanitizedString.OmniSqlSanitizedString ( final SqlNode  node)
inline

Definition at line 12 of file OmniSqlSanitizedString.java.

References com.mapd.parser.extension.ddl.omnisql.OmniSqlSanitizedString.sanitizeString().

12  {
13  this.string = sanitizeString(node.toString());
14  }
+ Here is the call graph for this function:

Member Function Documentation

◆ sanitizeString()

String com.mapd.parser.extension.ddl.omnisql.OmniSqlSanitizedString.sanitizeString ( final String  s)
inlineprivate

Definition at line 16 of file OmniSqlSanitizedString.java.

Referenced by com.mapd.parser.extension.ddl.omnisql.OmniSqlSanitizedString.OmniSqlSanitizedString().

16  {
17  if (s.startsWith("'") && s.endsWith("'")) {
18  return s.substring(1, s.length() - 1);
19  }
20  return s;
21  }
+ Here is the caller graph for this function:

◆ toString()

String com.mapd.parser.extension.ddl.omnisql.OmniSqlSanitizedString.toString ( )
inline

Definition at line 24 of file OmniSqlSanitizedString.java.

References com.mapd.parser.extension.ddl.omnisql.OmniSqlSanitizedString.string.

Referenced by com.mapd.parser.extension.ddl.SqlCreateForeignTable.SqlCreateForeignTable(), and com.mapd.parser.extension.ddl.SqlKillQuery.SqlKillQuery().

+ Here is the caller graph for this function:

Member Data Documentation

◆ string

String com.mapd.parser.extension.ddl.omnisql.OmniSqlSanitizedString.string
private

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