このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Constants' Group ErrorCondition
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: 星/主役にする :: sdb ::

unpublished constants group ErrorCondition
Usage 制限s
not published
Description
defines error 条件s for OpenOffice.org Base 核心 構成要素s

核心 構成要素s of OpenOffice.org will use those error 条件s as error codes (::com::sun::星/主役にする::sdbc::SQLException::ErrorCode) whereever possible.
That is, if an SQLException is raised by such a 構成要素, 原因(となる)d by an error 条件 which is 含むd in the ErrorCondition group, then the 各々の 消極的な value will be used as ErrorCode.

This 許すs to 決定する 明確な/細部 error 条件s in your (弁護士の)依頼人 code, and to 扱う it 適切な.

公式文書,認める that before you 診察する the ErrorCode member of a caught SQLException, you need to make sure that the exception is really thrown by an OpenOffice.org Base 核心 構成要素. To do so, check whether the error message (Exception::Message) starts with the vendor string [OOoBase].

The 名簿(に載せる)/表(にあげる) of defined error 条件s, by nature, is 推定する/予想するd to 永久的に grow, so never assume it 存在 完結するd.

Example
Java
 catch ( SQLException e )
 {
   if ( e.Message.startsWith( "[OOoBase]" ) )
     if ( e.ErrorCode + ErrorCondition.SOME_ERROR_CONDITION == 0 )
       handleSomeErrorCondition();
 }
 

Constants
ROW_SET_OPERATION_VETOED is used by and RowSet to 示す that an 操作/手術 has been 拒否権d by one of its 是認 listeners  
PARSER_CYCLIC_SUB_QUERIES 示すs that while parsing an SQL 声明, cyclic sub queries have been (悪事,秘密などを)発見するd.  
DB_OBJECT_NAME_WITH_SLASHES 示すs that the 指名する of a (弁護士の)依頼人 味方する database 反対する - a query, a form, or a 報告(する)/憶測 - 含む/封じ込めるs one or more 削除するs, which is forbidden.  
DB_INVALID_SQL_NAME 示すs that an identifier is not SQL 適合する.  
DB_QUERY_NAME_WITH_QUOTES 示すs that the 指名する of a query 含む/封じ込めるs 引用する characters.  
DB_OBJECT_NAME_IS_USED 示すs that an 試みる/企てる was made to save a database 反対する under a 指名する which is already used in the database.  
DB_NOT_CONNECTED 示すs an 操作/手術 was 試みる/企てるd which needs a 関係 to the database, which did not 存在する at that time.  
AB_ADDRESSBOOK_NOT_FOUND used by the 構成要素 器具/実施するing 演説(する)/住所 調書をとる/予約する 接近 to 示す that a requested 演説(する)/住所 調書をとる/予約する could not be 接近d.  
DATA_CANNOT_SELECT_UNFILTERED used to 示す that a SELECT 操作/手術 on a (米)棚上げする/(英)提議する needs a filter.  
Constants' 詳細(に述べる)s
ROW_SET_OPERATION_VETOED
const long ROW_SET_OPERATION_VETOED = 100;
Description
is used by and RowSet to 示す that an 操作/手術 has been 拒否権d by one of its 是認 listeners

This error 条件 results in raising a RowSetVetoException.

See also
RowSet, XRowSetApproveBroadcaster, XRowSetApproveListener
PARSER_CYCLIC_SUB_QUERIES
const long PARSER_CYCLIC_SUB_QUERIES = 200;
Description
示すs that while parsing an SQL 声明, cyclic sub queries have been (悪事,秘密などを)発見するd.

Imagine you have a (弁護士の)依頼人-味方する query SELECT * FROM (米)棚上げする/(英)提議する, which is saved as "query1". Additionally, there is a query "query2" defined as SELECT * FROM query1. Now if you try to change the 声明 of ::query1 to SELECT * FROM query2, this is 禁じるd, because it would lead to a cyclic sub query.

DB_OBJECT_NAME_WITH_SLASHES
const long DB_OBJECT_NAME_WITH_SLASHES = 300;
Description
示すs that the 指名する of a (弁護士の)依頼人 味方する database 反対する - a query, a form, or a 報告(する)/憶測 - 含む/封じ込めるs one or more 削除するs, which is forbidden.
DB_INVALID_SQL_NAME
const long DB_INVALID_SQL_NAME = 301;
Description
示すs that an identifier is not SQL 適合する.
DB_QUERY_NAME_WITH_QUOTES
const long DB_QUERY_NAME_WITH_QUOTES = 302;
Description
示すs that the 指名する of a query 含む/封じ込めるs 引用する characters.

This error 条件 is met when the 使用者 試みる/企てるs to save a query with a 指名する which 含む/封じ込めるs one of the possible database 引用する characters. This is an error since query 指名するs can 潜在的に be used in SELECT 声明s, where 引用する identifiers would (判決などを)下す the 声明 無効の.

See also
::com::sun::星/主役にする::sdb::道具s::XDataSourceMetaData::supportsQueriesInFrom
DB_OBJECT_NAME_IS_USED
const long DB_OBJECT_NAME_IS_USED = 303;
Description
示すs that an 試みる/企てる was made to save a database 反対する under a 指名する which is already used in the database.

In databases which support query 指名するs to appear in SELECT 声明s, this could mean that a (米)棚上げする/(英)提議する was 試みる/企てるd to be saved with the 指名する of an 存在するing query, or 副/悪徳行為 versa.

さもなければ, it means an 反対する was 試みる/企てるd to be saved with the 指名する of an already 存在するing 反対する of the same type.

See also
::com::sun::星/主役にする::sdb::使用/適用::DatabaseObject, ::com::sun::星/主役にする::sdb::道具s::XDataSourceMetaData::supportsQueriesInFrom
DB_NOT_CONNECTED
const long DB_NOT_CONNECTED = 304;
Description
示すs an 操作/手術 was 試みる/企てるd which needs a 関係 to the database, which did not 存在する at that time.
AB_ADDRESSBOOK_NOT_FOUND
const long AB_ADDRESSBOOK_NOT_FOUND = 500;
Description
used by the 構成要素 器具/実施するing 演説(する)/住所 調書をとる/予約する 接近 to 示す that a requested 演説(する)/住所 調書をとる/予約する could not be 接近d.

For instance, this error code is used when you try to 接近 the 演説(する)/住所 調書をとる/予約する in a Thunderbird profile 指名するd MyProfile, but there does not 存在する a profile with this 指名する.

DATA_CANNOT_SELECT_UNFILTERED
const long DATA_CANNOT_SELECT_UNFILTERED = 550;
Description
used to 示す that a SELECT 操作/手術 on a (米)棚上げする/(英)提議する needs a filter.

Some database drivers are not able to SELECT from a (米)棚上げする/(英)提議する if the 声明 does not 含む/封じ込める a WHERE 条項. In this 事例/患者, a 声明 like SELECT * FROM "(米)棚上げする/(英)提議する" with fail with the error code DATA_CANNOT_SELECT_UNFILTERED.

It is also 合法的 for the driver to 報告(する)/憶測 this error 条件 as 警告, and 供給する an empty result 始める,決める, instead of ungracefull failing.

最高の,を越す of Page

Apache Software Foundation

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The Apache feather logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.