Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
396248a6
Kaydet (Commit)
396248a6
authored
Şub 03, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Get rid of macros
Change-Id: Ic43441201309c3b466ed3dc7a5e85d0d006c0e44
üst
ed69dd79
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
95 additions
and
31 deletions
+95
-31
mysqlc_connection.cxx
mysqlc/source/mysqlc_connection.cxx
+16
-2
mysqlc_connection.hxx
mysqlc/source/mysqlc_connection.hxx
+11
-1
mysqlc_preparedstatement.cxx
mysqlc/source/mysqlc_preparedstatement.cxx
+17
-1
mysqlc_preparedstatement.hxx
mysqlc/source/mysqlc_preparedstatement.hxx
+11
-1
mysqlc_resultset.cxx
mysqlc/source/mysqlc_resultset.cxx
+0
-1
mysqlc_resultset.hxx
mysqlc/source/mysqlc_resultset.hxx
+10
-1
mysqlc_statement.cxx
mysqlc/source/mysqlc_statement.cxx
+18
-1
mysqlc_statement.hxx
mysqlc/source/mysqlc_statement.hxx
+11
-1
mysqlc_subcomponent.hxx
mysqlc/source/mysqlc_subcomponent.hxx
+1
-22
No files found.
mysqlc/source/mysqlc_connection.cxx
Dosyayı görüntüle @
396248a6
...
@@ -221,10 +221,24 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue >
...
@@ -221,10 +221,24 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue >
}
}
/* }}} */
/* }}} */
OUString
OConnection
::
getImplementationName
()
throw
(
css
::
uno
::
RuntimeException
)
{
return
OUString
(
"com.sun.star.sdbc.drivers.mysqlc.OConnection"
);
}
// XServiceInfo
css
::
uno
::
Sequence
<
OUString
>
OConnection
::
getSupportedServiceNames
()
IMPLEMENT_SERVICE_INFO
(
OConnection
,
"com.sun.star.sdbc.drivers.mysqlc.OConnection"
,
"com.sun.star.sdbc.Connection"
)
throw
(
css
::
uno
::
RuntimeException
)
{
css
::
uno
::
Sequence
<
OUString
>
s
(
1
);
s
[
0
]
=
"com.sun.star.sdbc.Connection"
;
return
s
;
}
sal_Bool
OConnection
::
supportsService
(
OUString
const
&
ServiceName
)
throw
(
css
::
uno
::
RuntimeException
)
{
return
cppu
::
supportsService
(
this
,
ServiceName
);
}
/* {{{ OConnection::createStatement() -I- */
/* {{{ OConnection::createStatement() -I- */
Reference
<
XStatement
>
SAL_CALL
OConnection
::
createStatement
()
Reference
<
XStatement
>
SAL_CALL
OConnection
::
createStatement
()
...
...
mysqlc/source/mysqlc_connection.hxx
Dosyayı görüntüle @
396248a6
...
@@ -147,7 +147,17 @@ namespace connectivity
...
@@ -147,7 +147,17 @@ namespace connectivity
virtual
void
SAL_CALL
release
()
throw
();
virtual
void
SAL_CALL
release
()
throw
();
// XServiceInfo
// XServiceInfo
DECLARE_SERVICE_INFO
();
virtual
OUString
SAL_CALL
getImplementationName
()
throw
(
css
::
uno
::
RuntimeException
)
SAL_OVERRIDE
;
virtual
sal_Bool
SAL_CALL
supportsService
(
OUString
const
&
ServiceName
)
throw
(
css
::
uno
::
RuntimeException
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedServiceNames
()
throw
(
css
::
uno
::
RuntimeException
)
SAL_OVERRIDE
;
// XConnection
// XConnection
my_XStatementRef
SAL_CALL
createStatement
()
my_XStatementRef
SAL_CALL
createStatement
()
throw
(
SQLException
,
RuntimeException
);
throw
(
SQLException
,
RuntimeException
);
...
...
mysqlc/source/mysqlc_preparedstatement.cxx
Dosyayı görüntüle @
396248a6
...
@@ -59,9 +59,25 @@ static inline char * my_i_to_a(char * buf, size_t buf_size, int a)
...
@@ -59,9 +59,25 @@ static inline char * my_i_to_a(char * buf, size_t buf_size, int a)
}
}
/* }}} */
/* }}} */
OUString
OPreparedStatement
::
getImplementationName
()
throw
(
css
::
uno
::
RuntimeException
)
{
return
OUString
(
"com.sun.star.sdbcx.mysqlc.PreparedStatement"
);
}
IMPLEMENT_SERVICE_INFO
(
OPreparedStatement
,
"com.sun.star.sdbcx.mysqlc.PreparedStatement"
,
"com.sun.star.sdbc.PreparedStatement"
);
css
::
uno
::
Sequence
<
OUString
>
OPreparedStatement
::
getSupportedServiceNames
()
throw
(
css
::
uno
::
RuntimeException
)
{
css
::
uno
::
Sequence
<
OUString
>
s
(
1
);
s
[
0
]
=
"com.sun.star.sdbc.PreparedStatement"
;
return
s
;
}
sal_Bool
OPreparedStatement
::
supportsService
(
OUString
const
&
ServiceName
)
throw
(
css
::
uno
::
RuntimeException
)
{
return
cppu
::
supportsService
(
this
,
ServiceName
);
}
/* {{{ OPreparedStatement::OPreparedStatement() -I- */
/* {{{ OPreparedStatement::OPreparedStatement() -I- */
OPreparedStatement
::
OPreparedStatement
(
OConnection
*
_pConnection
,
sql
::
PreparedStatement
*
_cppPrepStmt
)
OPreparedStatement
::
OPreparedStatement
(
OConnection
*
_pConnection
,
sql
::
PreparedStatement
*
_cppPrepStmt
)
...
...
mysqlc/source/mysqlc_preparedstatement.hxx
Dosyayı görüntüle @
396248a6
...
@@ -62,7 +62,17 @@ namespace connectivity
...
@@ -62,7 +62,17 @@ namespace connectivity
throw
(
::
com
::
sun
::
star
::
uno
::
Exception
);
throw
(
::
com
::
sun
::
star
::
uno
::
Exception
);
virtual
~
OPreparedStatement
();
virtual
~
OPreparedStatement
();
public
:
public
:
DECLARE_SERVICE_INFO
();
virtual
OUString
SAL_CALL
getImplementationName
()
throw
(
css
::
uno
::
RuntimeException
)
SAL_OVERRIDE
;
virtual
sal_Bool
SAL_CALL
supportsService
(
OUString
const
&
ServiceName
)
throw
(
css
::
uno
::
RuntimeException
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedServiceNames
()
throw
(
css
::
uno
::
RuntimeException
)
SAL_OVERRIDE
;
OPreparedStatement
(
OConnection
*
_pConnection
,
sql
::
PreparedStatement
*
cppPrepStmt
);
OPreparedStatement
(
OConnection
*
_pConnection
,
sql
::
PreparedStatement
*
cppPrepStmt
);
//XInterface
//XInterface
...
...
mysqlc/source/mysqlc_resultset.cxx
Dosyayı görüntüle @
396248a6
...
@@ -49,7 +49,6 @@ using ::osl::MutexGuard;
...
@@ -49,7 +49,6 @@ using ::osl::MutexGuard;
#include <stdio.h>
#include <stdio.h>
// IMPLEMENT_SERVICE_INFO(OResultSet,"com.sun.star.sdbcx.OResultSet","com.sun.star.sdbc.ResultSet");
/* {{{ OResultSet::getImplementationName() -I- */
/* {{{ OResultSet::getImplementationName() -I- */
OUString
SAL_CALL
OResultSet
::
getImplementationName
()
OUString
SAL_CALL
OResultSet
::
getImplementationName
()
throw
(
RuntimeException
)
throw
(
RuntimeException
)
...
...
mysqlc/source/mysqlc_resultset.hxx
Dosyayı görüntüle @
396248a6
...
@@ -93,7 +93,16 @@ namespace connectivity
...
@@ -93,7 +93,16 @@ namespace connectivity
virtual
~
OResultSet
();
virtual
~
OResultSet
();
public
:
public
:
DECLARE_SERVICE_INFO
();
virtual
OUString
SAL_CALL
getImplementationName
()
throw
(
css
::
uno
::
RuntimeException
)
SAL_OVERRIDE
;
virtual
sal_Bool
SAL_CALL
supportsService
(
OUString
const
&
ServiceName
)
throw
(
css
::
uno
::
RuntimeException
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedServiceNames
()
throw
(
css
::
uno
::
RuntimeException
)
SAL_OVERRIDE
;
OResultSet
(
OCommonStatement
*
pStmt
,
sql
::
ResultSet
*
result
,
rtl_TextEncoding
_encoding
);
OResultSet
(
OCommonStatement
*
pStmt
,
sql
::
ResultSet
*
result
,
rtl_TextEncoding
_encoding
);
...
...
mysqlc/source/mysqlc_statement.cxx
Dosyayı görüntüle @
396248a6
...
@@ -457,7 +457,24 @@ void OCommonStatement::getFastPropertyValue(Any& _rValue, sal_Int32 nHandle) con
...
@@ -457,7 +457,24 @@ void OCommonStatement::getFastPropertyValue(Any& _rValue, sal_Int32 nHandle) con
}
}
/* }}} */
/* }}} */
IMPLEMENT_SERVICE_INFO
(
OStatement
,
"com.sun.star.sdbcx.OStatement"
,
"com.sun.star.sdbc.Statement"
);
OUString
OStatement
::
getImplementationName
()
throw
(
css
::
uno
::
RuntimeException
)
{
return
OUString
(
"com.sun.star.sdbcx.OStatement"
);
}
css
::
uno
::
Sequence
<
OUString
>
OStatement
::
getSupportedServiceNames
()
throw
(
css
::
uno
::
RuntimeException
)
{
css
::
uno
::
Sequence
<
OUString
>
s
(
1
);
s
[
0
]
=
"com.sun.star.sdbc.Statement"
;
return
s
;
}
sal_Bool
OStatement
::
supportsService
(
OUString
const
&
ServiceName
)
throw
(
css
::
uno
::
RuntimeException
)
{
return
cppu
::
supportsService
(
this
,
ServiceName
);
}
/* {{{ OCommonStatement::acquire() -I- */
/* {{{ OCommonStatement::acquire() -I- */
void
SAL_CALL
OCommonStatement
::
acquire
()
void
SAL_CALL
OCommonStatement
::
acquire
()
...
...
mysqlc/source/mysqlc_statement.hxx
Dosyayı görüntüle @
396248a6
...
@@ -173,7 +173,17 @@ namespace connectivity
...
@@ -173,7 +173,17 @@ namespace connectivity
public
:
public
:
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird:
// ein Konstruktor, der fuer das Returnen des Objektes benoetigt wird:
OStatement
(
OConnection
*
_pConnection
,
sql
::
Statement
*
_cppStatement
)
:
OCommonStatement
(
_pConnection
,
_cppStatement
)
{}
OStatement
(
OConnection
*
_pConnection
,
sql
::
Statement
*
_cppStatement
)
:
OCommonStatement
(
_pConnection
,
_cppStatement
)
{}
DECLARE_SERVICE_INFO
();
virtual
OUString
SAL_CALL
getImplementationName
()
throw
(
css
::
uno
::
RuntimeException
)
SAL_OVERRIDE
;
virtual
sal_Bool
SAL_CALL
supportsService
(
OUString
const
&
ServiceName
)
throw
(
css
::
uno
::
RuntimeException
)
SAL_OVERRIDE
;
virtual
css
::
uno
::
Sequence
<
OUString
>
SAL_CALL
getSupportedServiceNames
()
throw
(
css
::
uno
::
RuntimeException
)
SAL_OVERRIDE
;
Any
SAL_CALL
queryInterface
(
const
::
com
::
sun
::
star
::
uno
::
Type
&
rType
)
Any
SAL_CALL
queryInterface
(
const
::
com
::
sun
::
star
::
uno
::
Type
&
rType
)
throw
(
RuntimeException
);
throw
(
RuntimeException
);
...
...
mysqlc/source/mysqlc_subcomponent.hxx
Dosyayı görüntüle @
396248a6
...
@@ -194,29 +194,8 @@ namespace connectivity
...
@@ -194,29 +194,8 @@ namespace connectivity
return
aReturn
;
return
aReturn
;
}
}
}
}
#define DECLARE_SERVICE_INFO() \
virtual OUString SAL_CALL getImplementationName() throw (::com::sun::star::uno::RuntimeException); \
virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw(::com::sun::star::uno::RuntimeException); \
virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException)
#define IMPLEMENT_SERVICE_INFO(classname, implasciiname, serviceasciiname) \
OUString SAL_CALL classname::getImplementationName() throw (::com::sun::star::uno::RuntimeException) \
{ \
return OUString::createFromAscii(implasciiname); \
} \
::com::sun::star::uno::Sequence< OUString > SAL_CALL classname::getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException) \
{ \
::com::sun::star::uno::Sequence< OUString > aSupported(1); \
aSupported[0] = OUString::createFromAscii(serviceasciiname); \
return aSupported; \
} \
sal_Bool SAL_CALL classname::supportsService(const OUString& _rServiceName) throw(::com::sun::star::uno::RuntimeException) \
{ \
return cppu::supportsService(this, _rServiceName); \
}
}
}
#endif // _CONNECTIVITY_OSUBCOMPONENT_HXX_
#endif // _CONNECTIVITY_OSUBCOMPONENT_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment