Class NumericFormat
java.lang.Object
com.softwaremining.wrappers.format.Format
com.softwaremining.wrappers.format.AbstractNumericFormat
com.softwaremining.wrappers.format.NumericFormat
- Direct Known Subclasses:
NumericFormatCompressed
,NumericFormatDisplay
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected int
Fields inherited from class com.softwaremining.wrappers.format.AbstractNumericFormat
DECIMAL_POINT_ON_SYSTEM
Fields inherited from class com.softwaremining.wrappers.format.Format
additionalParamsPostfixesMap, justifiedRight, totalRuntime_convertFromDisplayToStorage, totalRuntime_getInstance
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
int
Returns the number of integer digits of used for Integer and Decimal parts of a number.getSQLObject
(String formattedString) int
This is the number of characters in field.Methods inherited from class com.softwaremining.wrappers.format.AbstractNumericFormat
adjustPercision, getFractionSize, getSystemDecimalPoint, isDecimal, isSigned
Methods inherited from class com.softwaremining.wrappers.format.Format
assignJustifiedRight, convertFromDisplayToStorage, convertFromDisplayToStorage, convertFromDisplayToStorage, convertFromDisplayToStorage, convertFromDisplayToStorage, convertFromDisplayToStorage, convertFromDisplayToStorage, convertFromDisplayToStorage, convertFromStorageToDisplayFormat, getAllFormatInstances, getInstance, getInstance, getPicture, isCompressed, isJustifiedRight, toString
-
Field Details
-
P_Size
protected int P_Size -
P_onLeft
protected boolean P_onLeft -
P_onRight
protected boolean P_onRight
-
-
Method Details
-
getNumberOfDigits
public int getNumberOfDigits()Returns the number of integer digits of used for Integer and Decimal parts of a number. For example, given a definition of S9(5)v9(3); the NumberOfDigists is 11.- Specified by:
getNumberOfDigits
in classFormat
- Returns:
-
getIntegerSize
protected int getIntegerSize() -
getSQLObject
- Specified by:
getSQLObject
in classFormat
-
getStorageCellSize
public int getStorageCellSize()Description copied from class:Format
This is the number of characters in field.
For example, PIC X(10) will have 10 characters
or PIC 9(16) will have 16 characters
but PIC 9(16) COMP-3 will have 8 characters- Specified by:
getStorageCellSize
in classFormat
- Returns:
- cellsize
-