LibreOffice Module connectivity (master) 1
Public Member Functions | List of all members
connectivity::OSQLInternalNode Class Referencefinal

special node for avoiding memory leaks More...

#include <internalnode.hxx>

Inheritance diagram for connectivity::OSQLInternalNode:
[legend]
Collaboration diagram for connectivity::OSQLInternalNode:
[legend]

Public Member Functions

 OSQLInternalNode (const char *pNewValue, SQLNodeType eNodeType, sal_uInt32 nNodeID=0)
 
 OSQLInternalNode (std::string_view _rNewValue, SQLNodeType eNodeType, sal_uInt32 nNodeID=0)
 
 OSQLInternalNode (const OUString &_rNewValue, SQLNodeType eNodeType, sal_uInt32 nNodeID=0)
 
virtual ~OSQLInternalNode () override
 
- Public Member Functions inherited from connectivity::OSQLParseNode
 OSQLParseNode (const char *_pValueStr, SQLNodeType _eNodeType, sal_uInt32 _nNodeID=0)
 
 OSQLParseNode (std::string_view _rValue, SQLNodeType eNewNodeType, sal_uInt32 nNewNodeID=0)
 
 OSQLParseNode (OUString _sValue, SQLNodeType _eNodeType, sal_uInt32 _nNodeID=0)
 
 OSQLParseNode (const OSQLParseNode &rParseNode)
 
OSQLParseNodeoperator= (const OSQLParseNode &rParseNode)
 
bool operator== (OSQLParseNode const &rParseNode) const
 
virtual ~OSQLParseNode ()
 
OSQLParseNodegetParent () const
 
void setParent (OSQLParseNode *pParseNode)
 
size_t count () const
 
OSQLParseNodegetChild (sal_uInt32 nPos) const
 
void append (OSQLParseNode *pNewSubTree)
 
void insert (sal_uInt32 nPos, OSQLParseNode *pNewSubTree)
 
void replaceAndDelete (OSQLParseNode *pOldSubTree, OSQLParseNode *pNewSubTree)
 
OSQLParseNoderemoveAt (sal_uInt32 nPos)
 
void replaceNodeValue (const OUString &rTableAlias, const OUString &rColumnName)
 
bool parseNodeToExecutableStatement (OUString &_out_rString, const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, OSQLParser &_rParser, css::sdbc::SQLException *_pErrorHolder) const
 parses the node to a string which can be passed to a driver's connection for execution More...
 
void parseNodeToStr (OUString &rString, const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, const IParseContext *pContext=nullptr, bool _bIntl=false, bool _bQuote=true) const
 
void parseNodeToPredicateStr (OUString &rString, const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter, const css::lang::Locale &rIntl, OUString _sDec, const IParseContext *pContext=nullptr) const
 
void parseNodeToPredicateStr (OUString &rString, const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter, const css::uno::Reference< css::beans::XPropertySet > &_xField, const OUString &_sTableAlias, const css::lang::Locale &rIntl, OUString strDec, const IParseContext *pContext=nullptr) const
 
OSQLParseNodegetByRule (OSQLParseNode::Rule eRule) const
 
void showParseTree (OUString &rString) const
 
void showParseTree (OUStringBuffer &_inout_rBuf, sal_uInt32 nLevel) const
 
SQLNodeType getNodeType () const
 
sal_uInt32 getRuleID () const
 
Rule getKnownRuleID () const
 returns the ID of the rule represented by the node If the node does not represent a rule, UNKNOWN_RULE is returned More...
 
sal_uInt32 getTokenID () const
 
bool isRule () const
 
bool isToken () const
 
const OUString & getTokenValue () const
 
bool isLeaf () const
 

Additional Inherited Members

- Public Types inherited from connectivity::OSQLParseNode
enum  Rule {
  UNKNOWN_RULE = 0 ,
  select_statement ,
  table_exp ,
  table_ref_commalist ,
  table_ref ,
  catalog_name ,
  schema_name ,
  table_name ,
  opt_column_commalist ,
  column_commalist ,
  column_ref_commalist ,
  column_ref ,
  opt_order_by_clause ,
  ordering_spec_commalist ,
  ordering_spec ,
  opt_asc_desc ,
  where_clause ,
  opt_where_clause ,
  search_condition ,
  comparison ,
  comparison_predicate ,
  between_predicate ,
  like_predicate ,
  opt_escape ,
  test_for_null ,
  scalar_exp_commalist ,
  scalar_exp ,
  parameter_ref ,
  parameter ,
  general_set_fct ,
  range_variable ,
  column ,
  delete_statement_positioned ,
  delete_statement_searched ,
  update_statement_positioned ,
  update_statement_searched ,
  assignment_commalist ,
  assignment ,
  values_or_query_spec ,
  insert_statement ,
  insert_atom_commalist ,
  insert_atom ,
  from_clause ,
  qualified_join ,
  cross_union ,
  select_sublist ,
  derived_column ,
  column_val ,
  set_fct_spec ,
  boolean_term ,
  boolean_primary ,
  num_value_exp ,
  join_type ,
  position_exp ,
  extract_exp ,
  length_exp ,
  char_value_fct ,
  odbc_call_spec ,
  in_predicate ,
  existence_test ,
  unique_test ,
  all_or_any_predicate ,
  named_columns_join ,
  join_condition ,
  joined_table ,
  boolean_factor ,
  sql_not ,
  manipulative_statement ,
  subquery ,
  value_exp_commalist ,
  odbc_fct_spec ,
  union_statement ,
  outer_join_type ,
  char_value_exp ,
  term ,
  value_exp_primary ,
  value_exp ,
  selection ,
  fold ,
  char_substring_fct ,
  factor ,
  base_table_def ,
  base_table_element_commalist ,
  data_type ,
  column_def ,
  table_node ,
  as_clause ,
  opt_as ,
  op_column_commalist ,
  table_primary_as_range_column ,
  datetime_primary ,
  concatenation ,
  char_factor ,
  bit_value_fct ,
  comparison_predicate_part_2 ,
  parenthesized_boolean_value_expression ,
  character_string_type ,
  other_like_predicate_part_2 ,
  between_predicate_part_2 ,
  null_predicate_part_2 ,
  cast_spec ,
  window_function ,
  rule_count
}
 
- Static Public Member Functions inherited from connectivity::OSQLParseNode
static void negateSearchCondition (OSQLParseNode *&pSearchCondition, bool bNegate=false)
 
static void disjunctiveNormalForm (OSQLParseNode *&pSearchCondition)
 
static void absorptions (OSQLParseNode *&pSearchCondition)
 
static void eraseBraces (OSQLParseNode *&pSearchCondition)
 
static void compress (OSQLParseNode *&pSearchCondition)
 
static bool getTableComponents (const OSQLParseNode *_pTableNode, css::uno::Any &_rCatalog, OUString &_rSchema, OUString &_rTable, const css::uno::Reference< css::sdbc::XDatabaseMetaData > &_xMetaData)
 
static void substituteParameterNames (OSQLParseNode const *_pNode)
 
static OUString getTableRange (const OSQLParseNode *_pTableRef)
 return a table range when it exists. More...
 
- Protected Member Functions inherited from connectivity::OSQLParseNode
void parseNodeToStr (OUString &rString, const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, const css::uno::Reference< css::util::XNumberFormatter > &xFormatter, const css::uno::Reference< css::beans::XPropertySet > &_xField, const OUString &_sPredicateTableAlias, const css::lang::Locale &rIntl, const IParseContext *pContext, bool _bIntl, bool _bQuote, OUString _sDecSep, bool _bPredicate) const
 

Detailed Description

special node for avoiding memory leaks

Definition at line 34 of file internalnode.hxx.

Constructor & Destructor Documentation

◆ OSQLInternalNode() [1/3]

OSQLInternalNode::OSQLInternalNode ( const char *  pNewValue,
SQLNodeType  eNodeType,
sal_uInt32  nNodeID = 0 
)

Definition at line 26 of file internalnode.cxx.

References connectivity::OSQLParser::s_pGarbageCollector.

◆ OSQLInternalNode() [2/3]

OSQLInternalNode::OSQLInternalNode ( std::string_view  _rNewValue,
SQLNodeType  eNodeType,
sal_uInt32  nNodeID = 0 
)

Definition at line 36 of file internalnode.cxx.

References connectivity::OSQLParser::s_pGarbageCollector.

◆ OSQLInternalNode() [3/3]

OSQLInternalNode::OSQLInternalNode ( const OUString &  _rNewValue,
SQLNodeType  eNodeType,
sal_uInt32  nNodeID = 0 
)

Definition at line 46 of file internalnode.cxx.

References connectivity::OSQLParser::s_pGarbageCollector.

◆ ~OSQLInternalNode()

OSQLInternalNode::~OSQLInternalNode ( )
overridevirtual

Definition at line 56 of file internalnode.cxx.

References connectivity::OSQLParser::s_pGarbageCollector.


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