~ubuntu-branches/ubuntu/maverick/libpgjava/maverick

« back to all changes in this revision

Viewing changes to org/postgresql/core/Oid.java

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2006-04-25 00:07:07 UTC
  • mfrom: (1.3.1 upstream) (3.1.1 dapper)
  • Revision ID: james.westby@ubuntu.com-20060425000707-6lr2s0awuz4z48hm
* Drop support for the old jdbc2 driver (can be reverted if wanted)
  (closes: #358345).
* New upstream (thanks to Wolfgang Baer).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
*
 
3
* Copyright (c) 2004-2005, PostgreSQL Global Development Group
 
4
*
 
5
* IDENTIFICATION
 
6
*   $PostgreSQL: pgjdbc/org/postgresql/core/Oid.java,v 1.9 2005/07/04 18:50:28 davec Exp $
 
7
*
 
8
*-------------------------------------------------------------------------
 
9
*/
 
10
package org.postgresql.core;
 
11
 
 
12
/**
 
13
 * Provides constants for well-known backend OIDs for the types we commonly
 
14
 * use.
 
15
 */
 
16
public class Oid {
 
17
    public static final int INVALID = 0;
 
18
    public static final int INT2 = 21;
 
19
    public static final int INT4 = 23;
 
20
    public static final int INT8 = 20;
 
21
    public static final int TEXT = 25;
 
22
    public static final int NUMERIC = 1700;
 
23
    public static final int FLOAT4 = 700;
 
24
    public static final int FLOAT8 = 701;
 
25
    public static final int BOOL = 16;
 
26
    public static final int DATE = 1082;
 
27
    public static final int TIME = 1083;
 
28
    public static final int TIMETZ = 1266;
 
29
    public static final int TIMESTAMP = 1114;
 
30
    public static final int TIMESTAMPTZ = 1184;
 
31
    public static final int BYTEA = 17;
 
32
    public static final int VARCHAR = 1043;
 
33
    public static final int OID = 26;
 
34
    public static final int BPCHAR = 1042;
 
35
    public static final int MONEY = 790;
 
36
    public static final int NAME = 19;
 
37
    public static final int BIT = 1560;
 
38
    public static final int VOID = 2278;
 
39
 
 
40
}