Package system.data.sqltypes
Class SqlBytes
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.data.sqltypes.SqlBytes
-
- All Implemented Interfaces:
IJCOBridgeReflected
,ISerializable
,IXmlSerializable
public class SqlBytes extends NetObject implements IXmlSerializable, ISerializable
The base .NET class managing System.Data.SqlTypes.SqlBytes, 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.SqlBytes
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.SqlBytesstatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SqlBytes
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoSqlBytes
, a cast assert is made to check if types are compatible.byte[]
getBuffer()
boolean
getIsNull()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typelong
getLength()
long
getMaxLength()
static SqlBytes
getNull()
StorageState
getStorage()
Stream
getStream()
byte[]
getValue()
static XmlQualifiedName
GetXsdType(XmlSchemaSet schemaSet)
long
Read(long offset, byte[] buffer, int offsetInBuffer, int count)
long
Read(long dupParam0, JCORefOut dupParam1, int dupParam2, int dupParam3)
void
setJCOInstance(JCObject instance)
void
SetLength(long value)
void
SetNull()
void
setStream(Stream Stream)
SqlBinary
ToSqlBinary()
void
Write(long offset, byte[] buffer, int offsetInBuffer, int count)
void
Write(long dupParam0, JCORefOut dupParam1, int dupParam2, int dupParam3)
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.runtime.serialization.ISerializable
GetObjectData
-
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.SqlBytes- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SqlBytes
public SqlBytes(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
SqlBytes
public SqlBytes() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SqlBytes
public SqlBytes(byte[] buffer) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SqlBytes
public SqlBytes(SqlBinary value) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, SqlNullValueException, IndexOutOfRangeException, RankException, ArgumentOutOfRangeException, ArrayTypeMismatchException
-
SqlBytes
public SqlBytes(Stream s) 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 interfaceISerializable
- Specified by:
getJCOAssemblyName
in interfaceIXmlSerializable
- Overrides:
getJCOAssemblyName
in classNetObject
- 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 interfaceISerializable
- Specified by:
getJCOClassName
in interfaceIXmlSerializable
- Overrides:
getJCOClassName
in classNetObject
- 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 interfaceISerializable
- Specified by:
getJCOObjectName
in interfaceIXmlSerializable
- Overrides:
getJCOObjectName
in classNetObject
- 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 interfaceISerializable
- Specified by:
getJCOInstance
in interfaceIXmlSerializable
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Specified by:
getJCOType
in interfaceISerializable
- Specified by:
getJCOType
in interfaceIXmlSerializable
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static SqlBytes cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoSqlBytes
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
SqlBytes
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Read
public long Read(long offset, byte[] buffer, int offsetInBuffer, int count) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, SqlNullValueException, InvalidOperationException, IndexOutOfRangeException, FormatException, RankException, ArrayTypeMismatchException
-
Read
public long Read(long dupParam0, JCORefOut dupParam1, int dupParam2, int dupParam3) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, SqlNullValueException, InvalidOperationException, IndexOutOfRangeException, FormatException, RankException, ArrayTypeMismatchException
-
ToSqlBinary
public SqlBinary ToSqlBinary() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, SqlNullValueException, SqlTypeException, ArgumentOutOfRangeException, ArrayTypeMismatchException, IOException, IndexOutOfRangeException, RankException
-
GetXsdType
public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
SetLength
public void SetLength(long value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, SqlTypeException, FormatException
-
SetNull
public void SetNull() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Write
public void Write(long offset, byte[] buffer, int offsetInBuffer, int count) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, SqlTypeException, IndexOutOfRangeException, FormatException
-
Write
public void Write(long dupParam0, JCORefOut dupParam1, int dupParam2, int dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, SqlTypeException, IndexOutOfRangeException, FormatException
-
getIsNull
public boolean getIsNull() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getBuffer
public byte[] getBuffer() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, SqlTypeException, ArrayTypeMismatchException, IOException
-
getValue
public byte[] getValue() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, SqlNullValueException, SqlTypeException, ArrayTypeMismatchException, IOException, InvalidOperationException, IndexOutOfRangeException, RankException, FormatException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
SqlNullValueException
SqlTypeException
ArrayTypeMismatchException
IOException
InvalidOperationException
IndexOutOfRangeException
RankException
FormatException
-
getLength
public long getLength() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, SqlNullValueException
-
getMaxLength
public long getMaxLength() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getNull
public static SqlBytes getNull() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getStorage
public StorageState getStorage() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, SqlNullValueException
-
getStream
public Stream getStream() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setStream
public void setStream(Stream Stream) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-