mondrian.test.loader
Class DBLoader.Type

java.lang.Object
  extended by mondrian.test.loader.DBLoader.Type
Enclosing class:
DBLoader

public static class DBLoader.Type
extends Object

Represents a logical type, such as "BOOLEAN".

Specific databases will represent this their own particular physical type, for example "TINYINT(1)", "BOOLEAN" or "BIT"; see toPhysical(mondrian.spi.Dialect).


Field Summary
static DBLoader.Type Bigint
           
static DBLoader.Type Boolean
           
static DBLoader.Type Date
           
static DBLoader.Type Decimal
           
static Map<String,DBLoader.Type> extraTypes
           
static DBLoader.Type Integer
           
static DBLoader.Type Real
           
static DBLoader.Type Smallint
           
static DBLoader.Type Timestamp
           
static DBLoader.Type Varchar255
           
static DBLoader.Type Varchar30
           
static DBLoader.Type Varchar60
           
 
Constructor Summary
DBLoader.Type(String name)
           
 
Method Summary
 String getName()
           
static DBLoader.Type getType(String typeName)
           
static DBLoader.Type makeType(String typeName)
           
 String toPhysical(Dialect dialect)
          Returns the physical type which a given RDBMS (dialect) uses to represent this logical type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Integer

public static final DBLoader.Type Integer

Decimal

public static final DBLoader.Type Decimal

Smallint

public static final DBLoader.Type Smallint

Varchar30

public static final DBLoader.Type Varchar30

Varchar255

public static final DBLoader.Type Varchar255

Varchar60

public static final DBLoader.Type Varchar60

Real

public static final DBLoader.Type Real

Boolean

public static final DBLoader.Type Boolean

Bigint

public static final DBLoader.Type Bigint

Date

public static final DBLoader.Type Date

Timestamp

public static final DBLoader.Type Timestamp

extraTypes

public static final Map<String,DBLoader.Type> extraTypes
Constructor Detail

DBLoader.Type

public DBLoader.Type(String name)
Method Detail

getType

public static DBLoader.Type getType(String typeName)

makeType

public static DBLoader.Type makeType(String typeName)

getName

public String getName()

toPhysical

public String toPhysical(Dialect dialect)
Returns the physical type which a given RDBMS (dialect) uses to represent this logical type.

Parameters:
dialect - Dialect
Returns:
Physical type the dialect uses to represent this type

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads