Class OracleDBFunctionSymbolFactory
- java.lang.Object
-
- it.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactory
-
- it.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractSQLDBFunctionSymbolFactory
-
- it.unibz.inf.ontop.model.term.functionsymbol.db.impl.OracleDBFunctionSymbolFactory
-
- All Implemented Interfaces:
DBFunctionSymbolFactory
public class OracleDBFunctionSymbolFactory extends AbstractSQLDBFunctionSymbolFactory
-
-
Field Summary
-
Fields inherited from class it.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractSQLDBFunctionSymbolFactory
ABS_STR, abstractRootDBType, abstractRootType, ADD_STR, AND_STR, CEIL_STR, CHAR_LENGTH_STR, COALESCE_STR, CONCAT_OP_STR, CONCAT_STR, CURRENT_TIMESTAMP_STR, dbBooleanType, dbDecimalType, dbDoubleType, dbIntegerType, dbStringType, dbTypeFactory, DIVIDE_STR, FLOOR_STR, LCASE_STR, LENGTH_STR, LOWER_STR, MULTIPLY_STR, NOT_STR, NULLIF_STR, OR_STR, RAND_STR, REGEXP_LIKE_STR, REGEXP_REPLACE_STR, REPLACE_STR, RIGHT_STR, ROUND_STR, ST_ASTEXT, ST_CONTAINS, ST_CONTAINSPROPERLY, ST_COVEREDBY, ST_COVERS, ST_CROSSES, ST_DISJOINT, ST_DISTANCE, ST_DISTANCE_SPHERE, ST_DISTANCE_SPHEROID, ST_EQUALS, ST_FLIP_COORDINATES, ST_GEOMFROMTEXT, ST_INTERSECTS, ST_MAKEPOINT, ST_OVERLAPS, ST_SETSRID, ST_TOUCHES, ST_TRANSFORM, ST_WITHIN, SUBSTR_STR, SUBSTRING_STR, SUBTRACT_STR, typeFactory, UCASE_STR, UPPER_STR
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedOracleDBFunctionSymbolFactory(TypeFactory typeFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DBTypeConversionFunctionSymbolcreateDateTimeDenormFunctionSymbol(DBTermType timestampType)protected DBTypeConversionFunctionSymbolcreateDateTimeNormFunctionSymbol(DBTermType dbDateTimestampType)Overridesprotected DBBooleanFunctionSymbolcreateDBBooleanCase(int arity, boolean doOrderingMatter)DBConcatFunctionSymbolcreateDBConcatOperator(int arity)Treats NULLs as empty stringsprotected DBIsNullOrNotFunctionSymbolcreateDBIsNotNull(DBTermType dbBooleanType, DBTermType rootDBTermType)protected DBIsNullOrNotFunctionSymbolcreateDBIsNull(DBTermType dbBooleanType, DBTermType rootDBTermType)protected DBTypeConversionFunctionSymbolcreateDefaultCastToStringFunctionSymbol(DBTermType inputType)protected it.unibz.inf.ontop.com.google.common.collect.ImmutableTable<DBTermType,RDFDatatype,DBTypeConversionFunctionSymbol>createDenormalizationTable()protected DBTypeConversionFunctionSymbolcreateIntegerToStringCastFunctionSymbol(DBTermType inputType)The returned function symbol can apply additional optimizationsprotected it.unibz.inf.ontop.com.google.common.collect.ImmutableTable<DBTermType,RDFDatatype,DBTypeConversionFunctionSymbol>createNormalizationTable()TODO: shall we alert the user when TIMESTAMP is used with a XSD.DATETIMESTAMP?protected DBConcatFunctionSymbolcreateNullRejectingDBConcat(int arity)protected static it.unibz.inf.ontop.com.google.common.collect.ImmutableTable<String,Integer,DBFunctionSymbol>createOracleRegularFunctionTable(TypeFactory typeFactory)protected DBConcatFunctionSymbolcreateRegularDBConcat(int arity)Treats NULLs as empty stringsprotected DBTypeConversionFunctionSymbolcreateSimpleCastFunctionSymbol(DBTermType targetType)protected DBTypeConversionFunctionSymbolcreateStringToStringCastFunctionSymbol(DBTermType inputType, DBTermType targetType)Made explicit, so as to enforce the use of the same character setprotected DBFunctionSymbolcreateTzFunctionSymbol()TODO: use a different implementation of the FunctionSymbol for simplifying in the presence of TIMESTAMP (has no TZ) Currently: Oracle throws a fatal errorDBFunctionSymbolgetDBCharLength()NonDeterministicDBFunctionSymbolgetDBRand(UUID uuid)DBFunctionSymbolgetDBRight()DBFunctionSymbolgetDBSubString2()DBFunctionSymbolgetDBSubString3()NonDeterministicDBFunctionSymbolgetDBUUID(UUID uuid)protected StringgetRandNameInDialect()Can be overridden.protected StringgetUUIDNameInDialect()protected voidinit()protected StringserializeContains(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)protected StringserializeDateTimeNorm(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)protected StringserializeDateTimeNorm(DBTermType dbDateTimestampType, it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter)NB: In some JDBC connection settings, returns a comma instead of a period.protected StringserializeDaysBetweenFromDate(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)protected StringserializeDaysBetweenFromDateTime(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)protected StringserializeDBRowNumber(Function<ImmutableTerm,String> converter, TermFactory termFactory)protected StringserializeHoursBetween(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)protected StringserializeMD5(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)protected StringserializeMillisBetween(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)protected StringserializeMinutesBetween(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)protected StringserializeSecondsBetween(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)protected StringserializeSHA1(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)protected StringserializeSHA256(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)protected StringserializeSHA512(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)protected StringserializeStrAfter(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)protected StringserializeStrBefore(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)protected StringserializeTz(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)TODO: reformat the number into 05:00 instead of 5:0protected StringserializeWeeksBetween(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)Time extension - duration arithmeticprotected StringserializeWeeksBetweenFromDate(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)-
Methods inherited from class it.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractSQLDBFunctionSymbolFactory
createAbsFunctionSymbol, createAddOperator, createBooleanCoalesceFunctionSymbol, createBooleanDenormFunctionSymbol, createBooleanInequality, createBooleanNormFunctionSymbol, createCeilFunctionSymbol, createCoalesceFunctionSymbol, createDateInequality, createDatetimeInequality, createDatetimeToDatetimeCastFunctionSymbol, createDBAnd, createDBAvg, createDBCase, createDBCount, createDBIfThenElse, createDBIsTrue, createDBMax, createDBMin, createDBNotFunctionSymbol, createDBOr, createDBStrictEquality, createDBStrictNEquality, createDBSum, createDecimalToDecimalCastFunctionSymbol, createDecimalToStringCastFunctionSymbol, createDefaultInequality, createDefaultRegularFunctionTable, createDivideOperator, createEncodeURLorIRI, createFloatDoubleToFloatDoubleCastFunctionSymbol, createFloatDoubleToStringCastFunctionSymbol, createFloorFunctionSymbol, createGeometryNormFunctionSymbol, createIntegerToIntegerCastFunctionSymbol, createIsStringEmpty, createMultiplyOperator, createNonStrictDateEquality, createNonStrictDatetimeEquality, createNonStrictDefaultEquality, createNonStrictNumericEquality, createNonStrictStringEquality, createNumericInequality, createRegularBooleanFunctionSymbol, createRegularUntypedFunctionSymbol, createRoundFunctionSymbol, createSimpleCastFunctionSymbol, createStringInequality, createSubtractOperator, createUntypedAddOperator, createUntypedDivideOperator, createUntypedMultiplyOperator, createUntypedSubtractOperator, getDBAnd, getDBAsText, getDBBoundary, getDBBuffer, getDBConcatOperator, getDBConvexHull, getDBDifference, getDBEnvelope, getDBGetSRID, getDBIfThenElse, getDBIntersection, getDBIsNotNull, getDBIsNull, getDBIsStringEmpty, getDBLower, getDBNow, getDBNullIf, getDBOr, getDBRegexpMatches2, getDBRegexpMatches3, getDBRegexpReplace3, getDBRegexpReplace4, getDBRelate, getDBRelateMatrix, getDBReplace, getDBSTContains, getDBSTContainsProperly, getDBSTCoveredBy, getDBSTCovers, getDBSTCrosses, getDBSTDisjoint, getDBSTDistance, getDBSTDistanceSphere, getDBSTDistanceSpheroid, getDBSTEquals, getDBSTFlipCoordinates, getDBSTGeomFromText, getDBSTIntersects, getDBSTMakePoint, getDBSTOverlaps, getDBSTSetSRID, getDBSTTouches, getDBSTTransform, getDBSTWithin, getDBSymDifference, getDBUnion, getDBUpper, getIsTrue, getNullRejectingDBConcat, isAnd, isCoalesce, isConcat, isOr, serializeDay, serializeDayFromDate, serializeDayFromDatetime, serializeDaysBetween, serializeHours, serializeMinutes, serializeMonth, serializeMonthFromDate, serializeMonthFromDatetime, serializeSeconds, serializeWeeksBetweenFromDateTime, serializeYear, serializeYearFromDate, serializeYearFromDatetime
-
Methods inherited from class it.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactory
canonicalizeRegularFunctionSymbolName, createContainsFunctionSymbol, createCurrentDateTimeFunctionSymbol, createDayFromDateFunctionSymbol, createDayFromDatetimeFunctionSymbol, createDaysBetweenFromDateFunctionSymbol, createDaysBetweenFromDateTimeFunctionSymbol, createDBBinaryMathOperator, createDBBooleanIfElseNull, createDBCountTable, createDBGroupConcat, createDBIriStringResolver, createDBRowNumber, createDBRowUniqueStr, createExtractFunctionSymbol, createFalseOrNullFunctionSymbol, createHoursBetweenFromDateTimeFunctionSymbol, createHoursFunctionSymbol, createLikeFunctionSymbol, createMD5FunctionSymbol, createMillisBetweenFromDateTimeFunctionSymbol, createMinutesBetweenFromDateTimeFunctionSymbol, createMinutesFunctionSymbol, createMonthFromDateFunctionSymbol, createMonthFromDatetimeFunctionSymbol, createRegularIfElseNull, createSecondsBetweenFromDateTimeFunctionSymbol, createSecondsFunctionSymbol, createSHA1FunctionSymbol, createSHA256FunctionSymbol, createSHA512FunctionSymbol, createSimilarToFunctionSymbol, createStrAfterFunctionSymbol, createStrBeforeFunctionSymbol, createStrEndsFunctionSymbol, createStrStartsFunctionSymbol, createTrueOrNullFunctionSymbol, createTypeNullFunctionSymbol, createUntypedDBBinaryMathOperator, createWeeksBetweenFromDateFunctionSymbol, createWeeksBetweenFromDateTimeFunctionSymbol, createYearFromDateFunctionSymbol, createYearFromDatetimeFunctionSymbol, getAbs, getBnodeStringTemplateFunctionSymbol, getCeil, getConversion2RDFLexicalFunctionSymbol, getConversionFromRDFLexical2DBFunctionSymbol, getCurrentDateTimeSymbol, getDBBooleanCase, getDBBooleanCoalesce, getDBBooleanIfElseNull, getDBBooleanInequality, getDBCase, getDBCastFunctionSymbol, getDBCastFunctionSymbol, getDBCoalesce, getDBContains, getDBCount, getDBDateInequality, getDBDatetimeInequality, getDBDayFromDate, getDBDayFromDatetime, getDBDaysBetweenFromDate, getDBDaysBetweenFromDateTime, getDBDefaultInequality, getDBEncodeForURI, getDBEndsWith, getDBHours, getDBHoursBetweenFromDateTime, getDBIfElseNull, getDBIntIndex, getDBIriStringResolver, getDBLike, getDBMathBinaryOperator, getDBMax, getDBMd5, getDBMillisBetweenFromDateTime, getDBMin, getDBMinutes, getDBMinutesBetweenFromDateTime, getDBMonthFromDate, getDBMonthFromDatetime, getDBNonStrictDateEquality, getDBNonStrictDatetimeEquality, getDBNonStrictDefaultEquality, getDBNonStrictNumericEquality, getDBNonStrictStringEquality, getDBNot, getDBNumericInequality, getDBRowNumber, getDBRowUniqueStr, getDBSeconds, getDBSecondsBetweenFromDateTime, getDBSha1, getDBSha256, getDBSha512, getDBSimilarTo, getDBStartsWith, getDBStrAfter, getDBStrBefore, getDBStrictEquality, getDBStrictNEquality, getDBStringInequality, getDBSum, getDBTz, getDBWeeksBetweenFromDate, getDBWeeksBetweenFromDateTime, getDBYearFromDate, getDBYearFromDatetime, getExtractFunctionSymbol, getFalseOrNullFunctionSymbol, getFloor, getFreshBnodeStringTemplateFunctionSymbol, getIRIStringTemplateFunctionSymbol, getNullIgnoringDBAvg, getNullIgnoringDBGroupConcat, getNullIgnoringDBSum, getR2RMLIRISafeEncode, getRegularDBBooleanFunctionSymbol, getRegularDBFunctionSymbol, getRound, getTemporaryConversionToDBStringFunctionSymbol, getTrueOrNullFunctionSymbol, getTypedNullFunctionSymbol, getUntypedDBMathBinaryOperator, serializeCurrentDateTime, serializeDBRowUniqueStr, serializeExtract
-
-
-
-
Constructor Detail
-
OracleDBFunctionSymbolFactory
@Inject protected OracleDBFunctionSymbolFactory(TypeFactory typeFactory)
-
-
Method Detail
-
init
protected void init()
- Overrides:
initin classAbstractSQLDBFunctionSymbolFactory
-
createOracleRegularFunctionTable
protected static it.unibz.inf.ontop.com.google.common.collect.ImmutableTable<String,Integer,DBFunctionSymbol> createOracleRegularFunctionTable(TypeFactory typeFactory)
-
createNormalizationTable
protected it.unibz.inf.ontop.com.google.common.collect.ImmutableTable<DBTermType,RDFDatatype,DBTypeConversionFunctionSymbol> createNormalizationTable()
TODO: shall we alert the user when TIMESTAMP is used with a XSD.DATETIMESTAMP?- Overrides:
createNormalizationTablein classAbstractDBFunctionSymbolFactory
-
createDenormalizationTable
protected it.unibz.inf.ontop.com.google.common.collect.ImmutableTable<DBTermType,RDFDatatype,DBTypeConversionFunctionSymbol> createDenormalizationTable()
- Overrides:
createDenormalizationTablein classAbstractDBFunctionSymbolFactory
-
getDBSubString2
public DBFunctionSymbol getDBSubString2()
- Specified by:
getDBSubString2in interfaceDBFunctionSymbolFactory- Overrides:
getDBSubString2in classAbstractSQLDBFunctionSymbolFactory
-
getDBSubString3
public DBFunctionSymbol getDBSubString3()
- Specified by:
getDBSubString3in interfaceDBFunctionSymbolFactory- Overrides:
getDBSubString3in classAbstractSQLDBFunctionSymbolFactory
-
getDBRight
public DBFunctionSymbol getDBRight()
- Specified by:
getDBRightin interfaceDBFunctionSymbolFactory- Overrides:
getDBRightin classAbstractSQLDBFunctionSymbolFactory
-
getDBCharLength
public DBFunctionSymbol getDBCharLength()
- Specified by:
getDBCharLengthin interfaceDBFunctionSymbolFactory- Overrides:
getDBCharLengthin classAbstractSQLDBFunctionSymbolFactory
-
getDBRand
public NonDeterministicDBFunctionSymbol getDBRand(UUID uuid)
- Specified by:
getDBRandin interfaceDBFunctionSymbolFactory- Overrides:
getDBRandin classAbstractSQLDBFunctionSymbolFactory
-
getRandNameInDialect
protected String getRandNameInDialect()
Description copied from class:AbstractSQLDBFunctionSymbolFactoryCan be overridden.Not an official SQL function
- Overrides:
getRandNameInDialectin classAbstractSQLDBFunctionSymbolFactory
-
serializeContains
protected String serializeContains(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)
- Specified by:
serializeContainsin classAbstractDBFunctionSymbolFactory
-
serializeStrBefore
protected String serializeStrBefore(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)
- Specified by:
serializeStrBeforein classAbstractDBFunctionSymbolFactory
-
serializeStrAfter
protected String serializeStrAfter(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)
- Specified by:
serializeStrAfterin classAbstractDBFunctionSymbolFactory
-
serializeMD5
protected String serializeMD5(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)
- Specified by:
serializeMD5in classAbstractDBFunctionSymbolFactory
-
serializeSHA1
protected String serializeSHA1(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)
- Specified by:
serializeSHA1in classAbstractDBFunctionSymbolFactory
-
serializeSHA256
protected String serializeSHA256(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)
- Specified by:
serializeSHA256in classAbstractDBFunctionSymbolFactory
-
serializeSHA512
protected String serializeSHA512(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)
- Specified by:
serializeSHA512in classAbstractDBFunctionSymbolFactory
-
createTzFunctionSymbol
protected DBFunctionSymbol createTzFunctionSymbol()
TODO: use a different implementation of the FunctionSymbol for simplifying in the presence of TIMESTAMP (has no TZ) Currently: Oracle throws a fatal error- Overrides:
createTzFunctionSymbolin classAbstractDBFunctionSymbolFactory
-
serializeTz
protected String serializeTz(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)
TODO: reformat the number into 05:00 instead of 5:0- Specified by:
serializeTzin classAbstractDBFunctionSymbolFactory
-
serializeDBRowNumber
protected String serializeDBRowNumber(Function<ImmutableTerm,String> converter, TermFactory termFactory)
- Overrides:
serializeDBRowNumberin classAbstractSQLDBFunctionSymbolFactory
-
createNullRejectingDBConcat
protected DBConcatFunctionSymbol createNullRejectingDBConcat(int arity)
- Specified by:
createNullRejectingDBConcatin classAbstractSQLDBFunctionSymbolFactory
-
createDBConcatOperator
public DBConcatFunctionSymbol createDBConcatOperator(int arity)
Treats NULLs as empty strings- Specified by:
createDBConcatOperatorin classAbstractSQLDBFunctionSymbolFactory
-
createRegularDBConcat
protected DBConcatFunctionSymbol createRegularDBConcat(int arity)
Treats NULLs as empty strings- Specified by:
createRegularDBConcatin classAbstractSQLDBFunctionSymbolFactory
-
createSimpleCastFunctionSymbol
protected DBTypeConversionFunctionSymbol createSimpleCastFunctionSymbol(DBTermType targetType)
- Overrides:
createSimpleCastFunctionSymbolin classAbstractSQLDBFunctionSymbolFactory
-
createStringToStringCastFunctionSymbol
protected DBTypeConversionFunctionSymbol createStringToStringCastFunctionSymbol(DBTermType inputType, DBTermType targetType)
Made explicit, so as to enforce the use of the same character set- Overrides:
createStringToStringCastFunctionSymbolin classAbstractSQLDBFunctionSymbolFactory
-
createIntegerToStringCastFunctionSymbol
protected DBTypeConversionFunctionSymbol createIntegerToStringCastFunctionSymbol(DBTermType inputType)
Description copied from class:AbstractSQLDBFunctionSymbolFactoryThe returned function symbol can apply additional optimizations- Overrides:
createIntegerToStringCastFunctionSymbolin classAbstractSQLDBFunctionSymbolFactory
-
createDefaultCastToStringFunctionSymbol
protected DBTypeConversionFunctionSymbol createDefaultCastToStringFunctionSymbol(DBTermType inputType)
- Overrides:
createDefaultCastToStringFunctionSymbolin classAbstractSQLDBFunctionSymbolFactory
-
createDBBooleanCase
protected DBBooleanFunctionSymbol createDBBooleanCase(int arity, boolean doOrderingMatter)
- Overrides:
createDBBooleanCasein classAbstractSQLDBFunctionSymbolFactory
-
createDBIsNull
protected DBIsNullOrNotFunctionSymbol createDBIsNull(DBTermType dbBooleanType, DBTermType rootDBTermType)
- Overrides:
createDBIsNullin classAbstractSQLDBFunctionSymbolFactory
-
createDBIsNotNull
protected DBIsNullOrNotFunctionSymbol createDBIsNotNull(DBTermType dbBooleanType, DBTermType rootDBTermType)
- Overrides:
createDBIsNotNullin classAbstractSQLDBFunctionSymbolFactory
-
createDateTimeNormFunctionSymbol
protected DBTypeConversionFunctionSymbol createDateTimeNormFunctionSymbol(DBTermType dbDateTimestampType)
Overrides- Overrides:
createDateTimeNormFunctionSymbolin classAbstractSQLDBFunctionSymbolFactory
-
serializeDateTimeNorm
protected String serializeDateTimeNorm(DBTermType dbDateTimestampType, it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter)
NB: In some JDBC connection settings, returns a comma instead of a period.
-
serializeDateTimeNorm
protected String serializeDateTimeNorm(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)
- Specified by:
serializeDateTimeNormin classAbstractSQLDBFunctionSymbolFactory
-
createDateTimeDenormFunctionSymbol
protected DBTypeConversionFunctionSymbol createDateTimeDenormFunctionSymbol(DBTermType timestampType)
- Overrides:
createDateTimeDenormFunctionSymbolin classAbstractSQLDBFunctionSymbolFactory
-
getDBUUID
public NonDeterministicDBFunctionSymbol getDBUUID(UUID uuid)
- Specified by:
getDBUUIDin interfaceDBFunctionSymbolFactory- Overrides:
getDBUUIDin classAbstractSQLDBFunctionSymbolFactory
-
getUUIDNameInDialect
protected String getUUIDNameInDialect()
- Specified by:
getUUIDNameInDialectin classAbstractSQLDBFunctionSymbolFactory
-
serializeWeeksBetween
protected String serializeWeeksBetween(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)
Time extension - duration arithmetic- Overrides:
serializeWeeksBetweenin classAbstractSQLDBFunctionSymbolFactory
-
serializeWeeksBetweenFromDate
protected String serializeWeeksBetweenFromDate(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)
- Overrides:
serializeWeeksBetweenFromDatein classAbstractSQLDBFunctionSymbolFactory
-
serializeDaysBetweenFromDateTime
protected String serializeDaysBetweenFromDateTime(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)
- Overrides:
serializeDaysBetweenFromDateTimein classAbstractSQLDBFunctionSymbolFactory
-
serializeDaysBetweenFromDate
protected String serializeDaysBetweenFromDate(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)
- Overrides:
serializeDaysBetweenFromDatein classAbstractSQLDBFunctionSymbolFactory
-
serializeHoursBetween
protected String serializeHoursBetween(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)
- Overrides:
serializeHoursBetweenin classAbstractSQLDBFunctionSymbolFactory
-
serializeMinutesBetween
protected String serializeMinutesBetween(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)
- Overrides:
serializeMinutesBetweenin classAbstractSQLDBFunctionSymbolFactory
-
serializeSecondsBetween
protected String serializeSecondsBetween(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)
- Overrides:
serializeSecondsBetweenin classAbstractSQLDBFunctionSymbolFactory
-
serializeMillisBetween
protected String serializeMillisBetween(it.unibz.inf.ontop.com.google.common.collect.ImmutableList<? extends ImmutableTerm> terms, Function<ImmutableTerm,String> termConverter, TermFactory termFactory)
- Overrides:
serializeMillisBetweenin classAbstractSQLDBFunctionSymbolFactory
-
-