LibreOffice Module dbaccess (master) 1
resultset.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19#pragma once
20
21#include <column.hxx>
23
24#include <com/sun/star/lang/XServiceInfo.hpp>
25#include <com/sun/star/sdbc/XStatement.hpp>
26#include <com/sun/star/sdbc/XCloseable.hpp>
27#include <com/sun/star/sdbc/XResultSetMetaDataSupplier.hpp>
28#include <com/sun/star/sdbc/XWarningsSupplier.hpp>
29#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
30#include <com/sun/star/sdbc/XResultSet.hpp>
31#include <com/sun/star/sdbc/XRow.hpp>
32#include <com/sun/star/sdbc/XColumnLocate.hpp>
33#include <com/sun/star/sdbcx/XRowLocate.hpp>
34#include <com/sun/star/sdbc/XRowUpdate.hpp>
35#include <com/sun/star/sdbc/XResultSetUpdate.hpp>
36#include <com/sun/star/sdbc/ResultSetConcurrency.hpp>
37
40#include <osl/diagnose.h>
43
44namespace dbaccess
45{
46 typedef ::cppu::WeakComponentImplHelper< css::sdbc::XWarningsSupplier,
47 css::sdbc::XResultSet,
48 css::sdbc::XResultSetMetaDataSupplier,
49 css::sdbc::XRow,
50 css::sdbc::XCloseable,
51 css::sdbc::XColumnLocate,
52 css::sdbcx::XRowLocate,
53 css::sdbcx::XColumnsSupplier,
54 css::sdbc::XResultSetUpdate,
55 css::sdbc::XRowUpdate,
56 css::lang::XServiceInfo > OResultSetBase;
57
58 // OResultSet
59
60 class OResultSet final : public cppu::BaseMutex,
61 public OResultSetBase,
63 public ::comphelper::OPropertyArrayUsageHelper < OResultSet >
64 {
65 css::uno::Reference< css::uno::XInterface> m_aStatement;
66
67 css::uno::Reference< css::sdbc::XResultSet > m_xDelegatorResultSet;
68 css::uno::Reference< css::sdbc::XResultSetUpdate > m_xDelegatorResultSetUpdate;
69 css::uno::Reference< css::sdbc::XRow > m_xDelegatorRow;
70 css::uno::Reference< css::sdbc::XRowUpdate > m_xDelegatorRowUpdate;
71
73 std::unique_ptr<OColumns> m_pColumns;
76
77 public:
78 OResultSet(const css::uno::Reference< css::sdbc::XResultSet >& _xResultSet,
79 const css::uno::Reference< css::uno::XInterface >& _xStatement,
80 bool _bCaseSensitive);
81 virtual ~OResultSet() override;
82
83 // css::lang::XTypeProvider
84 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
85 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
86
87 // css::uno::XInterface
88 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
89 virtual void SAL_CALL acquire() noexcept override;
90 virtual void SAL_CALL release() noexcept override;
91
92 // css::lang::XServiceInfo
93 virtual OUString SAL_CALL getImplementationName( ) override;
94 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
95 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
96
97 // ::cppu::OComponentHelper
98 virtual void SAL_CALL disposing() override;
99
100 // css::sdbc::XCloseable
101 virtual void SAL_CALL close( ) override;
102
103 // css::beans::XPropertySet
104 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
105
106 // comphelper::OPropertyArrayUsageHelper
107 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const override;
108
109 // cppu::OPropertySetHelper
110 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override;
111
113 css::uno::Any & rConvertedValue,
114 css::uno::Any & rOldValue,
115 sal_Int32 nHandle,
116 const css::uno::Any& rValue ) override;
117 virtual void SAL_CALL setFastPropertyValue_NoBroadcast(
118 sal_Int32 nHandle,
119 const css::uno::Any& rValue
120 ) override;
121 virtual void SAL_CALL getFastPropertyValue( css::uno::Any& rValue, sal_Int32 nHandle ) const override;
122
123 // css::sdbc::XWarningsSupplier
124 virtual css::uno::Any SAL_CALL getWarnings( ) override;
125 virtual void SAL_CALL clearWarnings( ) override;
126
127 // css::sdbc::XResultSetMetaDataSupplier
128 virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData( ) override;
129
130 // css::sdbc::XColumnLocate
131 virtual sal_Int32 SAL_CALL findColumn( const OUString& columnName ) override;
132
133 // css::sdbcx::XColumnsSupplier
134 virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getColumns( ) override;
135
136 // css::sdbc::XRow
137 virtual sal_Bool SAL_CALL wasNull( ) override;
138 virtual OUString SAL_CALL getString( sal_Int32 columnIndex ) override;
139 virtual sal_Bool SAL_CALL getBoolean( sal_Int32 columnIndex ) override;
140 virtual sal_Int8 SAL_CALL getByte( sal_Int32 columnIndex ) override;
141 virtual sal_Int16 SAL_CALL getShort( sal_Int32 columnIndex ) override;
142 virtual sal_Int32 SAL_CALL getInt( sal_Int32 columnIndex ) override;
143 virtual sal_Int64 SAL_CALL getLong( sal_Int32 columnIndex ) override;
144 virtual float SAL_CALL getFloat( sal_Int32 columnIndex ) override;
145 virtual double SAL_CALL getDouble( sal_Int32 columnIndex ) override;
146 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getBytes( sal_Int32 columnIndex ) override;
147 virtual css::util::Date SAL_CALL getDate( sal_Int32 columnIndex ) override;
148 virtual css::util::Time SAL_CALL getTime( sal_Int32 columnIndex ) override;
149 virtual css::util::DateTime SAL_CALL getTimestamp( sal_Int32 columnIndex ) override;
150 virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getBinaryStream( sal_Int32 columnIndex ) override;
151 virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getCharacterStream( sal_Int32 columnIndex ) override;
152 virtual css::uno::Any SAL_CALL getObject( sal_Int32 columnIndex, const css::uno::Reference< css::container::XNameAccess >& typeMap ) override;
153 virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL getRef( sal_Int32 columnIndex ) override;
154 virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL getBlob( sal_Int32 columnIndex ) override;
155 virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL getClob( sal_Int32 columnIndex ) override;
156 virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL getArray( sal_Int32 columnIndex ) override;
157
158 // css::sdbc::XResultSet
159 virtual sal_Bool SAL_CALL next( ) override;
160 virtual sal_Bool SAL_CALL isBeforeFirst( ) override;
161 virtual sal_Bool SAL_CALL isAfterLast( ) override;
162 virtual sal_Bool SAL_CALL isFirst( ) override;
163 virtual sal_Bool SAL_CALL isLast( ) override;
164 virtual void SAL_CALL beforeFirst( ) override;
165 virtual void SAL_CALL afterLast( ) override;
166 virtual sal_Bool SAL_CALL first( ) override;
167 virtual sal_Bool SAL_CALL last( ) override;
168 virtual sal_Int32 SAL_CALL getRow( ) override;
169 virtual sal_Bool SAL_CALL absolute( sal_Int32 row ) override;
170 virtual sal_Bool SAL_CALL relative( sal_Int32 rows ) override;
171 virtual sal_Bool SAL_CALL previous( ) override;
172 virtual void SAL_CALL refreshRow( ) override;
173 virtual sal_Bool SAL_CALL rowUpdated( ) override;
174 virtual sal_Bool SAL_CALL rowInserted( ) override;
175 virtual sal_Bool SAL_CALL rowDeleted( ) override;
176 virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getStatement( ) override;
177
178 // css::sdbcx::XRowLocate
179 virtual css::uno::Any SAL_CALL getBookmark( ) override;
180 virtual sal_Bool SAL_CALL moveToBookmark( const css::uno::Any& bookmark ) override;
181 virtual sal_Bool SAL_CALL moveRelativeToBookmark( const css::uno::Any& bookmark, sal_Int32 rows ) override;
182 virtual sal_Int32 SAL_CALL compareBookmarks( const css::uno::Any& first, const css::uno::Any& second ) override;
183 virtual sal_Bool SAL_CALL hasOrderedBookmarks( ) override;
184 virtual sal_Int32 SAL_CALL hashBookmark( const css::uno::Any& bookmark ) override;
185
186 // css::sdbc::XResultSetUpdate
187 virtual void SAL_CALL insertRow( ) override;
188 virtual void SAL_CALL updateRow( ) override;
189 virtual void SAL_CALL deleteRow( ) override;
190 virtual void SAL_CALL cancelRowUpdates( ) override;
191 virtual void SAL_CALL moveToInsertRow( ) override;
192 virtual void SAL_CALL moveToCurrentRow( ) override;
193
194 // css::sdbc::XRowUpdate
195 virtual void SAL_CALL updateNull( sal_Int32 columnIndex ) override;
196 virtual void SAL_CALL updateBoolean( sal_Int32 columnIndex, sal_Bool x ) override;
197 virtual void SAL_CALL updateByte( sal_Int32 columnIndex, sal_Int8 x ) override;
198 virtual void SAL_CALL updateShort( sal_Int32 columnIndex, sal_Int16 x ) override;
199 virtual void SAL_CALL updateInt( sal_Int32 columnIndex, sal_Int32 x ) override;
200 virtual void SAL_CALL updateLong( sal_Int32 columnIndex, sal_Int64 x ) override;
201 virtual void SAL_CALL updateFloat( sal_Int32 columnIndex, float x ) override;
202 virtual void SAL_CALL updateDouble( sal_Int32 columnIndex, double x ) override;
203 virtual void SAL_CALL updateString( sal_Int32 columnIndex, const OUString& x ) override;
204 virtual void SAL_CALL updateBytes( sal_Int32 columnIndex, const css::uno::Sequence< sal_Int8 >& x ) override;
205 virtual void SAL_CALL updateDate( sal_Int32 columnIndex, const css::util::Date& x ) override;
206 virtual void SAL_CALL updateTime( sal_Int32 columnIndex, const css::util::Time& x ) override;
207 virtual void SAL_CALL updateTimestamp( sal_Int32 columnIndex, const css::util::DateTime& x ) override;
208 virtual void SAL_CALL updateBinaryStream( sal_Int32 columnIndex, const css::uno::Reference< css::io::XInputStream >& x, sal_Int32 length ) override;
209 virtual void SAL_CALL updateCharacterStream( sal_Int32 columnIndex, const css::uno::Reference< css::io::XInputStream >& x, sal_Int32 length ) override;
210 virtual void SAL_CALL updateObject( sal_Int32 columnIndex, const css::uno::Any& x ) override;
211 virtual void SAL_CALL updateNumericObject( sal_Int32 columnIndex, const css::uno::Any& x, sal_Int32 scale ) override;
212
213 private:
214 void checkReadOnly() const;
215 void checkBookmarkable() const;
216
218 };
219}
220
221/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL updateString(sal_Int32 columnIndex, const OUString &x) override
Definition: resultset.cxx:623
virtual void SAL_CALL refreshRow() override
Definition: resultset.cxx:818
virtual void SAL_CALL updateTimestamp(sal_Int32 columnIndex, const css::util::DateTime &x) override
Definition: resultset.cxx:663
virtual void SAL_CALL updateNumericObject(sal_Int32 columnIndex, const css::uno::Any &x, sal_Int32 scale) override
virtual sal_Int64 SAL_CALL getLong(sal_Int32 columnIndex) override
Definition: resultset.cxx:430
virtual void SAL_CALL afterLast() override
Definition: resultset.cxx:762
virtual void SAL_CALL updateNull(sal_Int32 columnIndex) override
Definition: resultset.cxx:543
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual sal_Bool SAL_CALL isBeforeFirst() override
Definition: resultset.cxx:722
virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL getBlob(sal_Int32 columnIndex) override
Definition: resultset.cxx:518
sal_Int32 m_nResultSetConcurrency
Definition: resultset.hxx:74
virtual css::uno::Any SAL_CALL getObject(sal_Int32 columnIndex, const css::uno::Reference< css::container::XNameAccess > &typeMap) override
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getBytes(sal_Int32 columnIndex) override
Definition: resultset.cxx:454
virtual void SAL_CALL clearWarnings() override
Definition: resultset.cxx:264
virtual void SAL_CALL moveToCurrentRow() override
Definition: resultset.cxx:970
virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL getMetaData() override
Definition: resultset.cxx:272
virtual void SAL_CALL moveToInsertRow() override
Definition: resultset.cxx:960
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getStatement() override
Definition: resultset.cxx:850
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
Definition: resultset.cxx:203
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: resultset.cxx:181
virtual css::util::Time SAL_CALL getTime(sal_Int32 columnIndex) override
Definition: resultset.cxx:470
virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL getArray(sal_Int32 columnIndex) override
Definition: resultset.cxx:534
css::uno::Reference< css::uno::XInterface > m_aStatement
Definition: resultset.hxx:65
virtual void SAL_CALL disposing() override
Definition: resultset.cxx:135
virtual sal_Bool SAL_CALL isLast() override
Definition: resultset.cxx:746
virtual sal_Int32 SAL_CALL findColumn(const OUString &columnName) override
Definition: resultset.cxx:281
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getBinaryStream(sal_Int32 columnIndex) override
Definition: resultset.cxx:486
virtual sal_Bool SAL_CALL relative(sal_Int32 rows) override
Definition: resultset.cxx:802
virtual css::util::Date SAL_CALL getDate(sal_Int32 columnIndex) override
Definition: resultset.cxx:462
css::uno::Reference< css::sdbc::XResultSetUpdate > m_xDelegatorResultSetUpdate
Definition: resultset.hxx:68
virtual void SAL_CALL deleteRow() override
Definition: resultset.cxx:940
virtual void SAL_CALL updateShort(sal_Int32 columnIndex, sal_Int16 x) override
Definition: resultset.cxx:573
virtual void SAL_CALL updateDouble(sal_Int32 columnIndex, double x) override
Definition: resultset.cxx:613
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
Definition: resultset.cxx:106
std::unique_ptr< OColumns > m_pColumns
Definition: resultset.hxx:73
virtual sal_Bool SAL_CALL first() override
Definition: resultset.cxx:770
virtual sal_Bool SAL_CALL absolute(sal_Int32 row) override
Definition: resultset.cxx:794
virtual css::util::DateTime SAL_CALL getTimestamp(sal_Int32 columnIndex) override
Definition: resultset.cxx:478
virtual void SAL_CALL beforeFirst() override
Definition: resultset.cxx:754
virtual sal_Bool SAL_CALL isAfterLast() override
Definition: resultset.cxx:730
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getColumns() override
Definition: resultset.cxx:315
::dbtools::WarningsContainer m_aWarnings
Definition: resultset.hxx:72
virtual sal_Bool SAL_CALL wasNull() override
Definition: resultset.cxx:382
virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL getRef(sal_Int32 columnIndex) override
Definition: resultset.cxx:510
virtual void SAL_CALL updateBoolean(sal_Int32 columnIndex, sal_Bool x) override
Definition: resultset.cxx:553
virtual OUString SAL_CALL getImplementationName() override
Definition: resultset.cxx:165
virtual sal_Bool SAL_CALL next() override
Definition: resultset.cxx:714
virtual void SAL_CALL updateDate(sal_Int32 columnIndex, const css::util::Date &x) override
Definition: resultset.cxx:643
virtual void SAL_CALL acquire() noexcept override
Definition: resultset.cxx:123
void checkBookmarkable() const
Definition: resultset.cxx:988
virtual ~OResultSet() override
Definition: resultset.cxx:91
virtual void SAL_CALL updateCharacterStream(sal_Int32 columnIndex, const css::uno::Reference< css::io::XInputStream > &x, sal_Int32 length) override
virtual sal_Bool SAL_CALL hasOrderedBookmarks() override
Definition: resultset.cxx:899
virtual void SAL_CALL updateByte(sal_Int32 columnIndex, sal_Int8 x) override
Definition: resultset.cxx:563
virtual sal_Bool SAL_CALL rowInserted() override
Definition: resultset.cxx:834
virtual sal_Bool SAL_CALL rowDeleted() override
Definition: resultset.cxx:842
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
Definition: resultset.cxx:98
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL getCharacterStream(sal_Int32 columnIndex) override
Definition: resultset.cxx:494
virtual ::cppu::IPropertyArrayHelper * createArrayHelper() const override
Definition: resultset.cxx:187
virtual sal_Int8 SAL_CALL getByte(sal_Int32 columnIndex) override
Definition: resultset.cxx:406
virtual double SAL_CALL getDouble(sal_Int32 columnIndex) override
Definition: resultset.cxx:446
virtual OUString SAL_CALL getString(sal_Int32 columnIndex) override
Definition: resultset.cxx:390
virtual void SAL_CALL updateInt(sal_Int32 columnIndex, sal_Int32 x) override
Definition: resultset.cxx:583
virtual void SAL_CALL updateTime(sal_Int32 columnIndex, const css::util::Time &x) override
Definition: resultset.cxx:653
virtual void SAL_CALL updateBinaryStream(sal_Int32 columnIndex, const css::uno::Reference< css::io::XInputStream > &x, sal_Int32 length) override
virtual sal_Bool SAL_CALL getBoolean(sal_Int32 columnIndex) override
Definition: resultset.cxx:398
virtual css::uno::Any SAL_CALL getBookmark() override
Definition: resultset.cxx:859
virtual css::uno::Any SAL_CALL getWarnings() override
Definition: resultset.cxx:257
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
css::uno::Reference< css::sdbc::XResultSet > m_xDelegatorResultSet
Definition: resultset.hxx:67
virtual sal_Bool SAL_CALL moveRelativeToBookmark(const css::uno::Any &bookmark, sal_Int32 rows) override
virtual sal_Int32 SAL_CALL hashBookmark(const css::uno::Any &bookmark) override
virtual void SAL_CALL updateObject(sal_Int32 columnIndex, const css::uno::Any &x) override
virtual void SAL_CALL close() override
Definition: resultset.cxx:155
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: resultset.cxx:175
OResultSet(const css::uno::Reference< css::sdbc::XResultSet > &_xResultSet, const css::uno::Reference< css::uno::XInterface > &_xStatement, bool _bCaseSensitive)
Definition: resultset.cxx:49
virtual void SAL_CALL updateFloat(sal_Int32 columnIndex, float x) override
Definition: resultset.cxx:603
virtual sal_Bool SAL_CALL isFirst() override
Definition: resultset.cxx:738
virtual void SAL_CALL cancelRowUpdates() override
Definition: resultset.cxx:950
virtual sal_Int32 SAL_CALL compareBookmarks(const css::uno::Any &first, const css::uno::Any &second) override
virtual sal_Bool SAL_CALL rowUpdated() override
Definition: resultset.cxx:826
virtual float SAL_CALL getFloat(sal_Int32 columnIndex) override
Definition: resultset.cxx:438
virtual sal_Int32 SAL_CALL getInt(sal_Int32 columnIndex) override
Definition: resultset.cxx:422
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Definition: resultset.cxx:170
virtual void SAL_CALL insertRow() override
Definition: resultset.cxx:920
css::uno::Reference< css::sdbc::XRowUpdate > m_xDelegatorRowUpdate
Definition: resultset.hxx:70
virtual sal_Bool SAL_CALL moveToBookmark(const css::uno::Any &bookmark) override
virtual void SAL_CALL updateBytes(sal_Int32 columnIndex, const css::uno::Sequence< sal_Int8 > &x) override
virtual sal_Int32 SAL_CALL getRow() override
Definition: resultset.cxx:786
virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL getClob(sal_Int32 columnIndex) override
Definition: resultset.cxx:526
virtual sal_Int16 SAL_CALL getShort(sal_Int32 columnIndex) override
Definition: resultset.cxx:414
virtual void SAL_CALL updateRow() override
Definition: resultset.cxx:930
void checkReadOnly() const
Definition: resultset.cxx:980
virtual sal_Bool SAL_CALL previous() override
Definition: resultset.cxx:810
virtual sal_Bool SAL_CALL last() override
Definition: resultset.cxx:778
virtual sal_Bool SAL_CALL convertFastPropertyValue(css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
css::uno::Reference< css::sdbc::XRow > m_xDelegatorRow
Definition: resultset.hxx:69
virtual void SAL_CALL updateLong(sal_Int32 columnIndex, sal_Int64 x) override
Definition: resultset.cxx:593
virtual void SAL_CALL release() noexcept override
Definition: resultset.cxx:128
::cppu::WeakComponentImplHelper< css::sdbc::XWarningsSupplier, css::sdbc::XResultSet, css::sdbc::XResultSetMetaDataSupplier, css::sdbc::XRow, css::sdbc::XCloseable, css::sdbc::XColumnLocate, css::sdbcx::XRowLocate, css::sdbcx::XColumnsSupplier, css::sdbc::XResultSetUpdate, css::sdbc::XRowUpdate, css::lang::XServiceInfo > OResultSetBase
Definition: resultset.hxx:56
unsigned char sal_Bool
signed char sal_Int8