|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.common.jdbc.model.spi.CoreMetaDataBean org.jboss.dna.common.jdbc.model.spi.DatabaseNamedObjectBean org.jboss.dna.common.jdbc.model.spi.SqlTypeInfoBean
public class SqlTypeInfoBean
Provides RDBMS supported standatd SQL types info.
Constructor Summary | |
---|---|
SqlTypeInfoBean()
Default constructor |
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 class org.jboss.dna.common.jdbc.model.spi.DatabaseNamedObjectBean |
---|
addExtraProperty, deleteExtraProperty, getExtraProperties, getExtraProperty, getName, getRemarks, setName, setRemarks |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.dna.common.jdbc.model.api.DatabaseNamedObject |
---|
addExtraProperty, deleteExtraProperty, getExtraProperties, getExtraProperty, getName, getRemarks, setName, setRemarks |
Constructor Detail |
---|
public SqlTypeInfoBean()
Method Detail |
---|
public String getLocalizedTypeName()
getLocalizedTypeName
in interface SqlTypeInfo
public void setLocalizedTypeName(String localizedTypeName)
setLocalizedTypeName
in interface SqlTypeInfo
localizedTypeName
- localized version of type name (may be null)public NullabilityType getNullabilityType()
getNullabilityType
in interface SqlTypeInfo
public void setNullabilityType(NullabilityType nullabilityType)
setNullabilityType
in interface SqlTypeInfo
nullabilityType
- SQL type nullabilitypublic SqlType getSqlType()
getSqlType
in interface SqlTypeInfo
public void setSqlType(SqlType sqlType)
setSqlType
in interface SqlTypeInfo
sqlType
- the SQL type from java.sql.Typespublic Long getPrecision()
getPrecision
in interface SqlTypeInfo
public void setPrecision(Long precision)
setPrecision
in interface SqlTypeInfo
precision
- precision if applicable otherwise 0public Boolean isFixedPrecisionScale()
isFixedPrecisionScale
in interface SqlTypeInfo
public void setFixedPrecisionScale(Boolean fixedPrecisionScale)
setFixedPrecisionScale
in interface SqlTypeInfo
fixedPrecisionScale
- true if sql type can be a money value, for instancepublic Integer getNumberPrecisionRadix()
getNumberPrecisionRadix
in interface SqlTypeInfo
public void setNumberPrecisionRadix(Integer numberPrecisionRadix)
setNumberPrecisionRadix
in interface SqlTypeInfo
numberPrecisionRadix
- the sql type precision radix (usually 2 or 10)public Integer getMinScale()
getMinScale
in interface SqlTypeInfo
public void setMinScale(Integer minScale)
setMinScale
in interface SqlTypeInfo
minScale
- minimum scale supportedpublic Integer getMaxScale()
getMaxScale
in interface SqlTypeInfo
public void setMaxScale(Integer maxScale)
setMaxScale
in interface SqlTypeInfo
maxScale
- the maximum scale supportedpublic String getLiteralPrefix()
getLiteralPrefix
in interface SqlTypeInfo
public void setLiteralPrefix(String literalPrefix)
setLiteralPrefix
in interface SqlTypeInfo
literalPrefix
- the prefix used to quote a literal (may be null)public String getLiteralSuffix()
getLiteralSuffix
in interface SqlTypeInfo
public void setLiteralSuffix(String literalSuffix)
setLiteralSuffix
in interface SqlTypeInfo
literalSuffix
- the suffix used to quote a literal (may be null)public String getCreateParams()
getCreateParams
in interface SqlTypeInfo
public void setCreateParams(String createParams)
setCreateParams
in interface SqlTypeInfo
createParams
- the parameters used in creating the type (may be null)public Boolean isCaseSensitive()
isCaseSensitive
in interface SqlTypeInfo
public void setCaseSensitive(Boolean caseSensitive)
setCaseSensitive
in interface SqlTypeInfo
caseSensitive
- the true if sql type case sensitivepublic SearchabilityType getSearchabilityType()
getSearchabilityType
in interface SqlTypeInfo
public void setSearchabilityType(SearchabilityType searchabilityType)
setSearchabilityType
in interface SqlTypeInfo
searchabilityType
- the sql type searchabilitypublic Boolean isUnsigned()
isUnsigned
in interface SqlTypeInfo
public void setUnsigned(Boolean unsigned)
setUnsigned
in interface SqlTypeInfo
unsigned
- true if sql type is unsignedpublic Boolean isAutoIncrement()
isAutoIncrement
in interface SqlTypeInfo
public void setAutoIncrement(Boolean autoIncrement)
setAutoIncrement
in interface SqlTypeInfo
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 |