
    
package performa.orm.types;

import java.util.*;
import oneit.utils.*;



/**
 * This class was generated using constGen.bat.
 * DO NOT MODIFY THIS CODE.
 * Edit the associated .xml file, and regenerate this file
 * constGen (directory) (file minus extension)
 * e.g. constGen C:\...\sql FieldType
 */

public class JobType extends AbstractEnumerated
{
    
    public static final EnumeratedFactory FACTORY_JobType = new JobTypeFactory();
    
    public static final JobType FULL_TIME = new JobType ("FULL_TIME", "FULL_TIME", "Full Time", false);
    
    public static final JobType PART_TIME = new JobType ("PART_TIME", "PART_TIME", "Part Time", false);
    
    public static final JobType CONTRACT = new JobType ("CONTRACT", "CONTRACT", "Contract", false);

    private static final JobType[] allJobTypes =
        new JobType[] { FULL_TIME,PART_TIME,CONTRACT};


    private static JobType[] getAllJobTypes ()
    {
        return allJobTypes;
    }

    private JobType (String name, String value, String description, boolean disabled)
    {
        super (name, value, description, disabled);
    }
    
    public static final Comparator COMPARE_BY_POSITION = new CompareEnumByPosition (allJobTypes);



    static
    {
        defineAdditionalData ();
    }

    public boolean isEqual (JobType other)
    {
    return this.name.equals (other.name);
    }

    public Enumeration getAllInstances ()
    {
        return JobType.getAll ();
    }


    private Object readResolve() throws java.io.ObjectStreamException
    {
        return JobType.forName (this.name);
    }


    public EnumeratedFactory getFactory ()
    {
        return FACTORY_JobType;
    }

    public static JobType forName (String name)
    {
        if (name == null) { return null; }

        JobType[] all = getAllJobTypes();
        int enumIndex = AbstractEnumerated.getIndexForName (all, name);

        return all[enumIndex];
    }


    public static JobType forValue (String value)
    {
        if (value == null) { return null; }

        JobType[] all = getAllJobTypes();
        int enumIndex = AbstractEnumerated.getIndexForValue (getAllJobTypes (), value);

        return all[enumIndex];
    }


    public static java.util.Enumeration getAll ()
    {
        return AbstractEnumerated.getAll (getAllJobTypes());
    }
    
    
    public static JobType[] getJobTypeArray ()
    {
        return (JobType[])getAllJobTypes().clone ();
    }


    public static void defineAdditionalData ()
    {
        
    }


    static class JobTypeFactory implements EnumeratedFactory
    {
        public AbstractEnumerated getForName (String name)
        {
            return JobType.forName (name);
        }

        public AbstractEnumerated getForValue (String name)
        {
            return JobType.forValue (name);
        }

        public Enumeration getAll ()
        {
            return JobType.getAll ();
        }
    }


    public Map getAdditionalAttributes ()
    {
        Map attribs = new HashMap ();

        
        return attribs;
    }
}

