1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 module com
{ module sun
{ module star
{ module sdbc
{
23 /** can be used to find out about the types and properties
24 of the columns in a ResultSet.
26 published
interface XResultSetMetaData
: com
::sun
::star
::uno
::XInterface
29 /** returns the number of columns in this ResultSet.
33 if a database access error occurs.
35 long getColumnCount
() raises
(SQLException
);
37 /** indicates whether the column is automatically numbered, thus read-only.
39 the first column is 1, the second is 2,
43 if a database access error occurs.
45 boolean isAutoIncrement
([in]long column
) raises
(SQLException
);
47 /** indicates whether a column's case matters.
49 the first column is 1, the second is 2,
53 if a database access error occurs.
55 boolean isCaseSensitive
([in]long column
) raises
(SQLException
);
57 /** indicates whether the column can be used in a where clause.
59 the first column is 1, the second is 2,
63 if a database access error occurs.
65 boolean isSearchable
([in]long column
) raises
(SQLException
);
67 /** indicates whether the column is a cash value.
69 the first column is 1, the second is 2,
73 if a database access error occurs.
75 boolean isCurrency
([in]long column
) raises
(SQLException
);
77 /** indicates the nullability of values in the designated column.@see com::sun::star::sdbc::ColumnValue
79 the first column is 1, the second is 2,
83 if a database access error occurs.
85 long isNullable
([in]long column
) raises
(SQLException
);
87 /** indicates whether values in the column are signed numbers.
89 the first column is 1, the second is 2,
93 if a database access error occurs.
95 boolean isSigned
([in]long column
) raises
(SQLException
);
97 /** indicates the column's normal max width in chars.
99 the first column is 1, the second is 2,
101 the normal maximum number of characters allowed as the width of the designated column
103 if a database access error occurs.
105 long getColumnDisplaySize
([in]long column
) raises
(SQLException
);
107 /** gets the suggested column title for use in printouts and
110 the first column is 1, the second is 2,
112 the suggested column title
114 if a database access error occurs.
116 string getColumnLabel
([in]long column
) raises
(SQLException
);
118 /** gets a column's name.
120 the first column is 1, the second is 2,
124 if a database access error occurs.
126 string getColumnName
([in]long column
) raises
(SQLException
);
128 /** gets a column's table's schema.
130 the first column is 1, the second is 2,
134 if a database access error occurs.
136 string getSchemaName
([in]long column
) raises
(SQLException
);
138 /** gets a column's number of decimal digits.
140 the first column is 1, the second is 2,
144 if a database access error occurs.
146 long getPrecision
([in]long column
) raises
(SQLException
);
148 /** gets a column's number of digits to right of the decimal point.
150 the first column is 1, the second is 2,
154 if a database access error occurs.
156 long getScale
([in]long column
) raises
(SQLException
);
158 /** gets a column's table name.
160 the first column is 1, the second is 2,
164 if a database access error occurs.
166 string getTableName
([in]long column
) raises
(SQLException
);
168 /** gets a column's table's catalog name.
170 the first column is 1, the second is 2,
174 if a database access error occurs.
176 string getCatalogName
([in]long column
) raises
(SQLException
);
178 /** retrieves a column's SQL type.
180 the first column is 1, the second is 2,
184 if a database access error occurs.
186 long getColumnType
([in]long column
) raises
(SQLException
);
188 /** retrieves a column's database-specific type name.
190 the first column is 1, the second is 2,
194 if a database access error occurs.
196 string getColumnTypeName
([in]long column
) raises
(SQLException
);
198 /** indicates whether a column is definitely not writable.
200 the first column is 1, the second is 2,
204 if a database access error occurs.
206 boolean isReadOnly
([in]long column
) raises
(SQLException
);
208 /** indicates whether it is possible for a write on the column to succeed.
210 the first column is 1, the second is 2,
214 if a database access error occurs.
216 boolean isWritable
([in]long column
) raises
(SQLException
);
218 /** indicates whether a write on the column will definitely succeed.
220 the first column is 1, the second is 2,
224 if a database access error occurs.
226 boolean isDefinitelyWritable
([in]long column
) raises
(SQLException
);
228 /** returns the fully-qualified name of the service whose instances
229 are manufactured if the method
230 com::sun::star::sdbc::XResultSet::.getObject()
231 is called to retrieve a value from the column.
233 the first column is 1, the second is 2,
237 if a database access error occurs.
239 string getColumnServiceName
([in]long column
) raises
(SQLException
);
245 /*===========================================================================
246 ===========================================================================*/
248 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */