public class SqlDateTime extends ValueType
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Data.SqlTypes.SqlDateTime
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=8.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.SqlDateTime
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
SqlDateTime() |
SqlDateTime(DateTime value)
Initializes a new instance by invoking the .NET constructor.
|
SqlDateTime(int dayTicks,
int timeTicks)
Initializes a new instance by invoking the .NET constructor.
|
SqlDateTime(int year,
int month,
int day)
Initializes a new instance by invoking the .NET constructor.
|
SqlDateTime(int year,
int month,
int day,
int hour,
int minute,
int second)
Initializes a new instance by invoking the .NET constructor.
|
SqlDateTime(int year,
int month,
int day,
int hour,
int minute,
int second,
double millisecond)
Initializes a new instance by invoking the .NET constructor.
|
SqlDateTime(int year,
int month,
int day,
int hour,
int minute,
int second,
int bilisecond)
Initializes a new instance by invoking the .NET constructor.
|
SqlDateTime(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static SqlDateTime |
Add(SqlDateTime x,
TimeSpan t)
Invokes the .NET member Add.
|
static SqlDateTime |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into SqlDateTime, a cast assert is made to check if types are compatible. |
int |
CompareTo(NetObject value)
Invokes the .NET member CompareTo.
|
int |
CompareTo(SqlDateTime value)
Invokes the .NET member CompareTo.
|
boolean |
Equals(SqlDateTime other)
Invokes the .NET member Equals.
|
static SqlBoolean |
Equals(SqlDateTime x,
SqlDateTime y)
Invokes the .NET member Equals.
|
int |
getDayTicks()
Gets the value of the .NET property DayTicks.
|
boolean |
getIsNull()
Gets the value of the .NET property IsNull.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
int |
getTimeTicks()
Gets the value of the .NET property TimeTicks.
|
DateTime |
getValue()
Gets the value of the .NET property Value.
|
static XmlQualifiedName |
GetXsdType(XmlSchemaSet schemaSet)
Invokes the .NET member GetXsdType.
|
static SqlBoolean |
GreaterThan(SqlDateTime x,
SqlDateTime y)
Invokes the .NET member GreaterThan.
|
static SqlBoolean |
GreaterThanOrEqual(SqlDateTime x,
SqlDateTime y)
Invokes the .NET member GreaterThanOrEqual.
|
static SqlBoolean |
LessThan(SqlDateTime x,
SqlDateTime y)
Invokes the .NET member LessThan.
|
static SqlBoolean |
LessThanOrEqual(SqlDateTime x,
SqlDateTime y)
Invokes the .NET member LessThanOrEqual.
|
static SqlBoolean |
NotEquals(SqlDateTime x,
SqlDateTime y)
Invokes the .NET member NotEquals.
|
static SqlDateTime |
Parse(java.lang.String s)
Invokes the .NET member Parse.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
static SqlDateTime |
Subtract(SqlDateTime x,
TimeSpan t)
Invokes the .NET member Subtract.
|
SqlString |
ToSqlString()
Invokes the .NET member ToSqlString.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public SqlDateTime()
throws java.lang.Throwable
java.lang.Throwablepublic SqlDateTime(DateTime value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, SqlTypeException, OverflowException
value - the argument of type DateTimejava.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itSqlTypeException - if the .NET member raises itOverflowException - if the .NET member raises itpublic SqlDateTime(int dayTicks,
int timeTicks)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
OverflowException
dayTicks - the argument of type inttimeTicks - the argument of type intjava.lang.Throwable - if the .NET constructor failsArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itOverflowException - if the .NET member raises itpublic SqlDateTime(int year,
int month,
int day)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentNullException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OverflowException,
SqlTypeException
year - the argument of type intmonth - the argument of type intday - the argument of type intjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOverflowException - if the .NET member raises itSqlTypeException - if the .NET member raises itpublic SqlDateTime(int year,
int month,
int day,
int hour,
int minute,
int second)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentNullException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OverflowException,
SqlTypeException
year - the argument of type intmonth - the argument of type intday - the argument of type inthour - the argument of type intminute - the argument of type intsecond - the argument of type intjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOverflowException - if the .NET member raises itSqlTypeException - if the .NET member raises itpublic SqlDateTime(int year,
int month,
int day,
int hour,
int minute,
int second,
double millisecond)
throws java.lang.Throwable,
ArgumentException,
InvalidOperationException,
ArgumentOutOfRangeException,
NotSupportedException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OverflowException,
SqlTypeException
year - the argument of type intmonth - the argument of type intday - the argument of type inthour - the argument of type intminute - the argument of type intsecond - the argument of type intmillisecond - the argument of type doublejava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOverflowException - if the .NET member raises itSqlTypeException - if the .NET member raises itpublic SqlDateTime(int year,
int month,
int day,
int hour,
int minute,
int second,
int bilisecond)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentNullException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OverflowException,
SqlTypeException
year - the argument of type intmonth - the argument of type intday - the argument of type inthour - the argument of type intminute - the argument of type intsecond - the argument of type intbilisecond - the argument of type intjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOverflowException - if the .NET member raises itSqlTypeException - if the .NET member raises itpublic SqlDateTime(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic static SqlDateTime Add(SqlDateTime x, TimeSpan t) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, SqlTypeException, OverflowException
x - the argument of type SqlDateTimet - the argument of type TimeSpanjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itSqlTypeException - if the .NET member raises itOverflowException - if the .NET member raises itpublic static SqlDateTime cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into SqlDateTime, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedSqlDateTime instancejava.lang.Throwable - in case of error during cast operationpublic int CompareTo(NetObject value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
value - the argument of type NetObjectjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic int CompareTo(SqlDateTime value) throws java.lang.Throwable
value - the argument of type SqlDateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean Equals(SqlDateTime other) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, SqlNullValueException
other - the argument of type SqlDateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itSqlNullValueException - if the .NET member raises itpublic static SqlBoolean Equals(SqlDateTime x, SqlDateTime y) throws java.lang.Throwable
x - the argument of type SqlDateTimey - the argument of type SqlDateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getDayTicks()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
SqlNullValueException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itSqlNullValueException - if the .NET member raises itpublic boolean getIsNull()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class ValueTypepublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class ValueTypepublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class ValueTypenull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class ValueTypepublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class ValueTypepublic int getTimeTicks()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
SqlNullValueException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itSqlNullValueException - if the .NET member raises itpublic DateTime getValue() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, SqlNullValueException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itSqlNullValueException - if the .NET member raises itpublic static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet) throws java.lang.Throwable
schemaSet - the argument of type XmlSchemaSetjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static SqlBoolean GreaterThan(SqlDateTime x, SqlDateTime y) throws java.lang.Throwable
x - the argument of type SqlDateTimey - the argument of type SqlDateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static SqlBoolean GreaterThanOrEqual(SqlDateTime x, SqlDateTime y) throws java.lang.Throwable
x - the argument of type SqlDateTimey - the argument of type SqlDateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static SqlBoolean LessThan(SqlDateTime x, SqlDateTime y) throws java.lang.Throwable
x - the argument of type SqlDateTimey - the argument of type SqlDateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static SqlBoolean LessThanOrEqual(SqlDateTime x, SqlDateTime y) throws java.lang.Throwable
x - the argument of type SqlDateTimey - the argument of type SqlDateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static SqlBoolean NotEquals(SqlDateTime x, SqlDateTime y) throws java.lang.Throwable
x - the argument of type SqlDateTimey - the argument of type SqlDateTimejava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static SqlDateTime Parse(java.lang.String s) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException, OverflowException, NotSupportedException, FormatException, SqlTypeException
s - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itOverflowException - if the .NET member raises itNotSupportedException - if the .NET member raises itFormatException - if the .NET member raises itSqlTypeException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class ValueTypeinstance - the new underlying objectpublic static SqlDateTime Subtract(SqlDateTime x, TimeSpan t) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, SqlTypeException, OverflowException
x - the argument of type SqlDateTimet - the argument of type TimeSpanjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itSqlTypeException - if the .NET member raises itOverflowException - if the .NET member raises itpublic SqlString ToSqlString() throws java.lang.Throwable, CultureNotFoundException, PlatformNotSupportedException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRCultureNotFoundException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises it