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, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..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, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: System.Datastatic 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, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Data- 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, SqlTypeException, OverflowException
- Throws:
java.lang.Throwable
SqlTypeException
OverflowException
-
SqlDecimal
public SqlDecimal(byte bPrecision, byte bScale, boolean fPositive, int[] bits) throws java.lang.Throwable, SqlTypeException, ArgumentNullException, ArgumentException, OverflowException
- Throws:
java.lang.Throwable
SqlTypeException
ArgumentNullException
ArgumentException
OverflowException
-
SqlDecimal
public SqlDecimal(double dVal) throws java.lang.Throwable, OverflowException, DivideByZeroException
- Throws:
java.lang.Throwable
OverflowException
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
- Throws:
java.lang.Throwable
-
-
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
-
ToDouble
public double ToDouble() throws java.lang.Throwable, SqlNullValueException
- Throws:
java.lang.Throwable
SqlNullValueException
-
CompareTo
public int CompareTo(SqlDecimal value) throws java.lang.Throwable, SqlNullValueException, SqlTruncateException, OverflowException, DivideByZeroException
- Throws:
java.lang.Throwable
SqlNullValueException
SqlTruncateException
OverflowException
DivideByZeroException
-
CompareTo
public int CompareTo(NetObject value) throws java.lang.Throwable, SqlNullValueException, SqlTruncateException, OverflowException, DivideByZeroException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
SqlNullValueException
SqlTruncateException
OverflowException
DivideByZeroException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
-
Equals
public static SqlBoolean Equals(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, SqlNullValueException, SqlTruncateException, OverflowException, DivideByZeroException
- Throws:
java.lang.Throwable
SqlNullValueException
SqlTruncateException
OverflowException
DivideByZeroException
-
GreaterThan
public static SqlBoolean GreaterThan(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, SqlNullValueException, SqlTruncateException, OverflowException, DivideByZeroException
- Throws:
java.lang.Throwable
SqlNullValueException
SqlTruncateException
OverflowException
DivideByZeroException
-
GreaterThanOrEqual
public static SqlBoolean GreaterThanOrEqual(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, SqlNullValueException, SqlTruncateException, OverflowException, DivideByZeroException
- Throws:
java.lang.Throwable
SqlNullValueException
SqlTruncateException
OverflowException
DivideByZeroException
-
LessThan
public static SqlBoolean LessThan(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, SqlNullValueException, SqlTruncateException, OverflowException, DivideByZeroException
- Throws:
java.lang.Throwable
SqlNullValueException
SqlTruncateException
OverflowException
DivideByZeroException
-
LessThanOrEqual
public static SqlBoolean LessThanOrEqual(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, SqlNullValueException, SqlTruncateException, OverflowException, DivideByZeroException
- Throws:
java.lang.Throwable
SqlNullValueException
SqlTruncateException
OverflowException
DivideByZeroException
-
NotEquals
public static SqlBoolean NotEquals(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, SqlNullValueException, SqlTruncateException, OverflowException, DivideByZeroException
- Throws:
java.lang.Throwable
SqlNullValueException
SqlTruncateException
OverflowException
DivideByZeroException
-
ToSqlBoolean
public SqlBoolean ToSqlBoolean() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
ToSqlByte
public SqlByte ToSqlByte() throws java.lang.Throwable, SqlNullValueException, SqlTruncateException, OverflowException, DivideByZeroException
- Throws:
java.lang.Throwable
SqlNullValueException
SqlTruncateException
OverflowException
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, SqlNullValueException, SqlTruncateException, OverflowException, DivideByZeroException, SqlTypeException
- Throws:
java.lang.Throwable
SqlNullValueException
SqlTruncateException
OverflowException
DivideByZeroException
SqlTypeException
-
AdjustScale
public static SqlDecimal AdjustScale(SqlDecimal n, int digits, boolean fRound) throws java.lang.Throwable, SqlTruncateException, OverflowException, DivideByZeroException
- Throws:
java.lang.Throwable
SqlTruncateException
OverflowException
DivideByZeroException
-
Ceiling
public static SqlDecimal Ceiling(SqlDecimal n) throws java.lang.Throwable, DivideByZeroException, SqlNullValueException, OverflowException
- Throws:
java.lang.Throwable
DivideByZeroException
SqlNullValueException
OverflowException
-
ConvertToPrecScale
public static SqlDecimal ConvertToPrecScale(SqlDecimal n, int precision, int scale) throws java.lang.Throwable, SqlTypeException, SqlTruncateException, OverflowException, DivideByZeroException
- Throws:
java.lang.Throwable
SqlTypeException
SqlTruncateException
OverflowException
DivideByZeroException
-
Divide
public static SqlDecimal Divide(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, DivideByZeroException, SqlNullValueException, SqlTruncateException, OverflowException, SqlTypeException
- Throws:
java.lang.Throwable
DivideByZeroException
SqlNullValueException
SqlTruncateException
OverflowException
SqlTypeException
-
Floor
public static SqlDecimal Floor(SqlDecimal n) throws java.lang.Throwable, DivideByZeroException, SqlNullValueException, OverflowException
- Throws:
java.lang.Throwable
DivideByZeroException
SqlNullValueException
OverflowException
-
Multiply
public static SqlDecimal Multiply(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, SqlNullValueException, OverflowException, SqlTypeException, SqlTruncateException, DivideByZeroException
- Throws:
java.lang.Throwable
SqlNullValueException
OverflowException
SqlTypeException
SqlTruncateException
DivideByZeroException
-
Parse
public static SqlDecimal Parse(java.lang.String s) throws java.lang.Throwable, ArgumentNullException, FormatException, OverflowException
- Throws:
java.lang.Throwable
ArgumentNullException
FormatException
OverflowException
-
Power
public static SqlDecimal Power(SqlDecimal n, double exp) throws java.lang.Throwable, SqlNullValueException, OverflowException, DivideByZeroException, SqlTruncateException
- Throws:
java.lang.Throwable
SqlNullValueException
OverflowException
DivideByZeroException
SqlTruncateException
-
Round
public static SqlDecimal Round(SqlDecimal n, int position) throws java.lang.Throwable, OverflowException, DivideByZeroException
- Throws:
java.lang.Throwable
OverflowException
DivideByZeroException
-
Subtract
public static SqlDecimal Subtract(SqlDecimal x, SqlDecimal y) throws java.lang.Throwable, SqlNullValueException, SqlTruncateException, OverflowException, DivideByZeroException, SqlTypeException
- Throws:
java.lang.Throwable
SqlNullValueException
SqlTruncateException
OverflowException
DivideByZeroException
SqlTypeException
-
Truncate
public static SqlDecimal Truncate(SqlDecimal n, int position) throws java.lang.Throwable, OverflowException, DivideByZeroException
- Throws:
java.lang.Throwable
OverflowException
DivideByZeroException
-
ToSqlDouble
public SqlDouble ToSqlDouble() throws java.lang.Throwable, SqlNullValueException, OverflowException
- Throws:
java.lang.Throwable
SqlNullValueException
OverflowException
-
ToSqlInt16
public SqlInt16 ToSqlInt16() throws java.lang.Throwable, SqlNullValueException, SqlTruncateException, OverflowException, DivideByZeroException
- Throws:
java.lang.Throwable
SqlNullValueException
SqlTruncateException
OverflowException
DivideByZeroException
-
Sign
public static SqlInt32 Sign(SqlDecimal n) throws java.lang.Throwable, SqlNullValueException, SqlTruncateException, OverflowException, DivideByZeroException
- Throws:
java.lang.Throwable
SqlNullValueException
SqlTruncateException
OverflowException
DivideByZeroException
-
ToSqlInt32
public SqlInt32 ToSqlInt32() throws java.lang.Throwable, SqlNullValueException, SqlTruncateException, OverflowException, DivideByZeroException
- Throws:
java.lang.Throwable
SqlNullValueException
SqlTruncateException
OverflowException
DivideByZeroException
-
ToSqlInt64
public SqlInt64 ToSqlInt64() throws java.lang.Throwable, SqlTruncateException, OverflowException, DivideByZeroException, SqlNullValueException
- Throws:
java.lang.Throwable
SqlTruncateException
OverflowException
DivideByZeroException
SqlNullValueException
-
ToSqlMoney
public SqlMoney ToSqlMoney() throws java.lang.Throwable, SqlNullValueException, OverflowException, ArgumentOutOfRangeException, SqlTruncateException, DivideByZeroException
- Throws:
java.lang.Throwable
SqlNullValueException
OverflowException
ArgumentOutOfRangeException
SqlTruncateException
DivideByZeroException
-
ToSqlSingle
public SqlSingle ToSqlSingle() throws java.lang.Throwable, SqlNullValueException, OverflowException
- Throws:
java.lang.Throwable
SqlNullValueException
OverflowException
-
ToSqlString
public SqlString ToSqlString() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException
-
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, SqlNullValueException
- Throws:
java.lang.Throwable
SqlNullValueException
-
getPrecision
public byte getPrecision() throws java.lang.Throwable, SqlNullValueException
- Throws:
java.lang.Throwable
SqlNullValueException
-
getScale
public byte getScale() throws java.lang.Throwable, SqlNullValueException
- Throws:
java.lang.Throwable
SqlNullValueException
-
getBinData
public byte[] getBinData() throws java.lang.Throwable, SqlNullValueException
- Throws:
java.lang.Throwable
SqlNullValueException
-
getData
public int[] getData() throws java.lang.Throwable, SqlNullValueException
- Throws:
java.lang.Throwable
SqlNullValueException
-
getValue
public Decimal getValue() throws java.lang.Throwable, SqlNullValueException, OverflowException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
SqlNullValueException
OverflowException
ArgumentOutOfRangeException
-
-