public class SqlDecimal extends ValueType implements IXmlSerializable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Data.SqlTypes.SqlDecimal
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Data.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Data.Common
|
static java.lang.String |
className
Qualified class name: System.Data.SqlTypes.SqlDecimal
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
SqlDecimal() |
SqlDecimal(byte bPrecision,
byte bScale,
boolean fPositive,
int[] bits) |
SqlDecimal(byte bPrecision,
byte bScale,
boolean fPositive,
int data1,
int data2,
int data3,
int data4) |
SqlDecimal(Decimal value) |
SqlDecimal(double dVal) |
SqlDecimal(int value) |
SqlDecimal(long value) |
SqlDecimal(java.lang.Object instance)
Internal constructor.
|
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToStringGetSchema, ReadXml, ToIXmlSerializable, WriteXmlpublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public SqlDecimal()
throws java.lang.Throwable
java.lang.Throwablepublic SqlDecimal(byte bPrecision,
byte bScale,
boolean fPositive,
int[] bits)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
SqlTypeException,
IndexOutOfRangeException,
OverflowException
public SqlDecimal(byte bPrecision,
byte bScale,
boolean fPositive,
int data1,
int data2,
int data3,
int data4)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
SqlTypeException,
IndexOutOfRangeException,
OverflowException
public SqlDecimal(Decimal value) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
public SqlDecimal(double dVal)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException,
ObjectDisposedException,
OverflowException,
IndexOutOfRangeException,
DivideByZeroException
public SqlDecimal(int value)
throws java.lang.Throwable
java.lang.Throwablepublic SqlDecimal(long value)
throws java.lang.Throwable
java.lang.Throwablepublic SqlDecimal(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static SqlDecimal Abs(SqlDecimal n) throws java.lang.Throwable
java.lang.Throwablepublic static SqlDecimal Add(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, ArgumentException, InvalidOperationException, SqlNullValueException, SqlTruncateException, OverflowException, NotSupportedException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException, SqlTypeException
public static SqlDecimal AdjustScale(SqlDecimal n, int digits, boolean fRound) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, SqlTruncateException, OverflowException, NotSupportedException, IndexOutOfRangeException, DivideByZeroException
public static SqlDecimal cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into SqlDecimal, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedSqlDecimal instancejava.lang.Throwable - in case of error during cast operationpublic static SqlDecimal Ceiling(SqlDecimal n) throws java.lang.Throwable, ArgumentException, NotSupportedException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException, SqlNullValueException, OverflowException
public int CompareTo(NetObject value) throws java.lang.Throwable, SqlNullValueException, SqlTruncateException, NotSupportedException, ArgumentException, OverflowException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException, ArgumentOutOfRangeException
public int CompareTo(SqlDecimal value) throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, NotSupportedException, ArgumentOutOfRangeException, OverflowException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
public static SqlDecimal ConvertToPrecScale(SqlDecimal n, int precision, int scale) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, SqlTypeException, SqlTruncateException, OverflowException, IndexOutOfRangeException, DivideByZeroException
public static SqlDecimal Divide(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, DivideByZeroException, SqlNullValueException, SqlTruncateException, OverflowException, IndexOutOfRangeException, SqlTypeException
public boolean Equals(SqlDecimal other) throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, NotSupportedException, ArgumentOutOfRangeException, OverflowException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
public static SqlBoolean Equals(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, NotSupportedException, ArgumentOutOfRangeException, OverflowException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
public static SqlDecimal Floor(SqlDecimal n) throws java.lang.Throwable, ArgumentException, NotSupportedException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException, SqlNullValueException, OverflowException
public byte[] getBinData()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
SqlNullValueException
public int[] getData()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
SqlNullValueException
public boolean getIsNull()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getIsPositive()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
SqlNullValueException
public java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in interface IXmlSerializablegetJCOAssemblyName in class ValueTypeString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in interface IXmlSerializablegetJCOClassName in class ValueTypeString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in interface IXmlSerializablegetJCOInstance in class ValueTypeObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in interface IXmlSerializablegetJCOObjectName in class ValueTypeString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in interface IXmlSerializablegetJCOType in class ValueTypeJCType representing the CLR Type of the instantiated Classpublic byte getPrecision()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
SqlNullValueException
public byte getScale()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
SqlNullValueException
public Decimal getValue() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, SqlNullValueException, OverflowException, IndexOutOfRangeException, FormatException, ArgumentOutOfRangeException
public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet) throws java.lang.Throwable
java.lang.Throwablepublic static SqlBoolean GreaterThan(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, NotSupportedException, ArgumentOutOfRangeException, OverflowException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
public static SqlBoolean GreaterThanOrEqual(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, NotSupportedException, ArgumentOutOfRangeException, OverflowException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
public static SqlBoolean LessThan(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, NotSupportedException, ArgumentOutOfRangeException, OverflowException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
public static SqlBoolean LessThanOrEqual(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, NotSupportedException, ArgumentOutOfRangeException, OverflowException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
public static SqlDecimal Multiply(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, ArgumentException, InvalidOperationException, SqlNullValueException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, NotSupportedException, OverflowException, SqlTypeException, SqlTruncateException, DivideByZeroException
public static SqlBoolean NotEquals(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, SqlNullValueException, SqlTruncateException, NotSupportedException, ArgumentException, OverflowException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
public static SqlDecimal Parse(java.lang.String s) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, FormatException, IndexOutOfRangeException, OverflowException
public static SqlDecimal Power(SqlDecimal n, double exp) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, SqlNullValueException, OverflowException, NotSupportedException, IndexOutOfRangeException, DivideByZeroException, SqlTruncateException
public static SqlDecimal Round(SqlDecimal n, int position) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, IndexOutOfRangeException, DivideByZeroException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionOverflowExceptionIndexOutOfRangeExceptionDivideByZeroExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class ValueTypepublic static SqlInt32 Sign(SqlDecimal n) throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, NotSupportedException, ArgumentOutOfRangeException, OverflowException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
public static SqlDecimal Subtract(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, NotSupportedException, ArgumentOutOfRangeException, OverflowException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException, SqlTypeException
public double ToDouble()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
SqlNullValueException
public SqlBoolean ToSqlBoolean() throws java.lang.Throwable
java.lang.Throwablepublic SqlByte ToSqlByte() throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, NotSupportedException, ArgumentOutOfRangeException, OverflowException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
public SqlDouble ToSqlDouble() throws java.lang.Throwable, ArgumentException, InvalidOperationException, SqlNullValueException, NotSupportedException, PlatformNotSupportedException, OverflowException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionSqlNullValueExceptionNotSupportedExceptionPlatformNotSupportedExceptionOverflowExceptionpublic SqlInt16 ToSqlInt16() throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, NotSupportedException, ArgumentOutOfRangeException, OverflowException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
public SqlInt32 ToSqlInt32() throws java.lang.Throwable, ArgumentException, InvalidOperationException, SqlNullValueException, SqlTruncateException, OverflowException, NotSupportedException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
public SqlInt64 ToSqlInt64() throws java.lang.Throwable, ArgumentException, InvalidOperationException, SqlTruncateException, OverflowException, NotSupportedException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException, SqlNullValueException
public SqlMoney ToSqlMoney() throws java.lang.Throwable, ArgumentException, SqlNullValueException, NotSupportedException, ArgumentOutOfRangeException, OverflowException, PlatformNotSupportedException, IndexOutOfRangeException, SqlTruncateException, DivideByZeroException
public SqlSingle ToSqlSingle() throws java.lang.Throwable, ArgumentException, InvalidOperationException, SqlNullValueException, NotSupportedException, PlatformNotSupportedException, OverflowException
java.lang.ThrowableArgumentExceptionInvalidOperationExceptionSqlNullValueExceptionNotSupportedExceptionPlatformNotSupportedExceptionOverflowExceptionpublic SqlString ToSqlString() throws java.lang.Throwable, PlatformNotSupportedException, CultureNotFoundException, NullReferenceException, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException
public static SqlDecimal Truncate(SqlDecimal n, int position) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, IndexOutOfRangeException, DivideByZeroException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionOverflowExceptionIndexOutOfRangeExceptionDivideByZeroException