public class DecimalType extends NumberType
| Modifier and Type | Field and Description |
|---|---|
static ConfigureInfo |
CONFIG |
static java.lang.String |
NAME |
OQL_NUMBER_FORMATOQL_NULL_STRINGINDEX_TYPE_AUTO, INDEX_TYPE_BRIN, INDEX_TYPE_BRIN_FB_BTREE, INDEX_TYPE_BTREE, INDEX_TYPE_CUSTOM, INDEX_TYPE_GIN, INDEX_TYPE_GIN_FB_BTREE, INDEX_TYPE_NONE, INDEX_TYPE_TRIGRAM, INDEX_TYPES, INDEX_TYPES_HR, NO_CUSTOM_INDEX_VERSION| Constructor and Description |
|---|
DecimalType() |
DecimalType(CBOAttributeTypeI _base,
electric.xml.Element _parms) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyAdditionalEtters(java.lang.String pn,
SourceGeneratorI src,
boolean getterOnly)
Uses a source generator to generate additional setter and getter methods into the source code for an attribute.
|
java.lang.Object |
castToOwnType(java.lang.Object o)
do as much as possible to convert the given value to a BigDecimal
|
java.lang.String |
getCastorFieldType()
From the Castor docs:
"The field element includes an optional attribute called type which can be
used to specify the Java type of the field.
|
java.lang.String |
getCastorSqlType()
From the Castor docs:
"Castor JDO implements automatic type conversion between Java and SQL.
|
java.lang.String |
getExternalizePostfix()
Used for the Schema serialization/diffs and for the naming of the
read/write externalization methods (of which the standard set is defined in
de.ipcon.db.core.BO).
|
javax.swing.text.DocumentFilter |
getFilter(java.util.ArrayList inputFormats) |
java.lang.Class |
getJavaClass()
The not null type/Class of the field in the Java object (the MyTISM BO).
|
int |
getJdbcType()
Type/Class that the JDBC driver returns for the column/field.
|
java.lang.String |
getName() |
java.lang.String |
getNonNullDefaultValue() |
java.lang.String |
getSqlType()
SQL column type in the relational database.
|
java.lang.Integer |
getStandardExpectedWidth() |
boolean |
hasAdditionalEtters() |
boolean |
isMandatory() |
java.lang.Object |
valueOf(java.lang.String s) |
checkConstraints, formatAsInlineParameter, getAltformat, getAsString, getAsString, getAsString, getAsString, getDAUType, getFormat, getMaxInclusiveLimit, getMinInclusiveLimit, getUnit, marshal, setAltformat, setFormat, setMaxInclusiveLimit, setMinInclusiveLimit, setUnit, stringToValueWithTypeTip, stringToValueWithTypeTip, stringToValueWithTypeTip, stringToValueWithTypeTip, unMarshalallowsValue, applyCustomExternalization, applySetBOLoaderHook, applySetHook, castToNumber, checkConstraints, compare, compareImpl, configure, formatAsInlineParameter, getAsString, getBase, getBool, getCastorCollectionType, getCastorJavaClass, getComponentSqlType, getDef, getDefinition, getExpectedWidth, getFloat, getIndexType, getInt, getLong, getNullable, getPositiveInt, getUnique, hasCustomExternalization, hasSetBOLoaderHook, hasSetHook, isCore, isIndexed, marshal, nullable, setAsString, setAsString, setAsString, setBase, setDef, setExpectedWidth, setIndexType, setNullable, setUnique, stringToValue, stringToValue, stringToValue, stringToValue, stringToValueWithTypeTip, toXML, toXMLStringequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyAdditionalEtters, getAsUserFriendlyRawString, getHumanReadableIndexType, getJavaClassFQNForImport, getJavaClassnameForCode, getJavaCodeGen, getNRXCodeGen, getNullDefaultTypepublic static final java.lang.String NAME
public static final ConfigureInfo CONFIG
public DecimalType()
public DecimalType(CBOAttributeTypeI _base, electric.xml.Element _parms)
public javax.swing.text.DocumentFilter getFilter(java.util.ArrayList inputFormats)
getFilter in interface CBOAttributeTypeIgetFilter in class CBOAbstractAttributeTypepublic java.lang.Object castToOwnType(java.lang.Object o)
castToOwnType in interface CBOAttributeTypeIcastToOwnType in class CBOAbstractAttributeTypepublic java.lang.Object valueOf(java.lang.String s)
valueOf in class NumberTypepublic java.lang.String getName()
public java.lang.Class getJavaClass()
CBOAttributeTypeIpublic java.lang.String getCastorFieldType()
CBOAttributeTypeIpublic java.lang.String getCastorSqlType()
CBOAttributeTypeIpublic java.lang.String getSqlType()
CBOAttributeTypeIpublic int getJdbcType()
CBOAttributeTypeIpublic java.lang.Integer getStandardExpectedWidth()
public java.lang.String getExternalizePostfix()
CBOAttributeTypeIpublic boolean isMandatory()
isMandatory in interface CBOAttributeTypeIisMandatory in class CBOAbstractAttributeTypepublic boolean hasAdditionalEtters()
hasAdditionalEtters in interface CBOAttributeTypeIhasAdditionalEtters in class NumberTypepublic void applyAdditionalEtters(java.lang.String pn,
SourceGeneratorI src,
boolean getterOnly)
CBOAttributeTypeICBOAttributeTypeI.hasAdditionalEtters() returns true.
Can be used to generate NN- or special access methods.pn - the attribute name to generate the *etters for, nonnull.src - the nrx generator to extendgetterOnly - true if the attribute is virtual and readonly, false otherwise. If true, only getter methods
should be generated.public java.lang.String getNonNullDefaultValue()
getNonNullDefaultValue in interface CBOAttributeTypeIgetNonNullDefaultValue in class NumberTypeCopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.