mondrian.test.loader
Class DBLoader.Type
java.lang.Object
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)
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DBLoader.Type
public DBLoader.Type(String name)
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