Package system.data.sqltypes
Class SqlDateTime
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.ValueType
-
- system.data.sqltypes.SqlDateTime
-
- All Implemented Interfaces:
IJCOBridgeReflected,IXmlSerializable
public class SqlDateTime extends ValueType implements IXmlSerializable
The base .NET class managing System.Data.SqlTypes.SqlDateTime, 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.SqlDateTime
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.StringassemblyFullNameFully assembly qualified name: System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: System.Datastatic java.lang.StringclassNameQualified class name: System.Data.SqlTypes.SqlDateTimestatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description SqlDateTime()SqlDateTime(int dayTicks, int timeTicks)SqlDateTime(int year, int month, int day)SqlDateTime(int year, int month, int day, int hour, int minute, int second)SqlDateTime(int year, int month, int day, int hour, int minute, int second, double millisecond)SqlDateTime(int year, int month, int day, int hour, int minute, int second, int bilisecond)SqlDateTime(java.lang.Object instance)Internal constructor.SqlDateTime(DateTime value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SqlDateTimeAdd(SqlDateTime x, TimeSpan t)static SqlDateTimecast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoSqlDateTime, a cast assert is made to check if types are compatible.intCompareTo(NetObject value)intCompareTo(SqlDateTime value)static SqlBooleanEquals(SqlDateTime x, SqlDateTime y)intgetDayTicks()booleangetIsNull()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeintgetTimeTicks()DateTimegetValue()static XmlQualifiedNameGetXsdType(XmlSchemaSet schemaSet)static SqlBooleanGreaterThan(SqlDateTime x, SqlDateTime y)static SqlBooleanGreaterThanOrEqual(SqlDateTime x, SqlDateTime y)static SqlBooleanLessThan(SqlDateTime x, SqlDateTime y)static SqlBooleanLessThanOrEqual(SqlDateTime x, SqlDateTime y)static SqlBooleanNotEquals(SqlDateTime x, SqlDateTime y)static SqlDateTimeParse(java.lang.String s)voidsetJCOInstance(JCObject instance)static SqlDateTimeSubtract(SqlDateTime x, TimeSpan t)SqlStringToSqlString()-
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.SqlDateTime- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SqlDateTime
public SqlDateTime(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
SqlDateTime
public SqlDateTime() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
SqlDateTime
public SqlDateTime(int dayTicks, int timeTicks) throws java.lang.Throwable, OverflowException- Throws:
java.lang.ThrowableOverflowException
-
SqlDateTime
public SqlDateTime(int year, int month, int day) throws java.lang.Throwable, OverflowException, SqlTypeException- Throws:
java.lang.ThrowableOverflowExceptionSqlTypeException
-
SqlDateTime
public SqlDateTime(int year, int month, int day, int hour, int minute, int second) throws java.lang.Throwable, OverflowException, SqlTypeException- Throws:
java.lang.ThrowableOverflowExceptionSqlTypeException
-
SqlDateTime
public SqlDateTime(int year, int month, int day, int hour, int minute, int second, double millisecond) throws java.lang.Throwable, OverflowException, SqlTypeException- Throws:
java.lang.ThrowableOverflowExceptionSqlTypeException
-
SqlDateTime
public SqlDateTime(int year, int month, int day, int hour, int minute, int second, int bilisecond) throws java.lang.Throwable, OverflowException, SqlTypeException- Throws:
java.lang.ThrowableOverflowExceptionSqlTypeException
-
SqlDateTime
public SqlDateTime(DateTime value) throws java.lang.Throwable, SqlTypeException, OverflowException
- Throws:
java.lang.ThrowableSqlTypeExceptionOverflowException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Specified by:
getJCOAssemblyNamein interfaceIXmlSerializable- Overrides:
getJCOAssemblyNamein classValueType- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Specified by:
getJCOClassNamein interfaceIXmlSerializable- Overrides:
getJCOClassNamein classValueType- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Specified by:
getJCOObjectNamein interfaceIXmlSerializable- Overrides:
getJCOObjectNamein classValueType- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Specified by:
getJCOInstancein interfaceIXmlSerializable- Overrides:
getJCOInstancein classValueType- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classValueType
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Specified by:
getJCOTypein interfaceIXmlSerializable- Overrides:
getJCOTypein classValueType- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static SqlDateTime cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoSqlDateTime, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
SqlDateTimeinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
CompareTo
public int CompareTo(SqlDateTime value) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
CompareTo
public int CompareTo(NetObject value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeException
-
Equals
public static SqlBoolean Equals(SqlDateTime x, SqlDateTime y) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GreaterThan
public static SqlBoolean GreaterThan(SqlDateTime x, SqlDateTime y) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GreaterThanOrEqual
public static SqlBoolean GreaterThanOrEqual(SqlDateTime x, SqlDateTime y) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
LessThan
public static SqlBoolean LessThan(SqlDateTime x, SqlDateTime y) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
LessThanOrEqual
public static SqlBoolean LessThanOrEqual(SqlDateTime x, SqlDateTime y) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
NotEquals
public static SqlBoolean NotEquals(SqlDateTime x, SqlDateTime y) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Add
public static SqlDateTime Add(SqlDateTime x, TimeSpan t) throws java.lang.Throwable, ArgumentOutOfRangeException, SqlTypeException, OverflowException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionSqlTypeExceptionOverflowException
-
Parse
public static SqlDateTime Parse(java.lang.String s) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, TypeInitializationException, InvalidOperationException, FormatException, ArgumentException, MissingMethodException, TargetInvocationException, CultureNotFoundException, NotSupportedException, NullReferenceException, IndexOutOfRangeException, OverflowException, SqlTypeException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionTypeInitializationExceptionInvalidOperationExceptionFormatExceptionArgumentExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionNotSupportedExceptionNullReferenceExceptionIndexOutOfRangeExceptionOverflowExceptionSqlTypeException
-
Subtract
public static SqlDateTime Subtract(SqlDateTime x, TimeSpan t) throws java.lang.Throwable, ArgumentOutOfRangeException, SqlTypeException, OverflowException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionSqlTypeExceptionOverflowException
-
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
-
getDayTicks
public int getDayTicks() throws java.lang.Throwable, SqlNullValueException- Throws:
java.lang.ThrowableSqlNullValueException
-
getTimeTicks
public int getTimeTicks() throws java.lang.Throwable, SqlNullValueException- Throws:
java.lang.ThrowableSqlNullValueException
-
getValue
public DateTime getValue() throws java.lang.Throwable, ArgumentOutOfRangeException, SqlNullValueException
- Throws:
java.lang.ThrowableArgumentOutOfRangeExceptionSqlNullValueException
-
-