nss: upgrade to release 3.73
[LibreOffice.git] / dbaccess / source / core / api / PrivateRow.cxx
blob22adc74f138aabc6e505590596e5ebec5a8dba95
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::beans;
25 using namespace ::com::sun::star::sdbc;
26 using namespace ::com::sun::star::sdb;
27 using namespace ::com::sun::star::sdbcx;
28 using namespace ::com::sun::star::container;
29 using namespace ::com::sun::star::lang;
30 using namespace ::com::sun::star::util;
31 using namespace ::com::sun::star;
33 sal_Bool SAL_CALL OPrivateRow::wasNull( )
35 return m_aRow[m_nPos].isNull();
37 OUString SAL_CALL OPrivateRow::getString( ::sal_Int32 columnIndex )
39 m_nPos = columnIndex;
40 return m_aRow[m_nPos];
42 sal_Bool SAL_CALL OPrivateRow::getBoolean( ::sal_Int32 columnIndex )
44 m_nPos = columnIndex;
45 return bool(m_aRow[m_nPos]);
47 ::sal_Int8 SAL_CALL OPrivateRow::getByte( ::sal_Int32 columnIndex )
49 m_nPos = columnIndex;
50 return m_aRow[m_nPos];
52 ::sal_Int16 SAL_CALL OPrivateRow::getShort( ::sal_Int32 columnIndex )
54 m_nPos = columnIndex;
55 return m_aRow[m_nPos];
57 ::sal_Int32 SAL_CALL OPrivateRow::getInt( ::sal_Int32 columnIndex )
59 m_nPos = columnIndex;
60 return m_aRow[m_nPos];
62 ::sal_Int64 SAL_CALL OPrivateRow::getLong( ::sal_Int32 columnIndex )
64 m_nPos = columnIndex;
65 return m_aRow[m_nPos];
67 float SAL_CALL OPrivateRow::getFloat( ::sal_Int32 columnIndex )
69 m_nPos = columnIndex;
70 return m_aRow[m_nPos];
72 double SAL_CALL OPrivateRow::getDouble( ::sal_Int32 columnIndex )
74 m_nPos = columnIndex;
75 return m_aRow[m_nPos];
77 Sequence< ::sal_Int8 > SAL_CALL OPrivateRow::getBytes( ::sal_Int32 columnIndex )
79 m_nPos = columnIndex;
80 return m_aRow[m_nPos];
82 css::util::Date SAL_CALL OPrivateRow::getDate( ::sal_Int32 columnIndex )
84 m_nPos = columnIndex;
85 return m_aRow[m_nPos];
87 css::util::Time SAL_CALL OPrivateRow::getTime( ::sal_Int32 columnIndex )
89 m_nPos = columnIndex;
90 return m_aRow[m_nPos];
92 css::util::DateTime SAL_CALL OPrivateRow::getTimestamp( ::sal_Int32 columnIndex )
94 m_nPos = columnIndex;
95 return m_aRow[m_nPos];
97 Reference< css::io::XInputStream > SAL_CALL OPrivateRow::getBinaryStream( ::sal_Int32 columnIndex )
99 m_nPos = columnIndex;
100 return Reference< css::io::XInputStream >(m_aRow[m_nPos].makeAny(),UNO_QUERY);
102 Reference< css::io::XInputStream > SAL_CALL OPrivateRow::getCharacterStream( ::sal_Int32 columnIndex )
104 m_nPos = columnIndex;
105 return Reference< css::io::XInputStream >(m_aRow[m_nPos].makeAny(),UNO_QUERY);
107 Any SAL_CALL OPrivateRow::getObject( ::sal_Int32 columnIndex, const Reference< css::container::XNameAccess >& )
109 m_nPos = columnIndex;
110 return m_aRow[m_nPos].makeAny();
112 Reference< XRef > SAL_CALL OPrivateRow::getRef( ::sal_Int32 columnIndex )
114 m_nPos = columnIndex;
115 return Reference< XRef >(m_aRow[m_nPos].makeAny(),UNO_QUERY);
117 Reference< XBlob > SAL_CALL OPrivateRow::getBlob( ::sal_Int32 columnIndex )
119 m_nPos = columnIndex;
120 return Reference< XBlob >(m_aRow[m_nPos].makeAny(),UNO_QUERY);
122 Reference< XClob > SAL_CALL OPrivateRow::getClob( ::sal_Int32 columnIndex )
124 m_nPos = columnIndex;
125 return Reference< XClob >(m_aRow[m_nPos].makeAny(),UNO_QUERY);
127 Reference< XArray > SAL_CALL OPrivateRow::getArray( ::sal_Int32 columnIndex )
129 m_nPos = columnIndex;
130 return Reference< XArray >(m_aRow[m_nPos].makeAny(),UNO_QUERY);
133 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */