Package system.data.sqltypes
Class SqlDecimal
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.ValueType
-
- system.data.sqltypes.SqlDecimal
-
- All Implemented Interfaces:
IJCOBridgeReflected
,IXmlSerializable
public class SqlDecimal extends ValueType implements IXmlSerializable
The base .NET class managing System.Data.SqlTypes.SqlDecimal, System.Data.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..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
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Data.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Data.Commonstatic java.lang.String
className
Qualified class name: System.Data.SqlTypes.SqlDecimalstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor 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(double dVal)
SqlDecimal(int value)
SqlDecimal(long value)
SqlDecimal(java.lang.Object instance)
Internal constructor.SqlDecimal(Decimal value)
-
Method Summary
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.xml.serialization.IXmlSerializable
GetSchema, ReadXml, WriteXml
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Data.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Data.Common- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Data.SqlTypes.SqlDecimal- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SqlDecimal
public SqlDecimal(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
SqlDecimal
public SqlDecimal() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SqlDecimal
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, InvalidOperationException, IndexOutOfRangeException, OverflowException
-
SqlDecimal
public SqlDecimal(byte bPrecision, byte bScale, boolean fPositive, int[] bits) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, SqlTypeException, InvalidOperationException, IndexOutOfRangeException, OverflowException
-
SqlDecimal
public SqlDecimal(double dVal) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OverflowException, NotSupportedException, IndexOutOfRangeException, DivideByZeroException
-
SqlDecimal
public SqlDecimal(int value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SqlDecimal
public SqlDecimal(long value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SqlDecimal
public SqlDecimal(Decimal value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOAssemblyName
in interfaceIXmlSerializable
- Overrides:
getJCOAssemblyName
in classValueType
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOClassName
in interfaceIXmlSerializable
- Overrides:
getJCOClassName
in classValueType
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOObjectName
in interfaceIXmlSerializable
- Overrides:
getJCOObjectName
in classValueType
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Specified by:
getJCOInstance
in interfaceIXmlSerializable
- Overrides:
getJCOInstance
in classValueType
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Specified by:
getJCOType
in interfaceIXmlSerializable
- Overrides:
getJCOType
in classValueType
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static SqlDecimal cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoSqlDecimal
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
SqlDecimal
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Equals
public boolean Equals(SqlDecimal other) throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, OverflowException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
-
ToDouble
public double ToDouble() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, SqlNullValueException
-
CompareTo
public int CompareTo(SqlDecimal value) throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, OverflowException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
-
CompareTo
public int CompareTo(NetObject value) throws java.lang.Throwable, SqlNullValueException, SqlTruncateException, OverflowException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException, ArgumentNullException, ArrayTypeMismatchException, FormatException
- Throws:
java.lang.Throwable
SqlNullValueException
SqlTruncateException
OverflowException
NotSupportedException
InvalidOperationException
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
IndexOutOfRangeException
DivideByZeroException
ArgumentNullException
ArrayTypeMismatchException
FormatException
-
Equals
public static SqlBoolean Equals(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, OverflowException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
-
GreaterThan
public static SqlBoolean GreaterThan(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, OverflowException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
-
GreaterThanOrEqual
public static SqlBoolean GreaterThanOrEqual(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, OverflowException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
-
LessThan
public static SqlBoolean LessThan(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, OverflowException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
-
LessThanOrEqual
public static SqlBoolean LessThanOrEqual(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, OverflowException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
-
NotEquals
public static SqlBoolean NotEquals(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, SqlNullValueException, SqlTruncateException, OverflowException, NotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
-
ToSqlBoolean
public SqlBoolean ToSqlBoolean() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToSqlByte
public SqlByte ToSqlByte() throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, OverflowException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
-
Abs
public static SqlDecimal Abs(SqlDecimal n) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Add
public static SqlDecimal Add(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, ArgumentException, InvalidOperationException, SqlNullValueException, SqlTruncateException, OverflowException, NotSupportedException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException, SqlTypeException
-
AdjustScale
public static SqlDecimal AdjustScale(SqlDecimal n, int digits, boolean fRound) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, SqlTruncateException, OverflowException, NotSupportedException, IndexOutOfRangeException, DivideByZeroException
-
Ceiling
public static SqlDecimal Ceiling(SqlDecimal n) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException, SqlNullValueException, OverflowException
-
ConvertToPrecScale
public static SqlDecimal ConvertToPrecScale(SqlDecimal n, int precision, int scale) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, SqlTypeException, SqlTruncateException, OverflowException, InvalidOperationException, IndexOutOfRangeException, DivideByZeroException
-
Divide
public static SqlDecimal Divide(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, DivideByZeroException, SqlNullValueException, SqlTruncateException, OverflowException, InvalidOperationException, IndexOutOfRangeException, SqlTypeException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
DivideByZeroException
SqlNullValueException
SqlTruncateException
OverflowException
InvalidOperationException
IndexOutOfRangeException
SqlTypeException
-
Floor
public static SqlDecimal Floor(SqlDecimal n) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException, SqlNullValueException, OverflowException
-
Multiply
public static SqlDecimal Multiply(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, ArgumentException, InvalidOperationException, SqlNullValueException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, NotSupportedException, OverflowException, SqlTypeException, SqlTruncateException, DivideByZeroException
-
Parse
public static SqlDecimal Parse(java.lang.String s) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, FormatException, IndexOutOfRangeException, OverflowException
-
Power
public static SqlDecimal Power(SqlDecimal n, double exp) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, SqlNullValueException, OverflowException, NotSupportedException, IndexOutOfRangeException, DivideByZeroException, SqlTruncateException
-
Round
public static SqlDecimal Round(SqlDecimal n, int position) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, IndexOutOfRangeException, DivideByZeroException
-
Subtract
public static SqlDecimal Subtract(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, OverflowException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException, SqlTypeException
-
Truncate
public static SqlDecimal Truncate(SqlDecimal n, int position) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, IndexOutOfRangeException, DivideByZeroException
-
ToSqlDouble
public SqlDouble ToSqlDouble() throws java.lang.Throwable, ArgumentException, InvalidOperationException, SqlNullValueException, NotSupportedException, PlatformNotSupportedException, OverflowException
- Throws:
java.lang.Throwable
ArgumentException
InvalidOperationException
SqlNullValueException
NotSupportedException
PlatformNotSupportedException
OverflowException
-
ToSqlInt16
public SqlInt16 ToSqlInt16() throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, OverflowException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
-
Sign
public static SqlInt32 Sign(SqlDecimal n) throws java.lang.Throwable, ArgumentException, SqlNullValueException, SqlTruncateException, OverflowException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
-
ToSqlInt32
public SqlInt32 ToSqlInt32() throws java.lang.Throwable, ArgumentException, InvalidOperationException, SqlNullValueException, SqlTruncateException, OverflowException, NotSupportedException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException
-
ToSqlInt64
public SqlInt64 ToSqlInt64() throws java.lang.Throwable, ArgumentException, InvalidOperationException, SqlTruncateException, OverflowException, NotSupportedException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, DivideByZeroException, SqlNullValueException
-
ToSqlMoney
public SqlMoney ToSqlMoney() throws java.lang.Throwable, ArgumentException, SqlNullValueException, OverflowException, ArgumentOutOfRangeException, InvalidOperationException, IndexOutOfRangeException, PlatformNotSupportedException, SqlTruncateException, DivideByZeroException
-
ToSqlSingle
public SqlSingle ToSqlSingle() throws java.lang.Throwable, ArgumentException, InvalidOperationException, SqlNullValueException, NotSupportedException, PlatformNotSupportedException, OverflowException
- Throws:
java.lang.Throwable
ArgumentException
InvalidOperationException
SqlNullValueException
NotSupportedException
PlatformNotSupportedException
OverflowException
-
ToSqlString
public SqlString ToSqlString() throws java.lang.Throwable, CultureNotFoundException, PlatformNotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException
-
GetXsdType
public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsNull
public boolean getIsNull() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsPositive
public boolean getIsPositive() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, SqlNullValueException
-
getPrecision
public byte getPrecision() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, SqlNullValueException
-
getScale
public byte getScale() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, SqlNullValueException
-
getBinData
public byte[] getBinData() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, SqlNullValueException
-
getData
public int[] getData() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, SqlNullValueException
-
getValue
public Decimal getValue() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, SqlNullValueException, OverflowException, FormatException, ArgumentOutOfRangeException
-
-