Class DBVendorType
- java.lang.Object
-
- com.sun.jdo.spi.persistence.support.sqlstore.database.DBVendorType
-
public class DBVendorType extends Object
-
-
Constructor Summary
Constructors Constructor Description DBVendorType(DatabaseMetaData databaseMetaData, String identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAbs()
Returns the string that represents prefix for "abs" clause for this databaseString
getCharLength()
Returns the string that represents prefix for "Char_length" clause for this databaseString
getConcatCast()
Returns cast name that surrounds concat operation.String
getForUpdate()
Returns the string that represents "for update" clause for this databaseString
getHoldlock()
Returns the string that represents "holdlock" clause for this databaseString
getIsNotNull()
Returns the string that represents "is not NULL" clause for this databaseString
getIsNull()
Returns the string that represents "is NULL" clause for this databaseString
getLeftJoin()
Returns the string that represents "left join" clause for this databaseString
getLeftJoinPost()
Returns the string that represents postfix for "left join" clause for this databaseString
getLeftLikeEscape()
Returns left string that represents "LIKE ESCAPE" clause for this databaseString
getModFunctionName()
Returns function name for MOD.String
getName()
Returns database vendor typeString
getNotEqual()
Returns the string that represents the not-equal-to operator for this database.String
getNullComparisonFunctionName()
Returns function name for comparing null value for this databaseString
getParameterMarker(int type)
Gets string used as parameter marker.String
getPosition()
Returns the string that represents "Position" clause for this databaseString
getPositionSep()
Returns the string that represents separator part of "Position" clause for this databaseString
getQuoteCharEnd()
Returns the end identifier quote character for this database, or an empty string, if there is none.String
getQuoteCharStart()
Returns the start identifier quote character for this database, or an empty string, if there is none.boolean
getQuoteSpecialOnly()
Returns true if only identifiers with special characters should be quoted for this databaseString
getRightJoin()
Returns the string that represents "right join" clause for this databaseString
getRightJoinPre()
Returns the string that represents prefix for "right join" clause for this databaseString
getRightLikeEscape()
Returns right string that represents "LIKE ESCAPE" clause for this databaseString
getRtrim()
Returns the string that represents "RTRIM" clause for this databaseString
getRtrimPost()
Returns the string that represents postfix for "RTRIM" clause for this databaseSpecialDBOperation
getSpecialDBOperation()
Returns a SpecialDBOperation objectString
getSqrt()
Returns the string that represents prefix for "Sqrt" clause for this databaseString
getStringConcat()
Returns the string that represents concatenation operation for this databaseString
getSubstring()
Returns the string that represents prefix for "Substring" clause for this databaseString
getSubstringFor()
Returns the string that represents for part for "Substr" clause for this databaseString
getSubstringFrom()
Returns the string that represents from part for "Substring" clause for this databaseString
getTableListEnd()
Returns the string that represents end of table list for this databaseString
getTableListStart()
Returns the string that represents start of table list for this databaseboolean
isAnsiTrim()
Returns true if this database need ansi style rtrim semantics.boolean
isDistinctSupportedWithUpdateLock()
Returns true if this database supports distinct clause with update lockboolean
isInlineNumeric()
Returns true if numeric parameters are inlined for this databaseboolean
isLockColumnListSupported()
Returns true if this database supports update 'of column list'boolean
isModOperationUsingFunction()
Returns true if modulo operation uses function, false otherwise.boolean
isNativeOuterJoin()
Returns true if the this database needs native outer join semantics.boolean
isParameterCast()
Returns true if parameters need to be casted for this databaseboolean
isPositionSearchSource()
Returns true if first position argument is Search String and second argument is Source String for this databaseboolean
isPositionThreeArgs()
Returns true if position has three argument for this databaseboolean
isUpdateLockSupported()
Returns true if this database supports update lockboolean
mapEmptyStringToNull()
Returns true if this database maps empty Strings to NULLboolean
supportsLikeEscape()
Returns true if this database supports "LIKE ESCAPE" clause
-
-
-
Constructor Detail
-
DBVendorType
public DBVendorType(DatabaseMetaData databaseMetaData, String identifier) throws SQLException
- Parameters:
databaseMetaData
- Instance of DatabaseMetaDataidentifier
- identifier of the caller creating a new instance of SQLStoreManager.- Throws:
SQLException
-
-
Method Detail
-
getLeftJoin
public String getLeftJoin()
Returns the string that represents "left join" clause for this database
-
isUpdateLockSupported
public boolean isUpdateLockSupported()
Returns true if this database supports update lock
-
isLockColumnListSupported
public boolean isLockColumnListSupported()
Returns true if this database supports update 'of column list'
-
isDistinctSupportedWithUpdateLock
public boolean isDistinctSupportedWithUpdateLock()
Returns true if this database supports distinct clause with update lock
-
getHoldlock
public String getHoldlock()
Returns the string that represents "holdlock" clause for this database
-
isNativeOuterJoin
public boolean isNativeOuterJoin()
Returns true if the this database needs native outer join semantics.
-
getLeftJoinPost
public String getLeftJoinPost()
Returns the string that represents postfix for "left join" clause for this database
-
getRightJoin
public String getRightJoin()
Returns the string that represents "right join" clause for this database
-
getRightJoinPre
public String getRightJoinPre()
Returns the string that represents prefix for "right join" clause for this database
-
getIsNull
public String getIsNull()
Returns the string that represents "is NULL" clause for this database
-
getIsNotNull
public String getIsNotNull()
Returns the string that represents "is not NULL" clause for this database
-
isAnsiTrim
public boolean isAnsiTrim()
Returns true if this database need ansi style rtrim semantics.
-
getRtrim
public String getRtrim()
Returns the string that represents "RTRIM" clause for this database
-
getRtrimPost
public String getRtrimPost()
Returns the string that represents postfix for "RTRIM" clause for this database
-
getCharLength
public String getCharLength()
Returns the string that represents prefix for "Char_length" clause for this database
-
getSqrt
public String getSqrt()
Returns the string that represents prefix for "Sqrt" clause for this database
-
getAbs
public String getAbs()
Returns the string that represents prefix for "abs" clause for this database
-
getForUpdate
public String getForUpdate()
Returns the string that represents "for update" clause for this database
-
getTableListStart
public String getTableListStart()
Returns the string that represents start of table list for this database
-
getTableListEnd
public String getTableListEnd()
Returns the string that represents end of table list for this database
-
getStringConcat
public String getStringConcat()
Returns the string that represents concatenation operation for this database
-
getQuoteCharStart
public String getQuoteCharStart()
Returns the start identifier quote character for this database, or an empty string, if there is none.
-
getQuoteCharEnd
public String getQuoteCharEnd()
Returns the end identifier quote character for this database, or an empty string, if there is none.
-
getQuoteSpecialOnly
public boolean getQuoteSpecialOnly()
Returns true if only identifiers with special characters should be quoted for this database
-
getSubstring
public String getSubstring()
Returns the string that represents prefix for "Substring" clause for this database
-
getSubstringFrom
public String getSubstringFrom()
Returns the string that represents from part for "Substring" clause for this database
-
getSubstringFor
public String getSubstringFor()
Returns the string that represents for part for "Substr" clause for this database
-
getPosition
public String getPosition()
Returns the string that represents "Position" clause for this database
-
getPositionSep
public String getPositionSep()
Returns the string that represents separator part of "Position" clause for this database
-
isPositionSearchSource
public boolean isPositionSearchSource()
Returns true if first position argument is Search String and second argument is Source String for this database
-
isPositionThreeArgs
public boolean isPositionThreeArgs()
Returns true if position has three argument for this database
-
mapEmptyStringToNull
public boolean mapEmptyStringToNull()
Returns true if this database maps empty Strings to NULL
-
supportsLikeEscape
public boolean supportsLikeEscape()
Returns true if this database supports "LIKE ESCAPE" clause
-
getLeftLikeEscape
public String getLeftLikeEscape()
Returns left string that represents "LIKE ESCAPE" clause for this database
-
getRightLikeEscape
public String getRightLikeEscape()
Returns right string that represents "LIKE ESCAPE" clause for this database
-
getNullComparisonFunctionName
public String getNullComparisonFunctionName()
Returns function name for comparing null value for this database
-
isModOperationUsingFunction
public boolean isModOperationUsingFunction()
Returns true if modulo operation uses function, false otherwise.
-
getModFunctionName
public String getModFunctionName()
Returns function name for MOD.
-
getConcatCast
public String getConcatCast()
Returns cast name that surrounds concat operation.
-
isParameterCast
public boolean isParameterCast()
Returns true if parameters need to be casted for this database
-
isInlineNumeric
public boolean isInlineNumeric()
Returns true if numeric parameters are inlined for this database
-
getNotEqual
public String getNotEqual()
Returns the string that represents the not-equal-to operator for this database. This has been added for Symfoware database which does not support "!=" for NOT EQUAL, and will have to use "<>".
-
getName
public String getName()
Returns database vendor type
-
getSpecialDBOperation
public SpecialDBOperation getSpecialDBOperation()
Returns a SpecialDBOperation object
-
getParameterMarker
public String getParameterMarker(int type)
Gets string used as parameter marker. Parameters must be casted on DB2/Derby.- Parameters:
type
- type for which parameter marker is required.- Returns:
- parameter marker for
type
.
-
-