|
SAP NetWeaver 7.30 (SP05) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.sql.ApproximateNumericHelper
public class ApproximateNumericHelper
| Constructor Summary | |
|---|---|
ApproximateNumericHelper()
|
|
| Method Summary | |
|---|---|
static double |
adjustDOUBLEValue(double value)
Open SQL does not guarantee that a double value that has been stored in a column with
JDBC type DOUBLE and read again compares with equal to the original value. |
static float |
adjustREALValue(float value)
|
static double |
getMaximumPositiveDOUBLEValue()
Determines greatest positive double value, which can be stored in a DOUBLE (or FLOAT) column. |
static float |
getMaximumPositiveREALValue()
Determines greatest positive float value, which can be stored in a REAL column. |
static double |
getMinimumPositiveDOUBLEValue()
Determines smallest positive double value, which can be stored in a DOUBLE (or FLOAT) column. |
static float |
getMinimumPositiveREALValue()
Determines smallest positive float value, which can be stored in a REAL column. |
static boolean |
isValidDOUBLEValue(double value)
Determines if a given double value can be stored in a DOUBLE (or FLOAT) column. |
static boolean |
isValidREALValue(float value)
Determines if a given float value can be stored in a REAL column. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ApproximateNumericHelper()
| Method Detail |
|---|
public static boolean isValidDOUBLEValue(double value)
value - the value
true, if the given value can be stored ; false, if the value will be rejected by
Open SQLpublic static boolean isValidREALValue(float value)
float value can be stored in a REAL column.
value - the value
true, if the given value can be stored with Open SQL; false, if the value will be rejected by
Open SQLpublic static double getMaximumPositiveDOUBLEValue()
double value, which can be stored in a DOUBLE (or FLOAT) column.
double value, which can be stored in a DOUBLE (or FLOAT) columnpublic static float getMaximumPositiveREALValue()
float value, which can be stored in a REAL column.
float value, which can be stored in a REAL columnpublic static double getMinimumPositiveDOUBLEValue()
double value, which can be stored in a DOUBLE (or FLOAT) column.
double value, which can be stored in a DOUBLE (or FLOAT) columnpublic static float getMinimumPositiveREALValue()
float value, which can be stored in a REAL column.
float value, which can be stored in a REAL columnpublic static double adjustDOUBLEValue(double value)
double value that has been stored in a column with
JDBC type DOUBLE and read again compares with equal to the original value. Therefore, a value that
can inserted into the database might not be valid after it has been read again from the database.
This method addresses this issue. It checks, if a given double value is within the range
of portable values extended by the fault tolerance.
value -
NumberFormatException, otherwise
NumberFormatException - if the given value exceeds the portable range and is not within the fault tolerancepublic static float adjustREALValue(float value)
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] ENGFACADE
|
[sap.com] tc/je/opensql/api
|
api
|
BC-JAS
|
[sap.com] CORE-TOOLS
|
[sap.com]
|
default
|
BC-JAS
|
[sap.com] ENGINEAPI
|
[sap.com]
|
default
|
BC-JAS-PER-SQL
|
|
SAP NetWeaver 7.30 (SP05) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||