Translate German comments, fix some whitespace

This commit is contained in:
Philipp Weissenbacher
2012-03-01 02:27:38 +01:00
parent ebe26f72e9
commit e5f5ab57a1
22 changed files with 98 additions and 103 deletions

View File

@@ -37,26 +37,26 @@ namespace connectivity
{ {
struct OTypeInfo struct OTypeInfo
{ {
::rtl::OUString aTypeName; // Name des Types in der Datenbank ::rtl::OUString aTypeName; // Name of the type in the database
::rtl::OUString aLiteralPrefix; // Prefix zum Quoten ::rtl::OUString aLiteralPrefix; // Prefix for quoting
::rtl::OUString aLiteralSuffix; // Suffix zum Quoten ::rtl::OUString aLiteralSuffix; // Suffix for quoting
::rtl::OUString aCreateParams; // Parameter zum Erstellen ::rtl::OUString aCreateParams; // Parameter for creating
::rtl::OUString aLocalTypeName; ::rtl::OUString aLocalTypeName;
sal_Int32 nPrecision; // Laenge des Types sal_Int32 nPrecision; // Length of the type
sal_Int16 nMaximumScale; // Nachkommastellen sal_Int16 nMaximumScale; // Decimal places
sal_Int16 nMinimumScale; // Min Nachkommastellen sal_Int16 nMinimumScale; // Minimum decimal places
sal_Int16 nType; // Datenbanktyp sal_Int16 nType; // Database type
sal_Int16 nSearchType; // kann nach dem Typen gesucht werden sal_Int16 nSearchType; // Can we search for the type?
sal_Int16 nNumPrecRadix; // indicating the radix, which is usually 2 or 10 sal_Int16 nNumPrecRadix; // indicating the radix, which is usually 2 or 10
sal_Bool bCurrency : 1, // Waehrung sal_Bool bCurrency : 1, // Currency
bAutoIncrement : 1, // Ist es ein automatisch incrementierendes Feld bAutoIncrement : 1, // Is it an autoincrementing field?
bNullable : 1, // Kann das Feld NULL annehmen bNullable : 1, // Can the field be NULL?
bCaseSensitive : 1, // Ist der Type Casesensitive bCaseSensitive : 1, // Is the type case sensitive?
bUnsigned : 1, // Ist der Type Unsigned bUnsigned : 1, // Is the type unsigned?
bEmpty_1 : 1, // for later use bEmpty_1 : 1, // for later use
bEmpty_2 : 1; bEmpty_2 : 1;

View File

@@ -66,19 +66,17 @@ namespace connectivity
}; };
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
// //
// Template-Klasse WpOLEBase<class T> // Template class WpOLEBase<class T>
// ================================== // ==================================
// //
// Objekte dieser Klasse haelt einen Zeiger auf ein Interface vom Typ T. // Objects of this class contain a pointer to an interface of the type T.
// Es gibt Konstruktoren und Zuweisungsoperator die sicherstellen, dass // The ctors and operator= make sure, that AddRef() and Release() are being
// AddRef() und Release() entsprechend den COM-Konventionen gerufen werden. // called adhering to COM conventions.
// Ein Objekt kann auch keinen Zeiger halten (Nullzeiger), dann ergibt // An object can also hold no pointer (null pointer), calling IsValid() then
// der Aufruf von IsValid() FALSE. // returns false.
// //
// Um effizientes pass-by-value machen zu koennen, ist diese (ebenso wie die // In order to do efficient pass-by-value, this class (as all derived classes)
// abgeleiteten Klassen) eine ganz schmale Wrapper-Klasse unter Vermeidung // is a thin wrapper class, avoiding virtual methods and inlining.
// virtueller Methoden und mit Inlining.
//------------------------------------------------------------------------ //------------------------------------------------------------------------
template<class T> class WpOLEBase : public WpBase template<class T> class WpOLEBase : public WpBase
{ {
@@ -124,29 +122,28 @@ namespace connectivity
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
// //
// Template-Klasse WpOLECollection<class Ts, class T, class WrapT> // Template class WpOLECollection<class Ts, class T, class WrapT>
// =============================================================== // ===============================================================
// //
// Diese Klasse, welche sich von WpOLEBase<Ts> ableitet, abstrahiert die // This class (derived from WpOLEBase<Ts>), abstracts away the properties
// den DAO-Collections gemeinsamen Eigenschaften: // common to DAO collections:
// //
// Sie werden ueber ein Interface Ts (etwa: DAOFields) angesprochen // They are accessed via an interface Ts (e.g. DAOFields) and can return
// und koennen ueber get_Item (hier:GetItem) Items des Typs T (genauer: // Items of the Type T (actually: with the interface T, e.g. DAOField)
// mit Interface T, etwa DAOField) herausgeben. // via get_Item (here GetItem).
// //
// Diese Wrapperklasse gibt aber nicht ein Interface T heraus, // This wrapper class does not expose an interface T, however,
// sondern ein Objekt der Klasse WrapT. Dieses muss eine Konstruktion // it exposes an object of the class WrapT. This must allow a construction
// durch T zulassen, vorzugsweise ist es von WpOLEBase<T> abgeleitet. // by T, preferably it is derived from WpOLEBase<T>.
// //
//------------------------------------------------------------------------ //------------------------------------------------------------------------
template<class Ts, class T, class WrapT> class WpOLECollection : public WpOLEBase<Ts> template<class Ts, class T, class WrapT> class WpOLECollection : public WpOLEBase<Ts>
{ {
public: public:
using WpOLEBase<Ts>::pInterface; using WpOLEBase<Ts>::pInterface;
using WpOLEBase<Ts>::IsValid; using WpOLEBase<Ts>::IsValid;
// Konstruktoren, operator= // Ctors, operator=
// diese rufen nur die Oberklasse // They only call the superclass
WpOLECollection(Ts* pInt=NULL):WpOLEBase<Ts>(pInt){} WpOLECollection(Ts* pInt=NULL):WpOLEBase<Ts>(pInt){}
WpOLECollection(const WpOLECollection& rhs){operator=(rhs);} WpOLECollection(const WpOLECollection& rhs){operator=(rhs);}
inline WpOLECollection& operator=(const WpOLECollection& rhs) inline WpOLECollection& operator=(const WpOLECollection& rhs)
@@ -219,8 +216,8 @@ namespace connectivity
{ {
public: public:
// Konstruktoren, operator= // Ctors, operator=
// diese rufen nur die Oberklasse // They only call the superclass
using WpOLEBase<Ts>::pInterface; using WpOLEBase<Ts>::pInterface;
WpOLEAppendCollection(Ts* pInt=NULL):WpOLECollection<Ts,T,WrapT>(pInt){} WpOLEAppendCollection(Ts* pInt=NULL):WpOLECollection<Ts,T,WrapT>(pInt){}
WpOLEAppendCollection(const WpOLEAppendCollection& rhs){ operator=(rhs); } WpOLEAppendCollection(const WpOLEAppendCollection& rhs){ operator=(rhs); }

View File

@@ -30,7 +30,7 @@
#include <com/sun/star/beans/PropertyAttribute.hpp> #include <com/sun/star/beans/PropertyAttribute.hpp>
// Includes fuer ADO // Includes for ADO
#include "ado_pre_sys_include.h" #include "ado_pre_sys_include.h"
#include <oledb.h> #include <oledb.h>
#include <ocidl.h> #include <ocidl.h>
@@ -152,8 +152,8 @@ namespace connectivity
{ {
public: public:
WpADOCommand(){} WpADOCommand(){}
// Konstruktoren, operator= // Ctors, operator=
// diese rufen nur die Oberklasse // They only call the superclass
WpADOCommand(ADOCommand* pInt) : WpOLEBase<ADOCommand>(pInt){} WpADOCommand(ADOCommand* pInt) : WpOLEBase<ADOCommand>(pInt){}
WpADOCommand(const WpADOCommand& rhs){operator=(rhs);} WpADOCommand(const WpADOCommand& rhs){operator=(rhs);}
@@ -181,7 +181,7 @@ namespace connectivity
ADOParameters* get_Parameters() const; ADOParameters* get_Parameters() const;
sal_Bool put_CommandType( /* [in] */ CommandTypeEnum lCmdType); sal_Bool put_CommandType( /* [in] */ CommandTypeEnum lCmdType);
CommandTypeEnum get_CommandType( ) const ; CommandTypeEnum get_CommandType( ) const ;
// gibt den Namen des Feldes zur"ueck // Returns the field's name
::rtl::OUString GetName() const ; ::rtl::OUString GetName() const ;
sal_Bool put_Name(const ::rtl::OUString& _Name); sal_Bool put_Name(const ::rtl::OUString& _Name);
sal_Bool Cancel(); sal_Bool Cancel();
@@ -191,9 +191,8 @@ namespace connectivity
{ {
public: public:
// Konstruktoren, operator= // Ctors, operator=
// diese rufen nur die Oberklasse // They only call the superclass
WpADOError(ADOError* pInt):WpOLEBase<ADOError>(pInt){} WpADOError(ADOError* pInt):WpOLEBase<ADOError>(pInt){}
WpADOError(const WpADOError& rhs){operator=(rhs);} WpADOError(const WpADOError& rhs){operator=(rhs);}
@@ -218,8 +217,8 @@ namespace connectivity
// friend class WpADOFields; // friend class WpADOFields;
public: public:
// Konstruktoren, operator= // Ctors, operator=
// diese rufen nur die Oberklasse // They only call the superclass
WpADOField(ADOField* pInt=NULL):WpOLEBase<ADOField>(pInt){} WpADOField(ADOField* pInt=NULL):WpOLEBase<ADOField>(pInt){}
WpADOField(const WpADOField& rhs){operator=(rhs);} WpADOField(const WpADOField& rhs){operator=(rhs);}
@@ -232,7 +231,7 @@ namespace connectivity
sal_Int32 GetAttributes() const ; sal_Int32 GetAttributes() const ;
sal_Int32 GetStatus() const ; sal_Int32 GetStatus() const ;
sal_Int32 GetDefinedSize() const ; sal_Int32 GetDefinedSize() const ;
// gibt den Namen des Feldes zur"ueck // Returns the field's name
::rtl::OUString GetName() const ; ::rtl::OUString GetName() const ;
DataTypeEnum GetADOType() const ; DataTypeEnum GetADOType() const ;
void get_Value(OLEVariant& aValVar) const ; void get_Value(OLEVariant& aValVar) const ;
@@ -266,8 +265,8 @@ namespace connectivity
class WpADOProperty: public WpOLEBase<ADOProperty> class WpADOProperty: public WpOLEBase<ADOProperty>
{ {
public: public:
// Konstruktoren, operator= // Ctors, operator=
// diese rufen nur die Oberklasse // They only call the superclass
WpADOProperty(ADOProperty* pInt=NULL):WpOLEBase<ADOProperty>(pInt){} WpADOProperty(ADOProperty* pInt=NULL):WpOLEBase<ADOProperty>(pInt){}
WpADOProperty(const WpADOProperty& rhs){operator=(rhs);} WpADOProperty(const WpADOProperty& rhs){operator=(rhs);}
WpADOProperty& operator=(const WpADOProperty& rhs) WpADOProperty& operator=(const WpADOProperty& rhs)
@@ -288,8 +287,8 @@ namespace connectivity
{ {
public: public:
// Konstruktoren, operator= // Ctors, operator=
// diese rufen nur die Oberklasse // They only call the superclass
WpADORecordset(ADORecordset* pInt=NULL):WpOLEBase<ADORecordset>(pInt){} WpADORecordset(ADORecordset* pInt=NULL):WpOLEBase<ADORecordset>(pInt){}
WpADORecordset(const WpADORecordset& rhs){operator=(rhs);} WpADORecordset(const WpADORecordset& rhs){operator=(rhs);}
WpADORecordset& operator=(const WpADORecordset& rhs) WpADORecordset& operator=(const WpADORecordset& rhs)
@@ -353,8 +352,8 @@ namespace connectivity
class WpADOParameter:public WpOLEBase<ADOParameter> class WpADOParameter:public WpOLEBase<ADOParameter>
{ {
public: public:
// Konstruktoren, operator= // Ctors, operator=
// diese rufen nur die Oberklasse // They only call the superclass
WpADOParameter(ADOParameter* pInt):WpOLEBase<ADOParameter>(pInt){} WpADOParameter(ADOParameter* pInt):WpOLEBase<ADOParameter>(pInt){}
WpADOParameter(const WpADOParameter& rhs):WpOLEBase<ADOParameter>(rhs){} WpADOParameter(const WpADOParameter& rhs):WpOLEBase<ADOParameter>(rhs){}
WpADOParameter& operator=(const WpADOParameter& rhs) WpADOParameter& operator=(const WpADOParameter& rhs)

View File

@@ -46,7 +46,7 @@ namespace connectivity
class ADOS class ADOS
{ {
public: public:
// Auch hier: BSTR mit SysFreeString() freigeben! // Also here: Free BSTR with SysFreeString()!
static OLEString& GetKeyStr(); static OLEString& GetKeyStr();
static const CLSID CLSID_ADOCATALOG_25; static const CLSID CLSID_ADOCATALOG_25;

View File

@@ -78,29 +78,28 @@ namespace connectivity
class java_lang_Class; class java_lang_Class;
class java_lang_Object class java_lang_Object
{ {
// Zuweisungsoperator und Copy Konstruktor sind verboten // operator= and the copy ctor are forbidden
java_lang_Object& operator= (java_lang_Object&); java_lang_Object& operator= (java_lang_Object&);
java_lang_Object(java_lang_Object&); java_lang_Object(java_lang_Object&);
// nur zum Zerstoeren des C++ Pointers in vom JSbxObject // Only to destroy the C++ pointer of Java objects derived from JSbxObject
// abgeleiteten Java Objekten
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xFactory; ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xFactory;
protected: protected:
// der JAVA Handle zu dieser Klasse // The Java handle to this class
jobject object; jobject object;
// Klassendefinition
// neu in SJ2: // Class definiton
static jclass theClass; // die Klasse braucht nur einmal angefordert werden ! // New in SJ2:
static jclass theClass; // The class needs to be requested only once!
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
public: public:
// der Konstruktor, der fuer die abgeleiteten Klassen verwendet // Ctor that should be used for the derived classes
// werden soll.
java_lang_Object( JNIEnv * pEnv, jobject myObj ); java_lang_Object( JNIEnv * pEnv, jobject myObj );
// der eigentliche Konstruktor
// The actual ctor
java_lang_Object(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory=NULL); java_lang_Object(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory=NULL);
virtual ~java_lang_Object(); virtual ~java_lang_Object();

View File

@@ -42,12 +42,12 @@ namespace connectivity
public ::cppu::WeakImplHelper1< ::com::sun::star::sdbc::XArray> public ::cppu::WeakImplHelper1< ::com::sun::star::sdbc::XArray>
{ {
protected: protected:
// statische Daten fuer die Klasse // Static data for the class
static jclass theClass; static jclass theClass;
public: public:
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
virtual ~java_sql_Array(); virtual ~java_sql_Array();
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_sql_Array( JNIEnv * pEnv, jobject myObj ) : java_lang_Object( pEnv, myObj ){} java_sql_Array( JNIEnv * pEnv, jobject myObj ) : java_lang_Object( pEnv, myObj ){}
// XArray // XArray

View File

@@ -43,13 +43,13 @@ namespace connectivity
public ::cppu::WeakImplHelper1< ::com::sun::star::sdbc::XBlob> public ::cppu::WeakImplHelper1< ::com::sun::star::sdbc::XBlob>
{ {
protected: protected:
// statische Daten fuer die Klasse // Static data for the class
static jclass theClass; static jclass theClass;
virtual ~java_sql_Blob(); virtual ~java_sql_Blob();
public: public:
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_sql_Blob( JNIEnv * pEnv, jobject myObj ); java_sql_Blob( JNIEnv * pEnv, jobject myObj );
// XBlob // XBlob

View File

@@ -44,7 +44,7 @@ namespace connectivity
public ::com::sun::star::sdbc::XOutParameters public ::com::sun::star::sdbc::XOutParameters
{ {
protected: protected:
// statische Daten fuer die Klasse // Static data for the class
static jclass theClass; static jclass theClass;
virtual void createStatement(JNIEnv* _pEnv); virtual void createStatement(JNIEnv* _pEnv);
@@ -53,7 +53,7 @@ namespace connectivity
DECLARE_SERVICE_INFO(); DECLARE_SERVICE_INFO();
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_sql_CallableStatement( JNIEnv * pEnv, java_sql_Connection& _rCon, const ::rtl::OUString& sql ); java_sql_CallableStatement( JNIEnv * pEnv, java_sql_Connection& _rCon, const ::rtl::OUString& sql );
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);

View File

@@ -43,13 +43,13 @@ namespace connectivity
public ::cppu::WeakImplHelper1< ::com::sun::star::sdbc::XClob> public ::cppu::WeakImplHelper1< ::com::sun::star::sdbc::XClob>
{ {
protected: protected:
// statische Daten fuer die Klasse // Static data for the class
static jclass theClass; static jclass theClass;
virtual ~java_sql_Clob(); virtual ~java_sql_Clob();
public: public:
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_sql_Clob( JNIEnv * pEnv, jobject myObj ); java_sql_Clob( JNIEnv * pEnv, jobject myObj );
// XClob // XClob

View File

@@ -85,7 +85,7 @@ namespace connectivity
::rtl::OUString impl_getJavaDriverClassPath_nothrow(const ::rtl::OUString& _sDriverClass); ::rtl::OUString impl_getJavaDriverClassPath_nothrow(const ::rtl::OUString& _sDriverClass);
protected: protected:
// statische Daten fuer die Klasse // Static data for the class
static jclass theClass; static jclass theClass;
virtual ~java_sql_Connection(); virtual ~java_sql_Connection();
@@ -94,7 +94,7 @@ namespace connectivity
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
DECLARE_SERVICE_INFO(); DECLARE_SERVICE_INFO();
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_sql_Connection( const java_sql_Driver& _rDriver ); java_sql_Connection( const java_sql_Driver& _rDriver );
sal_Bool construct( const ::rtl::OUString& url, sal_Bool construct( const ::rtl::OUString& url,
const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& info); const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& info);

View File

@@ -46,13 +46,13 @@ namespace connectivity
java_sql_Connection* m_pConnection; java_sql_Connection* m_pConnection;
java::sql::ConnectionLog m_aLogger; java::sql::ConnectionLog m_aLogger;
// statische Daten fuer die Klasse // Static data for the class
static jclass theClass; static jclass theClass;
public: public:
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
virtual ~java_sql_DatabaseMetaData(); virtual ~java_sql_DatabaseMetaData();
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_sql_DatabaseMetaData( JNIEnv * pEnv, jobject myObj, java_sql_Connection& _rConnection ); java_sql_DatabaseMetaData( JNIEnv * pEnv, jobject myObj, java_sql_Connection& _rConnection );
private: private:

View File

@@ -41,12 +41,12 @@ namespace connectivity
class java_sql_DriverPropertyInfo : public java_lang_Object class java_sql_DriverPropertyInfo : public java_lang_Object
{ {
protected: protected:
// statische Daten fuer die Klasse // Static data for the class
static jclass theClass; static jclass theClass;
public: public:
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
virtual ~java_sql_DriverPropertyInfo(); virtual ~java_sql_DriverPropertyInfo();
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_sql_DriverPropertyInfo( JNIEnv * pEnv, jobject myObj ) : java_lang_Object( pEnv, myObj ){} java_sql_DriverPropertyInfo( JNIEnv * pEnv, jobject myObj ) : java_lang_Object( pEnv, myObj ){}
operator ::com::sun::star::sdbc::DriverPropertyInfo(); operator ::com::sun::star::sdbc::DriverPropertyInfo();

View File

@@ -100,7 +100,7 @@ namespace connectivity
::cppu::OBroadcastHelper& rBHelper; ::cppu::OBroadcastHelper& rBHelper;
// statische Daten fuer die Klasse // Static data for the class
static jclass theClass; static jclass theClass;
// OPropertyArrayUsageHelper // OPropertyArrayUsageHelper
@@ -135,7 +135,7 @@ namespace connectivity
public: public:
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_sql_Statement_Base( JNIEnv * pEnv, java_sql_Connection& _rCon ); java_sql_Statement_Base( JNIEnv * pEnv, java_sql_Connection& _rCon );
sal_Int32 getStatementObjectID() const { return m_aLogger.getObjectID(); } sal_Int32 getStatementObjectID() const { return m_aLogger.getObjectID(); }
@@ -194,7 +194,7 @@ namespace connectivity
public ::com::sun::star::lang::XServiceInfo public ::com::sun::star::lang::XServiceInfo
{ {
protected: protected:
// statische Daten fuer die Klasse // Static data for the class
static jclass theClass; static jclass theClass;
virtual void createStatement(JNIEnv* _pEnv); virtual void createStatement(JNIEnv* _pEnv);
@@ -204,7 +204,7 @@ namespace connectivity
DECLARE_SERVICE_INFO(); DECLARE_SERVICE_INFO();
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_sql_Statement( JNIEnv * pEnv, java_sql_Connection& _rCon ) : OStatement_BASE2( pEnv, _rCon){}; java_sql_Statement( JNIEnv * pEnv, java_sql_Connection& _rCon ) : OStatement_BASE2( pEnv, _rCon){};
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);

View File

@@ -49,7 +49,7 @@ namespace connectivity
public ::com::sun::star::lang::XServiceInfo public ::com::sun::star::lang::XServiceInfo
{ {
protected: protected:
// statische Daten fuer die Klasse // Static data for the class
static jclass theClass; static jclass theClass;
virtual void createStatement(JNIEnv* _pEnv); virtual void createStatement(JNIEnv* _pEnv);
@@ -58,7 +58,7 @@ namespace connectivity
DECLARE_SERVICE_INFO(); DECLARE_SERVICE_INFO();
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_sql_PreparedStatement( JNIEnv * pEnv, java_sql_Connection& _rCon,const ::rtl::OUString& sql ); java_sql_PreparedStatement( JNIEnv * pEnv, java_sql_Connection& _rCon,const ::rtl::OUString& sql );
virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);

View File

@@ -42,13 +42,13 @@ namespace connectivity
public ::cppu::WeakImplHelper1< ::com::sun::star::sdbc::XRef> public ::cppu::WeakImplHelper1< ::com::sun::star::sdbc::XRef>
{ {
protected: protected:
// statische Daten fuer die Klasse // Static data for the class
static jclass theClass; static jclass theClass;
virtual ~java_sql_Ref(); virtual ~java_sql_Ref();
public: public:
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_sql_Ref( JNIEnv * pEnv, jobject myObj ); java_sql_Ref( JNIEnv * pEnv, jobject myObj );
// XRef // XRef

View File

@@ -83,7 +83,7 @@ namespace connectivity
void setFetchDirection(sal_Int32 _par0) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); void setFetchDirection(sal_Int32 _par0) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
void setFetchSize(sal_Int32 _par0) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); void setFetchSize(sal_Int32 _par0) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
protected: protected:
// statische Daten fuer die Klasse // Static data for the class
static jclass theClass; static jclass theClass;
// OPropertyArrayUsageHelper // OPropertyArrayUsageHelper
@@ -110,7 +110,7 @@ namespace connectivity
public: public:
DECLARE_SERVICE_INFO(); DECLARE_SERVICE_INFO();
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_sql_ResultSet( JNIEnv * pEnv, jobject myObj, const java::sql::ConnectionLog& _rParentLogger,java_sql_Connection& _rConnection, java_sql_ResultSet( JNIEnv * pEnv, jobject myObj, const java::sql::ConnectionLog& _rParentLogger,java_sql_Connection& _rConnection,
java_sql_Statement_Base* pStmt = NULL ); java_sql_Statement_Base* pStmt = NULL );

View File

@@ -47,13 +47,13 @@ namespace connectivity
java_sql_Connection* m_pConnection; java_sql_Connection* m_pConnection;
sal_Int32 m_nColumnCount; sal_Int32 m_nColumnCount;
// statische Daten fuer die Klasse // Static data for the class
static jclass theClass; static jclass theClass;
virtual ~java_sql_ResultSetMetaData(); virtual ~java_sql_ResultSetMetaData();
public: public:
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_sql_ResultSetMetaData( JNIEnv * pEnv, jobject myObj, const java::sql::ConnectionLog& _rResultSetLogger, java_sql_Connection& _rCon ); java_sql_ResultSetMetaData( JNIEnv * pEnv, jobject myObj, const java::sql::ConnectionLog& _rResultSetLogger, java_sql_Connection& _rCon );
virtual sal_Int32 SAL_CALL getColumnCount( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException); virtual sal_Int32 SAL_CALL getColumnCount( ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);

View File

@@ -41,7 +41,7 @@ namespace connectivity
class java_sql_SQLException : public starsdbc::SQLException class java_sql_SQLException : public starsdbc::SQLException
{ {
public: public:
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_sql_SQLException(){} java_sql_SQLException(){}
java_sql_SQLException( const java_sql_SQLException_BASE& _rException,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> & _rContext); java_sql_SQLException( const java_sql_SQLException_BASE& _rException,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> & _rContext);
}; };
@@ -49,12 +49,12 @@ namespace connectivity
class java_sql_SQLException_BASE : public java_lang_Exception class java_sql_SQLException_BASE : public java_lang_Exception
{ {
protected: protected:
// statische Daten fuer die Klasse // Static data for the class
static jclass theClass; static jclass theClass;
public: public:
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
virtual ~java_sql_SQLException_BASE(); virtual ~java_sql_SQLException_BASE();
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_sql_SQLException_BASE( JNIEnv * pEnv, jobject myObj ); java_sql_SQLException_BASE( JNIEnv * pEnv, jobject myObj );
::rtl::OUString getSQLState() const; ::rtl::OUString getSQLState() const;

View File

@@ -41,12 +41,12 @@ namespace connectivity
class java_sql_SQLWarning_BASE : public java_sql_SQLException_BASE class java_sql_SQLWarning_BASE : public java_sql_SQLException_BASE
{ {
protected: protected:
// statische Daten fuer die Klasse // Static data for the class
static jclass theClass; static jclass theClass;
public: public:
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
virtual ~java_sql_SQLWarning_BASE(); virtual ~java_sql_SQLWarning_BASE();
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_sql_SQLWarning_BASE( JNIEnv * pEnv, jobject myObj ) : java_sql_SQLException_BASE( pEnv, myObj ){} java_sql_SQLWarning_BASE( JNIEnv * pEnv, jobject myObj ) : java_sql_SQLException_BASE( pEnv, myObj ){}
}; };

View File

@@ -47,7 +47,7 @@ namespace connectivity
public: public:
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
virtual ~java_sql_Date(); virtual ~java_sql_Date();
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_sql_Date( JNIEnv * pEnv, jobject myObj ) : java_util_Date(pEnv,myObj){} java_sql_Date( JNIEnv * pEnv, jobject myObj ) : java_util_Date(pEnv,myObj){}
java_sql_Date( const ::com::sun::star::util::Date& _rOut ); java_sql_Date( const ::com::sun::star::util::Date& _rOut );
@@ -68,7 +68,7 @@ namespace connectivity
public: public:
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
virtual ~java_sql_Time(); virtual ~java_sql_Time();
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_sql_Time( JNIEnv * pEnv, jobject myObj ) : java_util_Date( pEnv, myObj ){} java_sql_Time( JNIEnv * pEnv, jobject myObj ) : java_util_Date( pEnv, myObj ){}
java_sql_Time( const ::com::sun::star::util::Time& _rOut ); java_sql_Time( const ::com::sun::star::util::Time& _rOut );
operator ::com::sun::star::util::Time(); operator ::com::sun::star::util::Time();
@@ -86,7 +86,7 @@ namespace connectivity
public: public:
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
virtual ~java_sql_Timestamp(); virtual ~java_sql_Timestamp();
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_sql_Timestamp( JNIEnv * pEnv, jobject myObj ) : java_util_Date( pEnv, myObj ){} java_sql_Timestamp( JNIEnv * pEnv, jobject myObj ) : java_util_Date( pEnv, myObj ){}
java_sql_Timestamp( const ::com::sun::star::util::DateTime& _rOut); java_sql_Timestamp( const ::com::sun::star::util::DateTime& _rOut);
operator ::com::sun::star::util::DateTime(); operator ::com::sun::star::util::DateTime();

View File

@@ -42,12 +42,12 @@ namespace connectivity
class java_util_Date : public java_lang_Object class java_util_Date : public java_lang_Object
{ {
protected: protected:
// statische Daten fuer die Klasse // Static data for the class
static jclass theClass; static jclass theClass;
public: public:
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
virtual ~java_util_Date(); virtual ~java_util_Date();
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_util_Date( JNIEnv * pEnv, jobject myObj ) : java_lang_Object( pEnv, myObj ){} java_util_Date( JNIEnv * pEnv, jobject myObj ) : java_lang_Object( pEnv, myObj ){}
}; };
} }

View File

@@ -35,12 +35,12 @@ namespace connectivity
class java_util_Properties : public java_lang_Object class java_util_Properties : public java_lang_Object
{ {
protected: protected:
// statische Daten fuer die Klasse // Static data for the class
static jclass theClass; static jclass theClass;
public: public:
virtual jclass getMyClass() const; virtual jclass getMyClass() const;
virtual ~java_util_Properties(); virtual ~java_util_Properties();
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird: // A ctor that is needed for returning the object
java_util_Properties( JNIEnv * pEnv, jobject myObj ) : java_lang_Object( pEnv, myObj ){} java_util_Properties( JNIEnv * pEnv, jobject myObj ) : java_lang_Object( pEnv, myObj ){}
java_util_Properties( ); java_util_Properties( );
void setProperty(const ::rtl::OUString key, const ::rtl::OUString& value); void setProperty(const ::rtl::OUString key, const ::rtl::OUString& value);