using System;
using System.Reflection;
using System.ComponentModel;
using ChemAxon.JNI;
namespace java.sql
{
///
/// Enumeration for status of the reason that a property could not be set via a call to Connection.setClientInfo.
///
public class ClientInfoStatus : java.lang.Enum, java.lang.Comparable, java.io.Serializable
{
///
/// Default constructor.
///
protected ClientInfoStatus()
: base(MethodBase.GetCurrentMethod())
{
}
///
/// Copy constructor.
///
///
protected ClientInfoStatus(System.IntPtr javaObject)
: base(MethodBase.GetCurrentMethod(), javaObject)
{
}
///
/// Constructor.
///
///
///
protected ClientInfoStatus(string name, int ordinal)
: base(MethodBase.GetCurrentMethod(), name, ordinal)
{
}
///
/// Returns the enum constant of this type with the specified name.
///
///
///
public static ClientInfoStatus valueOf(string name)
{
return JavaNativeInterface.CallStaticMethod(MethodBase.GetCurrentMethod(), name);
}
///
/// Returns an array containing the constants of this enum type, in the order they are declared.
///
///
public static ClientInfoStatus[] values()
{
return JavaNativeInterface.CallStaticMethod(MethodBase.GetCurrentMethod());
}
///
/// Compares this enum with the specified object for order.
///
///
///
public int compareTo(ClientInfoStatus o)
{
return base.compareTo(o);
}
///
/// The client info property could not be set for some unknown reason.
///
public static ClientInfoStatus REASON_UNKNOWN
{
get
{
return GetEnumValue(MethodBase.GetCurrentMethod());
}
}
///
/// The client info property name specified was not a recognized property name.
///
public static ClientInfoStatus REASON_UNKNOWN_PROPERTY
{
get
{
return GetEnumValue(MethodBase.GetCurrentMethod());
}
}
///
/// The value specified for the client info property was not valid.
///
public static ClientInfoStatus REASON_VALUE_INVALID
{
get
{
return GetEnumValue(MethodBase.GetCurrentMethod());
}
}
///
/// The value specified for the client info property was too large.
///
public static ClientInfoStatus REASON_VALUE_TRUNCATED
{
get
{
return GetEnumValue(MethodBase.GetCurrentMethod());
}
}
[DefaultValue(REASON_UNKNOWN)]
public enum ClientInfoStatusValues : int
{
///
/// The client info property could not be set for some unknown reason.
///
REASON_UNKNOWN = 0,
///
/// The client info property name specified was not a recognized property name.
///
REASON_UNKNOWN_PROPERTY = 1,
///
/// The value specified for the client info property was not valid.
///
REASON_VALUE_INVALID = 2,
///
/// The value specified for the client info property was too large.
///
REASON_VALUE_TRUNCATED = 3
}
}
}