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
3ec6de78
Kaydet (Commit)
3ec6de78
authored
Kas 21, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:datamembershadow
Change-Id: I773bb19ae33709421fde01426716dcf52065402f
üst
8442bda2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
MacabStatement.cxx
connectivity/source/drivers/macab/MacabStatement.cxx
+10
-11
MacabStatement.hxx
connectivity/source/drivers/macab/MacabStatement.hxx
+1
-1
No files found.
connectivity/source/drivers/macab/MacabStatement.cxx
Dosyayı görüntüle @
3ec6de78
...
...
@@ -65,12 +65,11 @@ IMPLEMENT_SERVICE_INFO(MacabStatement, "com.sun.star.sdbc.drivers.MacabStatement
MacabCommonStatement
::
MacabCommonStatement
(
MacabConnection
*
_pConnection
)
:
MacabCommonStatement_BASE
(
m_aMutex
),
OPropertySetHelper
(
MacabCommonStatement_BASE
::
rBHelper
),
OPropertySetHelper
(
rBHelper
),
m_aParser
(
_pConnection
->
getDriver
()
->
getComponentContext
()),
m_aSQLIterator
(
_pConnection
,
_pConnection
->
createCatalog
()
->
getTables
(),
m_aParser
),
m_pParseTree
(
nullptr
),
m_pConnection
(
_pConnection
),
rBHelper
(
MacabCommonStatement_BASE
::
rBHelper
)
m_pConnection
(
_pConnection
)
{
m_pConnection
->
acquire
();
}
...
...
@@ -374,7 +373,7 @@ void SAL_CALL MacabCommonStatement::cancel( ) throw(RuntimeException)
{
::
osl
::
MutexGuard
aGuard
(
m_aMutex
);
checkDisposed
(
MacabCommonStatement_BASE
::
rBHelper
.
bDisposed
);
checkDisposed
(
rBHelper
.
bDisposed
);
// cancel the current sql statement
}
...
...
@@ -382,7 +381,7 @@ void SAL_CALL MacabCommonStatement::close( ) throw(SQLException, RuntimeExcepti
{
{
::
osl
::
MutexGuard
aGuard
(
m_aMutex
);
checkDisposed
(
MacabCommonStatement_BASE
::
rBHelper
.
bDisposed
);
checkDisposed
(
rBHelper
.
bDisposed
);
}
dispose
();
...
...
@@ -392,7 +391,7 @@ sal_Bool SAL_CALL MacabCommonStatement::execute(
const
OUString
&
sql
)
throw
(
SQLException
,
RuntimeException
)
{
::
osl
::
MutexGuard
aGuard
(
m_aMutex
);
checkDisposed
(
MacabCommonStatement_BASE
::
rBHelper
.
bDisposed
);
checkDisposed
(
rBHelper
.
bDisposed
);
Reference
<
XResultSet
>
xRS
=
executeQuery
(
sql
);
...
...
@@ -403,7 +402,7 @@ Reference< XResultSet > SAL_CALL MacabCommonStatement::executeQuery(
const
OUString
&
sql
)
throw
(
SQLException
,
RuntimeException
)
{
::
osl
::
MutexGuard
aGuard
(
m_aMutex
);
checkDisposed
(
MacabCommonStatement_BASE
::
rBHelper
.
bDisposed
);
checkDisposed
(
rBHelper
.
bDisposed
);
OSL_TRACE
(
"Mac OS Address book - SQL Request: %s"
,
OUtoCStr
(
sql
));
...
...
@@ -462,7 +461,7 @@ OSL_TRACE("Mac OS Address book - SQL Request: %s", OUtoCStr(sql));
Reference
<
XConnection
>
SAL_CALL
MacabCommonStatement
::
getConnection
(
)
throw
(
SQLException
,
RuntimeException
)
{
::
osl
::
MutexGuard
aGuard
(
m_aMutex
);
checkDisposed
(
MacabCommonStatement_BASE
::
rBHelper
.
bDisposed
);
checkDisposed
(
rBHelper
.
bDisposed
);
// just return our connection here
return
m_pConnection
;
...
...
@@ -471,7 +470,7 @@ Reference< XConnection > SAL_CALL MacabCommonStatement::getConnection( ) throw(
sal_Int32
SAL_CALL
MacabCommonStatement
::
executeUpdate
(
const
OUString
&
)
throw
(
SQLException
,
RuntimeException
)
{
::
osl
::
MutexGuard
aGuard
(
m_aMutex
);
checkDisposed
(
MacabCommonStatement_BASE
::
rBHelper
.
bDisposed
);
checkDisposed
(
rBHelper
.
bDisposed
);
// the return values gives information about how many rows are affected by executing the sql statement
return
0
;
...
...
@@ -480,7 +479,7 @@ sal_Int32 SAL_CALL MacabCommonStatement::executeUpdate( const OUString& ) throw(
Any
SAL_CALL
MacabCommonStatement
::
getWarnings
(
)
throw
(
SQLException
,
RuntimeException
)
{
::
osl
::
MutexGuard
aGuard
(
m_aMutex
);
checkDisposed
(
MacabCommonStatement_BASE
::
rBHelper
.
bDisposed
);
checkDisposed
(
rBHelper
.
bDisposed
);
return
makeAny
(
m_aLastWarning
);
}
...
...
@@ -488,7 +487,7 @@ Any SAL_CALL MacabCommonStatement::getWarnings( ) throw(SQLException, RuntimeEx
void
SAL_CALL
MacabCommonStatement
::
clearWarnings
(
)
throw
(
SQLException
,
RuntimeException
)
{
::
osl
::
MutexGuard
aGuard
(
m_aMutex
);
checkDisposed
(
MacabCommonStatement_BASE
::
rBHelper
.
bDisposed
);
checkDisposed
(
rBHelper
.
bDisposed
);
m_aLastWarning
=
SQLWarning
();
}
...
...
connectivity/source/drivers/macab/MacabStatement.hxx
Dosyayı görüntüle @
3ec6de78
...
...
@@ -95,7 +95,7 @@ namespace connectivity
virtual
~
MacabCommonStatement
()
override
;
public
:
::
cppu
::
OBroadcastHelper
&
rBHelper
;
using
MacabCommonStatement_BASE
::
rBHelper
;
explicit
MacabCommonStatement
(
MacabConnection
*
_pConnection
);
using
MacabCommonStatement_BASE
::
operator
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
;
...
...
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