2
Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
4
The MySQL Connector/C++ is licensed under the terms of the GPLv2
5
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
6
MySQL Connectors. There are special exceptions to the terms and
7
conditions of the GPLv2 as it is applied to this software, see the
8
FLOSS License Exception
9
<http://www.mysql.com/about/legal/licensing/foss-exception.html>.
11
This program is free software; you can redistribute it and/or modify
12
it under the terms of the GNU General Public License as published
13
by the Free Software Foundation; version 2 of the License.
15
This program is distributed in the hope that it will be useful, but
16
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20
You should have received a copy of the GNU General Public License along
21
with this program; if not, write to the Free Software Foundation, Inc.,
22
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
#ifndef _SQL_RESULTSET_METADATA_H_
28
#define _SQL_RESULTSET_METADATA_H_
30
#include "sqlstring.h"
36
class ResultSetMetaData
46
virtual SQLString getCatalogName(unsigned int column) = 0;
48
virtual unsigned int getColumnCount() = 0;
50
virtual unsigned int getColumnDisplaySize(unsigned int column) = 0;
52
virtual SQLString getColumnLabel(unsigned int column) = 0;
54
virtual SQLString getColumnName(unsigned int column) = 0;
56
virtual int getColumnType(unsigned int column) = 0;
58
virtual SQLString getColumnTypeName(unsigned int column) = 0;
60
virtual unsigned int getPrecision(unsigned int column) = 0;
62
virtual unsigned int getScale(unsigned int column) = 0;
64
virtual SQLString getSchemaName(unsigned int column) = 0;
66
virtual SQLString getTableName(unsigned int column) = 0;
68
virtual bool isAutoIncrement(unsigned int column) = 0;
70
virtual bool isCaseSensitive(unsigned int column) = 0;
72
virtual bool isCurrency(unsigned int column) = 0;
74
virtual bool isDefinitelyWritable(unsigned int column) = 0;
76
virtual int isNullable(unsigned int column) = 0;
78
virtual bool isNumeric(unsigned int column) = 0;
80
virtual bool isReadOnly(unsigned int column) = 0;
82
virtual bool isSearchable(unsigned int column) = 0;
84
virtual bool isSigned(unsigned int column) = 0;
86
virtual bool isWritable(unsigned int column) = 0;
88
virtual bool isZerofill(unsigned int column) = 0;
91
virtual ~ResultSetMetaData() {}
97
#endif /* _SQL_RESULTSET_METADATA_H_ */