Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


---
 connectivity/inc/connectivity/sqliterator.hxx |   30 +++++++++++-------------
 1 files changed, 14 insertions(+), 16 deletions(-)

diff --git a/connectivity/inc/connectivity/sqliterator.hxx 
b/connectivity/inc/connectivity/sqliterator.hxx
index 6512752..0593aa1 100644
--- a/connectivity/inc/connectivity/sqliterator.hxx
+++ b/connectivity/inc/connectivity/sqliterator.hxx
@@ -67,10 +67,10 @@ namespace connectivity
     {
     private:
         ::com::sun::star::sdbc::SQLException            m_aErrors;                 // conatins the 
error while iterating through the statement
-        const OSQLParseNode*                                       m_pParseTree;               // 
aktueller ParseTree
+        const OSQLParseNode*                                       m_pParseTree;               // 
current ParseTree
         const OSQLParser&                                                  m_rParser;              
    // if set used for general error messages from the context
-        OSQLStatementType                                                  m_eStatementType;   // 
Art des Statements
-        ::rtl::Reference<OSQLColumns>                              m_aSelectColumns;   // alle 
Spalten aus dem Select-Clause
+        OSQLStatementType                                                  m_eStatementType;
+        ::rtl::Reference<OSQLColumns>                              m_aSelectColumns;   // all 
columns from the Select clause
         ::rtl::Reference<OSQLColumns>                              m_aParameters;              // 
all parameters
         ::rtl::Reference<OSQLColumns>                              m_aGroupColumns;    // the 
group by columns
         ::rtl::Reference<OSQLColumns>                              m_aOrderColumns;    // the 
order by columns
@@ -79,7 +79,7 @@ namespace connectivity
         ::std::auto_ptr< OSQLParseTreeIteratorImpl >    m_pImpl;
 
         void                           traverseParameter(const OSQLParseNode* _pParseNode,const 
OSQLParseNode* _pColumnRef,const ::rtl::OUString& _aColumnName,const ::rtl::OUString& _aTableRange, 
const ::rtl::OUString& _rColumnAlias);
-        // F"ugt eine Tabelle in die Map ein
+        // inserts a table into the map
         void                           traverseOneTableName( OSQLTables& _rTables,const 
OSQLParseNode * pTableName, const ::rtl::OUString & rTableRange );
         void                           traverseORCriteria(OSQLParseNode * pSearchCondition);
         void                           traverseANDCriteria(OSQLParseNode * pSearchCondition);
@@ -124,11 +124,10 @@ namespace connectivity
       protected:
         void setSelectColumnName(::rtl::Reference<OSQLColumns>& _rColumns,const ::rtl::OUString & 
rColumnName,const ::rtl::OUString & rColumnAlias, const ::rtl::OUString & rTableRange,sal_Bool 
bFkt=sal_False,sal_Int32 _nType = com::sun::star::sdbc::DataType::VARCHAR,sal_Bool 
bAggFkt=sal_False);
         void appendColumns(::rtl::Reference<OSQLColumns>& _rColumns,const ::rtl::OUString& 
_rTableAlias,const OSQLTable& _rTable);
-        // Weitere Member-Variable, die in den "set"-Funktionen zur
-        // Verfuegung stehen sollen, koennen in der abgeleiteten Klasse
-        // definiert werden und z. B. in deren Konstruktor initialisiert
-        // bzw. nach Benutzung der "traverse"-Routinen mit Hilfe weiterer
-        // Funktionen abgefragt werden.
+        // Other member variables that should be available in the "set" functions
+        // can be defined in the derived class. They can be initialized
+        // in its constructor and, after the "traverse" routines have been used,
+        // they can be queried using other functions.
 
 
       private:
@@ -154,13 +153,13 @@ namespace connectivity
 
         void dispose();
         bool isCaseSensitive() const;
-        // Der zu analysierende/zu traversierende Parse Tree:
-        // bei "Ubergabe von NULL wird der aktuelle Parsetree gel"oscht und der Fehlerstatus 
gecleared
+        // The parse tree to be analysed/traversed:
+        // If NULL is passed, the current parse tree will be deleted and the error status cleared.
         void setParseTree(const OSQLParseNode * pNewParseTree);
 //             void setParser(const OSQLParser* _pParser) { m_pParser = _pParser; }
         const OSQLParseNode * getParseTree() const { return m_pParseTree; };
 
-        // Teilbaueme bei einem select statement
+        // subtrees in case of a select statement
         const OSQLParseNode* getWhereTree() const;
         const OSQLParseNode* getOrderTree() const;
         const OSQLParseNode* getGroupByTree() const;
@@ -178,7 +177,7 @@ namespace connectivity
         inline const ::com::sun::star::sdbc::SQLException&   getErrors() const { return m_aErrors; 
}
         inline bool hasErrors() const { return m_aErrors.Message.getLength() > 0; }
 
-        // Statement-Typ (wird bereits in setParseTree gesetzt):
+        // statement type (already set in setParseTree):
         OSQLStatementType getStatementType() const { return m_eStatementType; }
 
         /** traverses the complete statement tree, and fills all our data with
@@ -212,7 +211,7 @@ namespace connectivity
         */
         void traverseSome( sal_uInt32 _nIncludeMask );
 
-        // Die TableRangeMap enth"alt alle Tabellen unter dem zugeh"origen Rangenamen der zuerst 
gefunden wird
+        // The TableRangeMap contains all tables associated with the range name found first.
         const OSQLTables& getTables() const;
 
         ::rtl::Reference<OSQLColumns> getSelectColumns() const { return m_aSelectColumns;}
@@ -274,8 +273,7 @@ namespace connectivity
                                     ::rtl::OUString &_rColumnName,
                                     ::rtl::OUString& _rTableRange);
 
-        // Ermittelt fuer eine Funktion, Spalten den zugehoeren TableRange,
-        // wenn nicht eindeutig, dann leer
+        // empty if ambiguous
         sal_Bool getColumnTableRange(const OSQLParseNode* pNode, ::rtl::OUString &rTableRange) 
const;
 
         // return true when the tableNode is a rule like catalog_name, schema_name or table_name
-- 
1.7.1


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.