//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-520 
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2009.05.15 at 12:16:57 PM MSD 
//


package org.spbu.benchmark.app;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

import com.progress.open4gl.Parameter;
import com.progress.open4gl.ProResultSetMetaDataImpl;
import com.progress.open4gl.ProSQLException;



/**
 * <p>Java class for SimpleParameter complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="SimpleParameter">
 *   &lt;complexContent>
 *     &lt;extension base="{}OEParameter">
 *       &lt;sequence>
 *         &lt;element name="value">
 *           &lt;simpleType>
 *             &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               &lt;enumeration value="CHARACTER"/>
 *               &lt;enumeration value="INTEGER"/>
 *               &lt;enumeration value="LOGICAL"/>
 *               &lt;enumeration value="DATE"/>
 *               &lt;enumeration value="DATETIME"/>
 *               &lt;enumeration value="LOGICAL"/>
 *               &lt;enumeration value="DECIMAL"/>
 *             &lt;/restriction>
 *           &lt;/simpleType>
 *         &lt;/element>
 *       &lt;/sequence>
 *     &lt;/extension>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SimpleParameter", propOrder = {
    "value"
})
public class SimpleParameter
    extends OEParameter
{
	public static SimpleParameter CHARACTER(){
		return new SimpleParameter("CHARACTER");
	}
	public static SimpleParameter LOGICAL() {
		return new SimpleParameter("LOGICAL");
	}

	public static SimpleParameter INTEGER() {
		return new SimpleParameter("INTEGER");
	}

	public static SimpleParameter DATE() {
		return new SimpleParameter("DATE");
	}

	public static SimpleParameter DATETIME() {
		return new SimpleParameter("DATETIME");
	}

	public static SimpleParameter LONGCHAR() {
		return new SimpleParameter("LONGCHAR");
	}

	public static SimpleParameter DECIMAL() {
		return new SimpleParameter("DECIMAL");
	}
	public SimpleParameter(String value){
		this.value = value;
	}
	public SimpleParameter(){}
    @XmlElement(required = true)
    protected String value;

    /**
     * Gets the value of the value property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getValue() {
        return value;
    }
    /**
     * Gets the Progress com.progress.open4gl.Parameter value for parameter type
     * @return
     * 		
     */
    public int get(){
			if(value.equalsIgnoreCase( "CHARACTER"))
				return Parameter.PRO_CHARACTER;
			if(value.equalsIgnoreCase( "INTEGER"))
				return Parameter.PRO_INTEGER;
			if(value.equalsIgnoreCase( "LOGICAL"))
				return Parameter.PRO_LOGICAL;
			if(value.equalsIgnoreCase( "DATE"))  
				return Parameter.PRO_DATE;
			if(value.equalsIgnoreCase( "DATETIME"))
				return Parameter.PRO_DATETIME;
			if(value.equalsIgnoreCase( "LONGCHAR"))
				return Parameter.PRO_LONGCHAR;
			if(value.equalsIgnoreCase( "DECIMAL"))
				return Parameter.PRO_DECIMAL;
			
			return Parameter.PRO_UNKNOWN;
    }
    public ProResultSetMetaDataImpl getMetaData()  throws ProSQLException{
    	return null;
    }
    /**
     * Sets the value of the value property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setValue(String value) {
        this.value = value;
    }

}
