goldengate.common.database.model
Enum DbModelPostgresql.DBType

java.lang.Object
  extended by java.lang.Enum<DbModelPostgresql.DBType>
      extended by goldengate.common.database.model.DbModelPostgresql.DBType
All Implemented Interfaces:
Serializable, Comparable<DbModelPostgresql.DBType>
Enclosing class:
DbModelPostgresql

protected static enum DbModelPostgresql.DBType
extends Enum<DbModelPostgresql.DBType>


Enum Constant Summary
BIGINT
           
BIT
           
CHAR
           
DATE
           
DOUBLE
           
INTEGER
           
LONGVARCHAR
           
REAL
           
SMALLINT
           
TIMESTAMP
           
TINYINT
           
VARBINARY
           
VARCHAR
           
 
Field Summary
 String constructor
           
 int type
           
 
Method Summary
static String getType(int sqltype)
           
static DbModelPostgresql.DBType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DbModelPostgresql.DBType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CHAR

public static final DbModelPostgresql.DBType CHAR

VARCHAR

public static final DbModelPostgresql.DBType VARCHAR

LONGVARCHAR

public static final DbModelPostgresql.DBType LONGVARCHAR

BIT

public static final DbModelPostgresql.DBType BIT

TINYINT

public static final DbModelPostgresql.DBType TINYINT

SMALLINT

public static final DbModelPostgresql.DBType SMALLINT

INTEGER

public static final DbModelPostgresql.DBType INTEGER

BIGINT

public static final DbModelPostgresql.DBType BIGINT

REAL

public static final DbModelPostgresql.DBType REAL

DOUBLE

public static final DbModelPostgresql.DBType DOUBLE

VARBINARY

public static final DbModelPostgresql.DBType VARBINARY

DATE

public static final DbModelPostgresql.DBType DATE

TIMESTAMP

public static final DbModelPostgresql.DBType TIMESTAMP
Field Detail

type

public int type

constructor

public String constructor
Method Detail

values

public static DbModelPostgresql.DBType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DbModelPostgresql.DBType c : DbModelPostgresql.DBType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DbModelPostgresql.DBType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getType

public static String getType(int sqltype)


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.