1*34dd1e25SAndrew Rist /**************************************************************
2*34dd1e25SAndrew Rist  *
3*34dd1e25SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*34dd1e25SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*34dd1e25SAndrew Rist  * distributed with this work for additional information
6*34dd1e25SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*34dd1e25SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*34dd1e25SAndrew Rist  * "License"); you may not use this file except in compliance
9*34dd1e25SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*34dd1e25SAndrew Rist  *
11*34dd1e25SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*34dd1e25SAndrew Rist  *
13*34dd1e25SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*34dd1e25SAndrew Rist  * software distributed under the License is distributed on an
15*34dd1e25SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*34dd1e25SAndrew Rist  * KIND, either express or implied.  See the License for the
17*34dd1e25SAndrew Rist  * specific language governing permissions and limitations
18*34dd1e25SAndrew Rist  * under the License.
19*34dd1e25SAndrew Rist  *
20*34dd1e25SAndrew Rist  *************************************************************/
21*34dd1e25SAndrew Rist 
22*34dd1e25SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #include "SResultSetMetaData.hxx"
25cdf0e10cSrcweir 
26cdf0e10cSrcweir using namespace connectivity::skeleton;
27cdf0e10cSrcweir using namespace com::sun::star::uno;
28cdf0e10cSrcweir using namespace com::sun::star::lang;
29cdf0e10cSrcweir using namespace com::sun::star::sdbc;
30cdf0e10cSrcweir 
31cdf0e10cSrcweir // -------------------------------------------------------------------------
~OResultSetMetaData()32cdf0e10cSrcweir OResultSetMetaData::~OResultSetMetaData()
33cdf0e10cSrcweir {
34cdf0e10cSrcweir }
35cdf0e10cSrcweir // -------------------------------------------------------------------------
36cdf0e10cSrcweir // -------------------------------------------------------------------------
getColumnDisplaySize(sal_Int32 column)37cdf0e10cSrcweir sal_Int32 SAL_CALL OResultSetMetaData::getColumnDisplaySize( sal_Int32 column ) throw(SQLException, RuntimeException)
38cdf0e10cSrcweir {
39cdf0e10cSrcweir 	return 50;
40cdf0e10cSrcweir }
41cdf0e10cSrcweir // -------------------------------------------------------------------------
42cdf0e10cSrcweir 
getColumnType(sal_Int32 column)43cdf0e10cSrcweir sal_Int32 SAL_CALL OResultSetMetaData::getColumnType( sal_Int32 column ) throw(SQLException, RuntimeException)
44cdf0e10cSrcweir {
45cdf0e10cSrcweir 	sal_Int32 nType = 0;
46cdf0e10cSrcweir 	return nType;
47cdf0e10cSrcweir }
48cdf0e10cSrcweir // -------------------------------------------------------------------------
49cdf0e10cSrcweir 
getColumnCount()50cdf0e10cSrcweir sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount(  ) throw(SQLException, RuntimeException)
51cdf0e10cSrcweir {
52cdf0e10cSrcweir 	// this make no sense here so you have to change this
53cdf0e10cSrcweir 	return 0;
54cdf0e10cSrcweir }
55cdf0e10cSrcweir // -------------------------------------------------------------------------
56cdf0e10cSrcweir 
isCaseSensitive(sal_Int32 column)57cdf0e10cSrcweir sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive( sal_Int32 column ) throw(SQLException, RuntimeException)
58cdf0e10cSrcweir {
59cdf0e10cSrcweir 	return sal_True;
60cdf0e10cSrcweir }
61cdf0e10cSrcweir // -------------------------------------------------------------------------
62cdf0e10cSrcweir 
getSchemaName(sal_Int32 column)63cdf0e10cSrcweir ::rtl::OUString SAL_CALL OResultSetMetaData::getSchemaName( sal_Int32 column ) throw(SQLException, RuntimeException)
64cdf0e10cSrcweir {
65cdf0e10cSrcweir 	return ::rtl::OUString();
66cdf0e10cSrcweir }
67cdf0e10cSrcweir // -------------------------------------------------------------------------
68cdf0e10cSrcweir 
getColumnName(sal_Int32 column)69cdf0e10cSrcweir ::rtl::OUString SAL_CALL OResultSetMetaData::getColumnName( sal_Int32 column ) throw(SQLException, RuntimeException)
70cdf0e10cSrcweir {
71cdf0e10cSrcweir 	return ::rtl::OUString::createFromAscii("Column") + ::rtl::OUString::valueOf(column);
72cdf0e10cSrcweir }
73cdf0e10cSrcweir // -------------------------------------------------------------------------
getTableName(sal_Int32 column)74cdf0e10cSrcweir ::rtl::OUString SAL_CALL OResultSetMetaData::getTableName( sal_Int32 column ) throw(SQLException, RuntimeException)
75cdf0e10cSrcweir {
76cdf0e10cSrcweir 	return ::rtl::OUString();
77cdf0e10cSrcweir }
78cdf0e10cSrcweir // -------------------------------------------------------------------------
getCatalogName(sal_Int32 column)79cdf0e10cSrcweir ::rtl::OUString SAL_CALL OResultSetMetaData::getCatalogName( sal_Int32 column ) throw(SQLException, RuntimeException)
80cdf0e10cSrcweir {
81cdf0e10cSrcweir 	return ::rtl::OUString();
82cdf0e10cSrcweir }
83cdf0e10cSrcweir // -------------------------------------------------------------------------
getColumnTypeName(sal_Int32 column)84cdf0e10cSrcweir ::rtl::OUString SAL_CALL OResultSetMetaData::getColumnTypeName( sal_Int32 column ) throw(SQLException, RuntimeException)
85cdf0e10cSrcweir {
86cdf0e10cSrcweir 	return ::rtl::OUString();
87cdf0e10cSrcweir }
88cdf0e10cSrcweir // -------------------------------------------------------------------------
getColumnLabel(sal_Int32 column)89cdf0e10cSrcweir ::rtl::OUString SAL_CALL OResultSetMetaData::getColumnLabel( sal_Int32 column ) throw(SQLException, RuntimeException)
90cdf0e10cSrcweir {
91cdf0e10cSrcweir 	return ::rtl::OUString();
92cdf0e10cSrcweir }
93cdf0e10cSrcweir // -------------------------------------------------------------------------
getColumnServiceName(sal_Int32 column)94cdf0e10cSrcweir ::rtl::OUString SAL_CALL OResultSetMetaData::getColumnServiceName( sal_Int32 column ) throw(SQLException, RuntimeException)
95cdf0e10cSrcweir {
96cdf0e10cSrcweir 	return ::rtl::OUString();
97cdf0e10cSrcweir }
98cdf0e10cSrcweir // -------------------------------------------------------------------------
99cdf0e10cSrcweir 
isCurrency(sal_Int32 column)100cdf0e10cSrcweir sal_Bool SAL_CALL OResultSetMetaData::isCurrency( sal_Int32 column ) throw(SQLException, RuntimeException)
101cdf0e10cSrcweir {
102cdf0e10cSrcweir 	return sal_False;
103cdf0e10cSrcweir }
104cdf0e10cSrcweir // -------------------------------------------------------------------------
105cdf0e10cSrcweir 
isAutoIncrement(sal_Int32 column)106cdf0e10cSrcweir sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement( sal_Int32 column ) throw(SQLException, RuntimeException)
107cdf0e10cSrcweir {
108cdf0e10cSrcweir 	return sal_False;
109cdf0e10cSrcweir }
110cdf0e10cSrcweir // -------------------------------------------------------------------------
111cdf0e10cSrcweir 
112cdf0e10cSrcweir 
isSigned(sal_Int32 column)113cdf0e10cSrcweir sal_Bool SAL_CALL OResultSetMetaData::isSigned( sal_Int32 column ) throw(SQLException, RuntimeException)
114cdf0e10cSrcweir {
115cdf0e10cSrcweir 	return sal_False;
116cdf0e10cSrcweir }
117cdf0e10cSrcweir // -------------------------------------------------------------------------
getPrecision(sal_Int32 column)118cdf0e10cSrcweir sal_Int32 SAL_CALL OResultSetMetaData::getPrecision( sal_Int32 column ) throw(SQLException, RuntimeException)
119cdf0e10cSrcweir {
120cdf0e10cSrcweir 	return 0;
121cdf0e10cSrcweir }
122cdf0e10cSrcweir // -----------------------------------------------------------------------------
getScale(sal_Int32 column)123cdf0e10cSrcweir sal_Int32 SAL_CALL OResultSetMetaData::getScale( sal_Int32 column ) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
124cdf0e10cSrcweir {
125cdf0e10cSrcweir 	return 0;
126cdf0e10cSrcweir }
127cdf0e10cSrcweir // -------------------------------------------------------------------------
128cdf0e10cSrcweir 
isNullable(sal_Int32 column)129cdf0e10cSrcweir sal_Int32 SAL_CALL OResultSetMetaData::isNullable( sal_Int32 column ) throw(SQLException, RuntimeException)
130cdf0e10cSrcweir {
131cdf0e10cSrcweir 	return 0;
132cdf0e10cSrcweir }
133cdf0e10cSrcweir // -------------------------------------------------------------------------
134cdf0e10cSrcweir 
isSearchable(sal_Int32 column)135cdf0e10cSrcweir sal_Bool SAL_CALL OResultSetMetaData::isSearchable( sal_Int32 column ) throw(SQLException, RuntimeException)
136cdf0e10cSrcweir {
137cdf0e10cSrcweir 	return sal_True;
138cdf0e10cSrcweir }
139cdf0e10cSrcweir // -------------------------------------------------------------------------
140cdf0e10cSrcweir 
isReadOnly(sal_Int32 column)141cdf0e10cSrcweir sal_Bool SAL_CALL OResultSetMetaData::isReadOnly( sal_Int32 column ) throw(SQLException, RuntimeException)
142cdf0e10cSrcweir {
143cdf0e10cSrcweir 	return sal_True;
144cdf0e10cSrcweir }
145cdf0e10cSrcweir // -------------------------------------------------------------------------
146cdf0e10cSrcweir 
isDefinitelyWritable(sal_Int32 column)147cdf0e10cSrcweir sal_Bool SAL_CALL OResultSetMetaData::isDefinitelyWritable( sal_Int32 column ) throw(SQLException, RuntimeException)
148cdf0e10cSrcweir {
149cdf0e10cSrcweir 	return sal_False;
150cdf0e10cSrcweir ;
151cdf0e10cSrcweir }
152cdf0e10cSrcweir // -------------------------------------------------------------------------
isWritable(sal_Int32 column)153cdf0e10cSrcweir sal_Bool SAL_CALL OResultSetMetaData::isWritable( sal_Int32 column ) throw(SQLException, RuntimeException)
154cdf0e10cSrcweir {
155cdf0e10cSrcweir 	return sal_False;
156cdf0e10cSrcweir }
157cdf0e10cSrcweir // -------------------------------------------------------------------------
158cdf0e10cSrcweir 
159