|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SqlTypeInfo
Provides RDBMS supported standatd SQL types info.
Method Summary | |
---|---|
String |
getCreateParams()
Returns parameters used in creating the type (may be null) |
String |
getLiteralPrefix()
Returns prefix used to quote a literal (may be null) |
String |
getLiteralSuffix()
Returns suffix used to quote a literal (may be null) |
String |
getLocalizedTypeName()
Returns localized version of type name (may be null). |
Integer |
getMaxScale()
Returns maximum scale supported |
Integer |
getMinScale()
Returns minimum scale supported |
NullabilityType |
getNullabilityType()
Gets SQL type nullability |
Integer |
getNumberPrecisionRadix()
Returns sql type precision radix (usually 2 or 10) |
Long |
getPrecision()
Gets precision (number of fractional digits/scale) if applicable otherwise 0. |
SearchabilityType |
getSearchabilityType()
Returns sql type searchability |
SqlType |
getSqlType()
Gets SQL type from java.sql.Types |
Boolean |
isAutoIncrement()
Returns true if sql type can be used for an auto-increment value. |
Boolean |
isCaseSensitive()
Is sql type case sensitive |
Boolean |
isFixedPrecisionScale()
Returns true if sql type can be a money value, for instance |
Boolean |
isUnsigned()
Returns true if sql type is unsigned |
void |
setAutoIncrement(Boolean autoIncrement)
Sets true if sql type can be used for an auto-increment value. |
void |
setCaseSensitive(Boolean caseSensitive)
Is sql type case sensitive |
void |
setCreateParams(String createParams)
Sets parameters used in creating the type (may be null) |
void |
setFixedPrecisionScale(Boolean fixedPrecisionScale)
Sets true if sql type can be a money value, for instance |
void |
setLiteralPrefix(String literalPrefix)
Sets prefix used to quote a literal (may be null) |
void |
setLiteralSuffix(String literalSuffix)
Sets suffix used to quote a literal (may be null) |
void |
setLocalizedTypeName(String localizedTypeName)
Sets localized version of type name (may be null). |
void |
setMaxScale(Integer maxScale)
Sets maximum scale supported |
void |
setMinScale(Integer minScale)
Sets minimum scale supported |
void |
setNullabilityType(NullabilityType nullabilityType)
Sets SQL type nullability |
void |
setNumberPrecisionRadix(Integer numberPrecisionRadix)
sets sql type precision radix (usually 2 or 10) |
void |
setPrecision(Long precision)
Sets precision (number of fractional digits/scale) if applicable otherwise 0. |
void |
setSearchabilityType(SearchabilityType searchabilityType)
Sets sql type searchability |
void |
setSqlType(SqlType sqlType)
Sets SQL type from java.sql.Types |
void |
setUnsigned(Boolean unsigned)
Sets true if sql type is unsigned |
Methods inherited from interface org.jboss.dna.common.jdbc.model.api.DatabaseNamedObject |
---|
addExtraProperty, deleteExtraProperty, getExtraProperties, getExtraProperty, getName, getRemarks, setName, setRemarks |
Method Detail |
---|
String getLocalizedTypeName()
void setLocalizedTypeName(String localizedTypeName)
localizedTypeName
- localized version of type name (may be null)NullabilityType getNullabilityType()
void setNullabilityType(NullabilityType nullabilityType)
nullabilityType
- SQL type nullabilitySqlType getSqlType()
void setSqlType(SqlType sqlType)
sqlType
- the SQL type from java.sql.TypesLong getPrecision()
void setPrecision(Long precision)
precision
- precision if applicable otherwise 0Boolean isFixedPrecisionScale()
void setFixedPrecisionScale(Boolean fixedPrecisionScale)
fixedPrecisionScale
- true if sql type can be a money value, for instanceInteger getNumberPrecisionRadix()
void setNumberPrecisionRadix(Integer numberPrecisionRadix)
numberPrecisionRadix
- the sql type precision radix (usually 2 or 10)Integer getMinScale()
void setMinScale(Integer minScale)
minScale
- minimum scale supportedInteger getMaxScale()
void setMaxScale(Integer maxScale)
maxScale
- the maximum scale supportedString getLiteralPrefix()
void setLiteralPrefix(String literalPrefix)
literalPrefix
- the prefix used to quote a literal (may be null)String getLiteralSuffix()
void setLiteralSuffix(String literalSuffix)
literalSuffix
- the suffix used to quote a literal (may be null)String getCreateParams()
void setCreateParams(String createParams)
createParams
- the parameters used in creating the type (may be null)Boolean isCaseSensitive()
void setCaseSensitive(Boolean caseSensitive)
caseSensitive
- the true if sql type case sensitiveSearchabilityType getSearchabilityType()
void setSearchabilityType(SearchabilityType searchabilityType)
searchabilityType
- the sql type searchabilityBoolean isUnsigned()
void setUnsigned(Boolean unsigned)
unsigned
- true if sql type is unsignedBoolean isAutoIncrement()
void setAutoIncrement(Boolean autoIncrement)
autoIncrement
- true if sql type can be used for an auto-increment value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |