Example usage for java.sql ParameterMetaData parameterModeUnknown

List of usage examples for java.sql ParameterMetaData parameterModeUnknown

Introduction

In this page you can find the example usage for java.sql ParameterMetaData parameterModeUnknown.

Prototype

int parameterModeUnknown

To view the source code for java.sql ParameterMetaData parameterModeUnknown.

Click Source Link

Document

The constant indicating that the mode of the parameter is unknown.

Usage

From source file:org.eclipse.birt.report.data.oda.jdbc.ui.util.Utility.java

/**
 * give the stored procedure's column type name from the type.
 * @param type/*from   w w w  .  j av  a2 s.  co m*/
 * @return
 */
public static String toModeType(int type) {
    switch (type) {
    case ParameterMetaData.parameterModeUnknown:
        return "Unknown";
    case ParameterMetaData.parameterModeIn:
        return "Input";
    case ParameterMetaData.parameterModeInOut:
        return "Input/Output";
    case ParameterMetaData.parameterModeOut:
        return "Output";
    case 5:
        return "Return Value";
    default:
        return "Unknown";
    }
}