Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit05dddf4

Browse files
author
Barry Lind
committed
Opps, can't forget the new file. This is part of the last commit to apply
the redhat patch for SQLState support. Added Files: PSQLState.java
1 parent0378a26 commit05dddf4

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*-------------------------------------------------------------------------
2+
*
3+
* PSQLState.java
4+
* This class is used for holding SQLState codes.
5+
*
6+
* Copyright (c) 2003, PostgreSQL Global Development Group
7+
*
8+
*-------------------------------------------------------------------------
9+
*/
10+
11+
packageorg.postgresql.util;
12+
13+
publicclassPSQLState
14+
{
15+
privateStringstate;
16+
17+
publicStringgetState()
18+
{
19+
returnthis.state;
20+
}
21+
22+
publicPSQLState(Stringstate)
23+
{
24+
this.state =state;
25+
}
26+
27+
28+
// begin constant state codes
29+
publicfinalstaticPSQLStateUNKNOWN_STATE =newPSQLState("");
30+
publicfinalstaticPSQLStateCOMMUNICATION_ERROR =newPSQLState("08S01");
31+
publicfinalstaticPSQLStateDATA_ERROR =newPSQLState("22000");
32+
publicfinalstaticPSQLStateCONNECTION_DOES_NOT_EXIST =newPSQLState("08003");
33+
publicfinalstaticPSQLStateCONNECTION_REJECTED =newPSQLState("08004");
34+
publicfinalstaticPSQLStateCONNECTION_UNABLE_TO_CONNECT =newPSQLState("08001");
35+
publicfinalstaticPSQLStateCONNECTION_FAILURE =newPSQLState("08006");
36+
publicfinalstaticPSQLStateCONNECTION_CLOSED =newPSQLState("08003");
37+
publicfinalstaticPSQLStateNOT_IMPLEMENTED =newPSQLState("0A000");
38+
publicfinalstaticPSQLStateINVALID_PARAMETER_TYPE =newPSQLState("07006");
39+
publicfinalstaticPSQLStatePARAMETER_ERROR =newPSQLState("07001");
40+
publicfinalstaticPSQLStateTRANSACTION_STATE_INVALID =newPSQLState("25000");
41+
42+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp