public class DefaultSQLDBTypeFactory extends Object implements SQLDBTypeFactory
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DefaultSQLDBTypeFactory.DefaultTypeCode |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ABSTRACT_DB_TYPE_STR |
protected static String |
BIGINT_STR |
protected static String |
BINARY_LARGE_STR |
protected static String |
BINARY_STR |
protected static String |
BINARY_VAR_STR |
protected static String |
BLOB_STR |
protected static String |
BOOLEAN_STR |
protected static String |
CHAR_LARGE_STR |
static String |
CHAR_STR |
protected static String |
CHAR_VAR_STR |
protected static String |
CHARACTER_STR |
protected static String |
CLOB_STR |
static String |
DATE_STR |
protected static String |
DECIMAL_STR |
protected it.unibz.inf.ontop.model.type.impl.NonStringNonNumberNonBooleanNonDatetimeDBTermType.StrictEqSupport |
defaultStrictEqSupport |
protected static String |
DOUBLE_PREC_STR |
protected static String |
DOUBLE_STR |
protected static String |
FLOAT_STR |
protected static String |
INT_STR |
static String |
INTEGER_STR |
protected static String |
NATIONAL_CHAR_LARGE_STR |
protected static String |
NATIONAL_CHAR_STR |
protected static String |
NATIONAL_CHAR_VAR_STR |
static String |
NATIONAL_TEXT_STR |
protected static String |
NCHAR_STR |
static String |
NTEXT_STR |
protected static String |
NUMERIC_STR |
protected static String |
NVARCHAR_STR |
protected static String |
REAL_STR |
static String |
SMALLINT_STR |
static String |
TEXT_STR |
static String |
TIME_STR |
static String |
TIMESTAMP_STR |
static String |
TINYINT_STR |
protected static String |
VARBINARY_STR |
protected static String |
VARCHAR_STR |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultSQLDBTypeFactory(Map<String,it.unibz.inf.ontop.model.type.DBTermType> typeMap,
com.google.common.collect.ImmutableMap<DefaultSQLDBTypeFactory.DefaultTypeCode,String> defaultTypeCodeMap) |
| Modifier and Type | Method and Description |
|---|---|
protected static Map<DefaultSQLDBTypeFactory.DefaultTypeCode,String> |
createDefaultSQLCodeMap()
Returns a mutable map so that it can be modified by sub-classes
NB: we use the largest option among the DB datatypes mapped to the same XSD type.
|
protected static Map<String,it.unibz.inf.ontop.model.type.DBTermType> |
createDefaultSQLTypeMap(it.unibz.inf.ontop.model.type.TermType rootTermType,
it.unibz.inf.ontop.model.type.TypeFactory typeFactory)
Returns a mutable map so that it can be modified by sub-classes
|
it.unibz.inf.ontop.model.type.DBTermType |
getAbstractRootDBType() |
it.unibz.inf.ontop.model.type.DBTermType |
getDBBooleanType() |
it.unibz.inf.ontop.model.type.DBTermType |
getDBDateTimestampType() |
it.unibz.inf.ontop.model.type.DBTermType |
getDBDateType() |
it.unibz.inf.ontop.model.type.DBTermType |
getDBDecimalType() |
it.unibz.inf.ontop.model.type.DBTermType |
getDBDoubleType() |
String |
getDBFalseLexicalValue() |
it.unibz.inf.ontop.model.type.DBTermType |
getDBHexBinaryType() |
it.unibz.inf.ontop.model.type.DBTermType |
getDBLargeIntegerType() |
Optional<String> |
getDBNaNLexicalValue() |
it.unibz.inf.ontop.model.type.DBTermType |
getDBStringType() |
it.unibz.inf.ontop.model.type.DBTermType |
getDBTermType(String typeName) |
it.unibz.inf.ontop.model.type.DBTermType |
getDBTermType(String typeName,
int columnSize) |
it.unibz.inf.ontop.model.type.DBTermType |
getDBTimeType() |
String |
getDBTrueLexicalValue() |
String |
getNullLexicalValue() |
protected String |
preprocessTypeName(String typeName)
Can be overridden
|
protected String |
preprocessTypeName(String typeName,
int columnSize)
By default, ignore the column size
Can be overridden
|
protected static final String ABSTRACT_DB_TYPE_STR
public static final String TEXT_STR
public static final String CHAR_STR
protected static final String CHARACTER_STR
protected static final String VARCHAR_STR
protected static final String CHAR_VAR_STR
protected static final String CLOB_STR
protected static final String CHAR_LARGE_STR
public static final String NATIONAL_TEXT_STR
public static final String NTEXT_STR
protected static final String NATIONAL_CHAR_STR
protected static final String NCHAR_STR
protected static final String NATIONAL_CHAR_VAR_STR
protected static final String NVARCHAR_STR
protected static final String NATIONAL_CHAR_LARGE_STR
public static final String INTEGER_STR
protected static final String INT_STR
public static final String TINYINT_STR
public static final String SMALLINT_STR
protected static final String BIGINT_STR
protected static final String NUMERIC_STR
protected static final String DECIMAL_STR
protected static final String FLOAT_STR
protected static final String REAL_STR
protected static final String DOUBLE_STR
protected static final String DOUBLE_PREC_STR
protected static final String BOOLEAN_STR
public static final String DATE_STR
public static final String TIME_STR
public static final String TIMESTAMP_STR
protected static final String BINARY_STR
protected static final String BINARY_VAR_STR
protected static final String VARBINARY_STR
protected static final String BINARY_LARGE_STR
protected static final String BLOB_STR
protected final it.unibz.inf.ontop.model.type.impl.NonStringNonNumberNonBooleanNonDatetimeDBTermType.StrictEqSupport defaultStrictEqSupport
protected DefaultSQLDBTypeFactory(Map<String,it.unibz.inf.ontop.model.type.DBTermType> typeMap, com.google.common.collect.ImmutableMap<DefaultSQLDBTypeFactory.DefaultTypeCode,String> defaultTypeCodeMap)
protected static Map<String,it.unibz.inf.ontop.model.type.DBTermType> createDefaultSQLTypeMap(it.unibz.inf.ontop.model.type.TermType rootTermType, it.unibz.inf.ontop.model.type.TypeFactory typeFactory)
protected static Map<DefaultSQLDBTypeFactory.DefaultTypeCode,String> createDefaultSQLCodeMap()
public it.unibz.inf.ontop.model.type.DBTermType getDBTermType(String typeName)
getDBTermType in interface it.unibz.inf.ontop.model.type.DBTypeFactorypublic it.unibz.inf.ontop.model.type.DBTermType getDBTermType(String typeName, int columnSize)
getDBTermType in interface it.unibz.inf.ontop.model.type.DBTypeFactorypublic String getDBTrueLexicalValue()
getDBTrueLexicalValue in interface it.unibz.inf.ontop.model.type.DBTypeFactorypublic String getDBFalseLexicalValue()
getDBFalseLexicalValue in interface it.unibz.inf.ontop.model.type.DBTypeFactorypublic String getNullLexicalValue()
getNullLexicalValue in interface it.unibz.inf.ontop.model.type.DBTypeFactorypublic Optional<String> getDBNaNLexicalValue()
getDBNaNLexicalValue in interface it.unibz.inf.ontop.model.type.DBTypeFactoryprotected String preprocessTypeName(String typeName, int columnSize)
public it.unibz.inf.ontop.model.type.DBTermType getDBStringType()
getDBStringType in interface it.unibz.inf.ontop.model.type.DBTypeFactorypublic it.unibz.inf.ontop.model.type.DBTermType getDBLargeIntegerType()
getDBLargeIntegerType in interface it.unibz.inf.ontop.model.type.DBTypeFactorypublic it.unibz.inf.ontop.model.type.DBTermType getDBDecimalType()
getDBDecimalType in interface it.unibz.inf.ontop.model.type.DBTypeFactorypublic it.unibz.inf.ontop.model.type.DBTermType getDBBooleanType()
getDBBooleanType in interface it.unibz.inf.ontop.model.type.DBTypeFactorypublic it.unibz.inf.ontop.model.type.DBTermType getDBDateType()
getDBDateType in interface it.unibz.inf.ontop.model.type.DBTypeFactorypublic it.unibz.inf.ontop.model.type.DBTermType getDBTimeType()
getDBTimeType in interface it.unibz.inf.ontop.model.type.DBTypeFactorypublic it.unibz.inf.ontop.model.type.DBTermType getDBDateTimestampType()
getDBDateTimestampType in interface it.unibz.inf.ontop.model.type.DBTypeFactorypublic it.unibz.inf.ontop.model.type.DBTermType getDBDoubleType()
getDBDoubleType in interface it.unibz.inf.ontop.model.type.DBTypeFactorypublic it.unibz.inf.ontop.model.type.DBTermType getDBHexBinaryType()
getDBHexBinaryType in interface it.unibz.inf.ontop.model.type.DBTypeFactorypublic it.unibz.inf.ontop.model.type.DBTermType getAbstractRootDBType()
getAbstractRootDBType in interface it.unibz.inf.ontop.model.type.DBTypeFactoryCopyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.