tdf#130857 qt weld: Implement QtInstanceWidget::get_text_height
[LibreOffice.git] / dbaccess / source / core / api / PrivateRow.cxx
blob7e2df82aaeedc9a18b8872691a37fb352c18d38e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #include "PrivateRow.hxx"
22 using namespace dbaccess;
23 using namespace ::com::sun::star::uno;
24 using namespace ::com::sun::star::sdbc;
25 using namespace ::com::sun::star::sdb;
26 using namespace ::com::sun::star::container;
27 using namespace ::com::sun::star::util;
28 using namespace ::com::sun::star;
30 sal_Bool SAL_CALL OPrivateRow::wasNull( )
32 return m_aRow[m_nPos].isNull();
34 OUString SAL_CALL OPrivateRow::getString( ::sal_Int32 columnIndex )
36 m_nPos = columnIndex;
37 return m_aRow[m_nPos].getString();
39 sal_Bool SAL_CALL OPrivateRow::getBoolean( ::sal_Int32 columnIndex )
41 m_nPos = columnIndex;
42 return m_aRow[m_nPos].getBool();
44 ::sal_Int8 SAL_CALL OPrivateRow::getByte( ::sal_Int32 columnIndex )
46 m_nPos = columnIndex;
47 return m_aRow[m_nPos].getInt8();
49 ::sal_Int16 SAL_CALL OPrivateRow::getShort( ::sal_Int32 columnIndex )
51 m_nPos = columnIndex;
52 return m_aRow[m_nPos].getInt16();
54 ::sal_Int32 SAL_CALL OPrivateRow::getInt( ::sal_Int32 columnIndex )
56 m_nPos = columnIndex;
57 return m_aRow[m_nPos].getInt32();
59 ::sal_Int64 SAL_CALL OPrivateRow::getLong( ::sal_Int32 columnIndex )
61 m_nPos = columnIndex;
62 return m_aRow[m_nPos].getLong();
64 float SAL_CALL OPrivateRow::getFloat( ::sal_Int32 columnIndex )
66 m_nPos = columnIndex;
67 return m_aRow[m_nPos].getFloat();
69 double SAL_CALL OPrivateRow::getDouble( ::sal_Int32 columnIndex )
71 m_nPos = columnIndex;
72 return m_aRow[m_nPos].getDouble();
74 Sequence< ::sal_Int8 > SAL_CALL OPrivateRow::getBytes( ::sal_Int32 columnIndex )
76 m_nPos = columnIndex;
77 return m_aRow[m_nPos].getSequence();
79 css::util::Date SAL_CALL OPrivateRow::getDate( ::sal_Int32 columnIndex )
81 m_nPos = columnIndex;
82 return m_aRow[m_nPos].getDate();
84 css::util::Time SAL_CALL OPrivateRow::getTime( ::sal_Int32 columnIndex )
86 m_nPos = columnIndex;
87 return m_aRow[m_nPos].getTime();
89 css::util::DateTime SAL_CALL OPrivateRow::getTimestamp( ::sal_Int32 columnIndex )
91 m_nPos = columnIndex;
92 return m_aRow[m_nPos].getDateTime();
94 Reference< css::io::XInputStream > SAL_CALL OPrivateRow::getBinaryStream( ::sal_Int32 columnIndex )
96 m_nPos = columnIndex;
97 return Reference< css::io::XInputStream >(m_aRow[m_nPos].makeAny(),UNO_QUERY);
99 Reference< css::io::XInputStream > SAL_CALL OPrivateRow::getCharacterStream( ::sal_Int32 columnIndex )
101 m_nPos = columnIndex;
102 return Reference< css::io::XInputStream >(m_aRow[m_nPos].makeAny(),UNO_QUERY);
104 Any SAL_CALL OPrivateRow::getObject( ::sal_Int32 columnIndex, const Reference< css::container::XNameAccess >& )
106 m_nPos = columnIndex;
107 return m_aRow[m_nPos].makeAny();
109 Reference< XRef > SAL_CALL OPrivateRow::getRef( ::sal_Int32 columnIndex )
111 m_nPos = columnIndex;
112 return Reference< XRef >(m_aRow[m_nPos].makeAny(),UNO_QUERY);
114 Reference< XBlob > SAL_CALL OPrivateRow::getBlob( ::sal_Int32 columnIndex )
116 m_nPos = columnIndex;
117 return Reference< XBlob >(m_aRow[m_nPos].makeAny(),UNO_QUERY);
119 Reference< XClob > SAL_CALL OPrivateRow::getClob( ::sal_Int32 columnIndex )
121 m_nPos = columnIndex;
122 return Reference< XClob >(m_aRow[m_nPos].makeAny(),UNO_QUERY);
124 Reference< XArray > SAL_CALL OPrivateRow::getArray( ::sal_Int32 columnIndex )
126 m_nPos = columnIndex;
127 return Reference< XArray >(m_aRow[m_nPos].makeAny(),UNO_QUERY);
130 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */