microsoft.sqlserver.server.SqlMetaData Maven / Gradle / Ivy
/*
* MIT License
*
* Copyright (c) 2024 MASES s.r.l.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/**************************************************************************************
*
* This code was generated from a template using JCOReflector v. 1.14.0.0
*
* Manual changes to this file may cause unexpected behavior in your application.
* Manual changes to this file will be overwritten if the code is regenerated.
*
*************************************************************************************/
package microsoft.sqlserver.server;
import org.mases.jcobridge.*;
import org.mases.jcobridge.netreflection.*;
import java.util.ArrayList;
// Import section
import system.data.SqlDbType;
import system.data.sqlclient.SortOrder;
import system.data.sqltypes.SqlCompareOptions;
import microsoft.sqlserver.server.SqlMetaData;
import system.Single;
import system.data.sqltypes.SqlBinary;
import system.data.sqltypes.SqlBoolean;
import system.data.sqltypes.SqlByte;
import system.data.sqltypes.SqlBytes;
import system.data.sqltypes.SqlChars;
import system.data.sqltypes.SqlDateTime;
import system.data.sqltypes.SqlDecimal;
import system.data.sqltypes.SqlDouble;
import system.data.sqltypes.SqlGuid;
import system.data.sqltypes.SqlInt16;
import system.data.sqltypes.SqlInt32;
import system.data.sqltypes.SqlInt64;
import system.data.sqltypes.SqlMoney;
import system.data.sqltypes.SqlSingle;
import system.data.sqltypes.SqlString;
import system.data.sqltypes.SqlXml;
import system.DateTime;
import system.DateTimeOffset;
import system.Decimal;
import system.Guid;
import system.TimeSpan;
import system.data.DbType;
/**
* The base .NET class managing Microsoft.SqlServer.Server.SqlMetaData, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
*
*
* .NET documentation at https://docs.microsoft.com/en-us/dotnet/api/Microsoft.SqlServer.Server.SqlMetaData
*
*
* Powered by JCOBridge: more info at https://www.jcobridge.com
*
* @author MASES s.r.l https://masesgroup.com
* @version 1.14.0.0
*/
public class SqlMetaData extends NetObject {
/**
* Fully assembly qualified name: System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
*/
public static final String assemblyFullName = "System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089";
/**
* Assembly name: System.Data
*/
public static final String assemblyShortName = "System.Data";
/**
* Qualified class name: Microsoft.SqlServer.Server.SqlMetaData
*/
public static final String className = "Microsoft.SqlServer.Server.SqlMetaData";
static JCOBridge bridge = JCOBridgeInstance.getInstance(assemblyFullName);
/**
* The type managed from JCOBridge. See {@link JCType}
*/
public static JCType classType = createType();
static JCEnum enumInstance = null;
JCObject classInstance = null;
static JCType createType() {
try {
String classToCreate = className + ", "
+ (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
if (JCOReflector.getDebug())
JCOReflector.writeLog("Creating %s", classToCreate);
JCType typeCreated = bridge.GetType(classToCreate);
if (JCOReflector.getDebug())
JCOReflector.writeLog("Created: %s",
(typeCreated != null) ? typeCreated.toString() : "Returned null value");
return typeCreated;
} catch (JCException e) {
JCOReflector.writeLog(e);
return null;
}
}
void addReference(String ref) throws Throwable {
try {
bridge.AddReference(ref);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
/**
* Internal constructor. Use with caution
*/
public SqlMetaData(java.lang.Object instance) throws Throwable {
super(instance);
if (instance instanceof JCObject) {
classInstance = (JCObject) instance;
} else
throw new Exception("Cannot manage object, it is not a JCObject");
}
public String getJCOAssemblyName() {
return assemblyFullName;
}
public String getJCOClassName() {
return className;
}
public String getJCOObjectName() {
return className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
}
public java.lang.Object getJCOInstance() {
return classInstance;
}
public void setJCOInstance(JCObject instance) {
classInstance = instance;
super.setJCOInstance(classInstance);
}
public JCType getJCOType() {
return classType;
}
/**
* Try to cast the {@link IJCOBridgeReflected} instance into {@link SqlMetaData}, a cast assert is made to check if types are compatible.
* @param from {@link IJCOBridgeReflected} instance to be casted
* @return {@link SqlMetaData} instance
* @throws java.lang.Throwable in case of error during cast operation
*/
public static SqlMetaData cast(IJCOBridgeReflected from) throws Throwable {
NetType.AssertCast(classType, from);
return new SqlMetaData(from.getJCOInstance());
}
// Constructors section
public SqlMetaData() throws Throwable {
}
public SqlMetaData(java.lang.String name, SqlDbType dbType) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.FormatException {
try {
// add reference to assemblyName.dll file
addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
setJCOInstance((JCObject)classType.NewObject(name, dbType == null ? null : dbType.getJCOInstance()));
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlMetaData(java.lang.String name, SqlDbType dbType, boolean useServerDefault, boolean isUniqueKey, SortOrder columnSortOrder, int sortOrdinal) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.FormatException {
try {
// add reference to assemblyName.dll file
addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
setJCOInstance((JCObject)classType.NewObject(name, dbType == null ? null : dbType.getJCOInstance(), useServerDefault, isUniqueKey, columnSortOrder == null ? null : columnSortOrder.getJCOInstance(), sortOrdinal));
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlMetaData(java.lang.String name, SqlDbType dbType, byte precision, byte scale) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.FormatException {
try {
// add reference to assemblyName.dll file
addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
setJCOInstance((JCObject)classType.NewObject(name, dbType == null ? null : dbType.getJCOInstance(), precision, scale));
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlMetaData(java.lang.String name, SqlDbType dbType, byte precision, byte scale, boolean useServerDefault, boolean isUniqueKey, SortOrder columnSortOrder, int sortOrdinal) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.FormatException {
try {
// add reference to assemblyName.dll file
addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
setJCOInstance((JCObject)classType.NewObject(name, dbType == null ? null : dbType.getJCOInstance(), precision, scale, useServerDefault, isUniqueKey, columnSortOrder == null ? null : columnSortOrder.getJCOInstance(), sortOrdinal));
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlMetaData(java.lang.String name, SqlDbType dbType, long maxLength) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.FormatException {
try {
// add reference to assemblyName.dll file
addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
setJCOInstance((JCObject)classType.NewObject(name, dbType == null ? null : dbType.getJCOInstance(), maxLength));
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlMetaData(java.lang.String name, SqlDbType dbType, long maxLength, boolean useServerDefault, boolean isUniqueKey, SortOrder columnSortOrder, int sortOrdinal) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.FormatException {
try {
// add reference to assemblyName.dll file
addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
setJCOInstance((JCObject)classType.NewObject(name, dbType == null ? null : dbType.getJCOInstance(), maxLength, useServerDefault, isUniqueKey, columnSortOrder == null ? null : columnSortOrder.getJCOInstance(), sortOrdinal));
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlMetaData(java.lang.String name, SqlDbType dbType, long maxLength, byte precision, byte scale, long locale, SqlCompareOptions compareOptions, NetType userDefinedType) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, microsoft.sqlserver.server.InvalidUdtException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotSupportedException {
try {
// add reference to assemblyName.dll file
addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
setJCOInstance((JCObject)classType.NewObject(name, dbType == null ? null : dbType.getJCOInstance(), maxLength, precision, scale, locale, compareOptions == null ? null : compareOptions.getJCOInstance(), userDefinedType == null ? null : userDefinedType.getJCOInstance()));
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlMetaData(java.lang.String name, SqlDbType dbType, long maxLength, byte precision, byte scale, long localeId, SqlCompareOptions compareOptions, NetType userDefinedType, boolean useServerDefault, boolean isUniqueKey, SortOrder columnSortOrder, int sortOrdinal) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.FormatException, microsoft.sqlserver.server.InvalidUdtException {
try {
// add reference to assemblyName.dll file
addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
setJCOInstance((JCObject)classType.NewObject(name, dbType == null ? null : dbType.getJCOInstance(), maxLength, precision, scale, localeId, compareOptions == null ? null : compareOptions.getJCOInstance(), userDefinedType == null ? null : userDefinedType.getJCOInstance(), useServerDefault, isUniqueKey, columnSortOrder == null ? null : columnSortOrder.getJCOInstance(), sortOrdinal));
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlMetaData(java.lang.String name, SqlDbType dbType, long maxLength, long locale, SqlCompareOptions compareOptions) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.FormatException {
try {
// add reference to assemblyName.dll file
addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
setJCOInstance((JCObject)classType.NewObject(name, dbType == null ? null : dbType.getJCOInstance(), maxLength, locale, compareOptions == null ? null : compareOptions.getJCOInstance()));
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlMetaData(java.lang.String name, SqlDbType dbType, long maxLength, long locale, SqlCompareOptions compareOptions, boolean useServerDefault, boolean isUniqueKey, SortOrder columnSortOrder, int sortOrdinal) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.FormatException {
try {
// add reference to assemblyName.dll file
addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
setJCOInstance((JCObject)classType.NewObject(name, dbType == null ? null : dbType.getJCOInstance(), maxLength, locale, compareOptions == null ? null : compareOptions.getJCOInstance(), useServerDefault, isUniqueKey, columnSortOrder == null ? null : columnSortOrder.getJCOInstance(), sortOrdinal));
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlMetaData(java.lang.String name, SqlDbType dbType, java.lang.String database, java.lang.String owningSchema, java.lang.String objectName) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.FormatException {
try {
// add reference to assemblyName.dll file
addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
setJCOInstance((JCObject)classType.NewObject(name, dbType == null ? null : dbType.getJCOInstance(), database, owningSchema, objectName));
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlMetaData(java.lang.String name, SqlDbType dbType, java.lang.String database, java.lang.String owningSchema, java.lang.String objectName, boolean useServerDefault, boolean isUniqueKey, SortOrder columnSortOrder, int sortOrdinal) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.FormatException {
try {
// add reference to assemblyName.dll file
addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
setJCOInstance((JCObject)classType.NewObject(name, dbType == null ? null : dbType.getJCOInstance(), database, owningSchema, objectName, useServerDefault, isUniqueKey, columnSortOrder == null ? null : columnSortOrder.getJCOInstance(), sortOrdinal));
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlMetaData(java.lang.String name, SqlDbType dbType, NetType userDefinedType) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.FormatException, microsoft.sqlserver.server.InvalidUdtException {
try {
// add reference to assemblyName.dll file
addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
setJCOInstance((JCObject)classType.NewObject(name, dbType == null ? null : dbType.getJCOInstance(), userDefinedType == null ? null : userDefinedType.getJCOInstance()));
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlMetaData(java.lang.String name, SqlDbType dbType, NetType userDefinedType, java.lang.String serverTypeName) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.FormatException, microsoft.sqlserver.server.InvalidUdtException {
try {
// add reference to assemblyName.dll file
addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
setJCOInstance((JCObject)classType.NewObject(name, dbType == null ? null : dbType.getJCOInstance(), userDefinedType == null ? null : userDefinedType.getJCOInstance(), serverTypeName));
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlMetaData(java.lang.String name, SqlDbType dbType, NetType userDefinedType, java.lang.String serverTypeName, boolean useServerDefault, boolean isUniqueKey, SortOrder columnSortOrder, int sortOrdinal) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.FormatException, microsoft.sqlserver.server.InvalidUdtException {
try {
// add reference to assemblyName.dll file
addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
setJCOInstance((JCObject)classType.NewObject(name, dbType == null ? null : dbType.getJCOInstance(), userDefinedType == null ? null : userDefinedType.getJCOInstance(), serverTypeName, useServerDefault, isUniqueKey, columnSortOrder == null ? null : columnSortOrder.getJCOInstance(), sortOrdinal));
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
// Methods section
public boolean Adjust(boolean value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Invoke("Adjust", value);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public byte Adjust(byte value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (byte)classInstance.Invoke("Adjust", value);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public byte[] Adjust(byte[] value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
ArrayList resultingArrayList = new ArrayList();
JCObject resultingObjects = (JCObject)classInstance.Invoke("Adjust", (java.lang.Object)value);
for (java.lang.Object resultingObject : resultingObjects) {
resultingArrayList.add(resultingObject);
}
byte[] resultingArray = new byte[resultingArrayList.size()];
for(int indexAdjust = 0; indexAdjust < resultingArrayList.size(); indexAdjust++ ) {
resultingArray[indexAdjust] = (byte)resultingArrayList.get(indexAdjust);
}
return resultingArray;
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public byte[] Adjust(JCORefOut dupParam0) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
ArrayList resultingArrayList = new ArrayList();
JCObject resultingObjects = (JCObject)classInstance.Invoke("Adjust", (java.lang.Object)dupParam0.getJCRefOut());
for (java.lang.Object resultingObject : resultingObjects) {
resultingArrayList.add(resultingObject);
}
byte[] resultingArray = new byte[resultingArrayList.size()];
for(int indexAdjust = 0; indexAdjust < resultingArrayList.size(); indexAdjust++ ) {
resultingArray[indexAdjust] = (byte)resultingArrayList.get(indexAdjust);
}
return resultingArray;
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public char Adjust(char value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (char)classInstance.Invoke("Adjust", value);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public char[] Adjust(char[] value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
ArrayList resultingArrayList = new ArrayList();
JCObject resultingObjects = (JCObject)classInstance.Invoke("Adjust", (java.lang.Object)value);
for (java.lang.Object resultingObject : resultingObjects) {
resultingArrayList.add(resultingObject);
}
char[] resultingArray = new char[resultingArrayList.size()];
for(int indexAdjust = 0; indexAdjust < resultingArrayList.size(); indexAdjust++ ) {
resultingArray[indexAdjust] = (char)resultingArrayList.get(indexAdjust);
}
return resultingArray;
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public double Adjust(double value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (double)classInstance.Invoke("Adjust", value);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public short Adjust(short value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (short)classInstance.Invoke("Adjust", value);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public int Adjust(int value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (int)classInstance.Invoke("Adjust", value);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public long Adjust(long value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (long)classInstance.Invoke("Adjust", value);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static SqlMetaData InferFromValue(NetObject value, java.lang.String name) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.resources.MissingManifestResourceException, system.NotImplementedException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.data.sqltypes.SqlNullValueException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject objInferFromValue = (JCObject)classType.Invoke("InferFromValue", value == null ? null : value.getJCOInstance(), name);
return new SqlMetaData(objInferFromValue);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public Single Adjust(Single value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new Single(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlBinary Adjust(SqlBinary value) throws Throwable, system.data.sqltypes.SqlNullValueException, system.ArgumentException, system.ArgumentNullException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new SqlBinary(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlBoolean Adjust(SqlBoolean value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new SqlBoolean(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlByte Adjust(SqlByte value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new SqlByte(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlBytes Adjust(SqlBytes value) throws Throwable, system.data.sqltypes.SqlNullValueException, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.data.sqltypes.SqlTypeException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new SqlBytes(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlChars Adjust(SqlChars value) throws Throwable, system.data.sqltypes.SqlNullValueException, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.data.sqltypes.SqlTypeException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new SqlChars(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlDateTime Adjust(SqlDateTime value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.data.sqltypes.SqlNullValueException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new SqlDateTime(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlDecimal Adjust(SqlDecimal value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.data.sqltypes.SqlNullValueException, system.data.sqltypes.SqlTruncateException, system.OverflowException, system.DivideByZeroException, system.data.sqltypes.SqlTypeException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new SqlDecimal(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlDouble Adjust(SqlDouble value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new SqlDouble(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlGuid Adjust(SqlGuid value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new SqlGuid(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlInt16 Adjust(SqlInt16 value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new SqlInt16(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlInt32 Adjust(SqlInt32 value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new SqlInt32(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlInt64 Adjust(SqlInt64 value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new SqlInt64(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlMoney Adjust(SqlMoney value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.data.sqltypes.SqlNullValueException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new SqlMoney(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlSingle Adjust(SqlSingle value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new SqlSingle(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlString Adjust(SqlString value) throws Throwable, system.data.sqltypes.SqlNullValueException, system.ArgumentNullException, system.TypeLoadException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotSupportedException, system.globalization.CultureNotFoundException, system.ArgumentOutOfRangeException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new SqlString(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlXml Adjust(SqlXml value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new SqlXml(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public DateTime Adjust(DateTime value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new DateTime(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public DateTimeOffset Adjust(DateTimeOffset value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new DateTimeOffset(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public Decimal Adjust(Decimal value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.data.sqltypes.SqlNullValueException, system.data.sqltypes.SqlTruncateException, system.OverflowException, system.DivideByZeroException, system.data.sqltypes.SqlTypeException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new Decimal(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public Guid Adjust(Guid value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new Guid(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public NetObject Adjust(NetObject value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException, system.ArgumentOutOfRangeException, system.data.sqltypes.SqlNullValueException, system.data.sqltypes.SqlTruncateException, system.OverflowException, system.DivideByZeroException, system.data.sqltypes.SqlTypeException, system.OutOfMemoryException, system.FormatException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new NetObject(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public java.lang.String Adjust(java.lang.String value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (java.lang.String)classInstance.Invoke("Adjust", value);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public TimeSpan Adjust(TimeSpan value) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.NotImplementedException, system.globalization.CultureNotFoundException, system.IndexOutOfRangeException, system.ArgumentOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject objAdjust = (JCObject)classInstance.Invoke("Adjust", value == null ? null : value.getJCOInstance());
return new TimeSpan(objAdjust);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
// Properties section
public boolean getIsUniqueKey() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("IsUniqueKey");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public boolean getUseServerDefault() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (boolean)classInstance.Get("UseServerDefault");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public byte getPrecision() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (byte)classInstance.Get("Precision");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public byte getScale() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (byte)classInstance.Get("Scale");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public int getSortOrdinal() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (int)classInstance.Get("SortOrdinal");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public long getLocaleId() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (long)classInstance.Get("LocaleId");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static long getMax() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
return (long)classType.Get("Max");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public long getMaxLength() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (long)classInstance.Get("MaxLength");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public DbType getDbType() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("DbType");
return new DbType(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SortOrder getSortOrder() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("SortOrder");
return new SortOrder(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlDbType getSqlDbType() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("SqlDbType");
return new SqlDbType(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public SqlCompareOptions getCompareOptions() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("CompareOptions");
return new SqlCompareOptions(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public java.lang.String getName() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (java.lang.String)classInstance.Get("Name");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public java.lang.String getTypeName() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (java.lang.String)classInstance.Get("TypeName");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public java.lang.String getXmlSchemaCollectionDatabase() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (java.lang.String)classInstance.Get("XmlSchemaCollectionDatabase");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public java.lang.String getXmlSchemaCollectionName() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (java.lang.String)classInstance.Get("XmlSchemaCollectionName");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public java.lang.String getXmlSchemaCollectionOwningSchema() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (java.lang.String)classInstance.Get("XmlSchemaCollectionOwningSchema");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public NetType getType() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("Type");
return new NetType(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
// Instance Events section
}