Coverage report

  %line %branch
org.apache.torque.engine.database.model.SchemaType
94% 
100% 

 1  
 package org.apache.torque.engine.database.model;
 2  
 
 3  
 /*
 4  
  * Licensed to the Apache Software Foundation (ASF) under one
 5  
  * or more contributor license agreements.  See the NOTICE file
 6  
  * distributed with this work for additional information
 7  
  * regarding copyright ownership.  The ASF licenses this file
 8  
  * to you under the Apache License, Version 2.0 (the
 9  
  * "License"); you may not use this file except in compliance
 10  
  * with the License.  You may obtain a copy of the License at
 11  
  *
 12  
  *   http://www.apache.org/licenses/LICENSE-2.0
 13  
  *
 14  
  * Unless required by applicable law or agreed to in writing,
 15  
  * software distributed under the License is distributed on an
 16  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 17  
  * KIND, either express or implied.  See the License for the
 18  
  * specific language governing permissions and limitations
 19  
  * under the License.
 20  
  */
 21  
 
 22  
 import java.util.Iterator;
 23  
 import java.util.List;
 24  
 import java.util.Map;
 25  
 
 26  
 import org.apache.commons.lang.enums.Enum;
 27  
 
 28  
 /**
 29  
  * Enum for types used in Torque schema.xml files.
 30  
  *
 31  
  * @author <a href="mailto:mpoeschl@marmot.at>Martin Poeschl</a>
 32  
  * @version $Id: SchemaType.java 473814 2006-11-11 22:30:30Z tv $
 33  
  */
 34  
 public class SchemaType extends Enum
 35  
 {
 36  
     /**
 37  
      * Serialization support
 38  
      */
 39  
     private static final long serialVersionUID = 17588853769472381L;
 40  
 
 41  221
     public static final SchemaType BIT = new SchemaType("BIT");
 42  221
     public static final SchemaType TINYINT = new SchemaType("TINYINT");
 43  221
     public static final SchemaType SMALLINT = new SchemaType("SMALLINT");
 44  221
     public static final SchemaType INTEGER = new SchemaType("INTEGER");
 45  221
     public static final SchemaType BIGINT = new SchemaType("BIGINT");
 46  221
     public static final SchemaType FLOAT = new SchemaType("FLOAT");
 47  221
     public static final SchemaType REAL = new SchemaType("REAL");
 48  221
     public static final SchemaType NUMERIC = new SchemaType("NUMERIC");
 49  221
     public static final SchemaType DECIMAL = new SchemaType("DECIMAL");
 50  221
     public static final SchemaType CHAR = new SchemaType("CHAR");
 51  221
     public static final SchemaType VARCHAR = new SchemaType("VARCHAR");
 52  221
     public static final SchemaType LONGVARCHAR = new SchemaType("LONGVARCHAR");
 53  221
     public static final SchemaType DATE = new SchemaType("DATE");
 54  221
     public static final SchemaType TIME = new SchemaType("TIME");
 55  221
     public static final SchemaType TIMESTAMP = new SchemaType("TIMESTAMP");
 56  221
     public static final SchemaType BINARY = new SchemaType("BINARY");
 57  221
     public static final SchemaType VARBINARY = new SchemaType("VARBINARY");
 58  221
     public static final SchemaType LONGVARBINARY = new SchemaType("LONGVARBINARY");
 59  221
     public static final SchemaType NULL = new SchemaType("NULL");
 60  221
     public static final SchemaType OTHER = new SchemaType("OTHER");
 61  221
     public static final SchemaType JAVA_OBJECT = new SchemaType("JAVA_OBJECT");
 62  221
     public static final SchemaType DISTINCT = new SchemaType("DISTINCT");
 63  221
     public static final SchemaType STRUCT = new SchemaType("STRUCT");
 64  221
     public static final SchemaType ARRAY = new SchemaType("ARRAY");
 65  221
     public static final SchemaType BLOB = new SchemaType("BLOB");
 66  221
     public static final SchemaType CLOB = new SchemaType("CLOB");
 67  221
     public static final SchemaType REF = new SchemaType("REF");
 68  221
     public static final SchemaType BOOLEANINT = new SchemaType("BOOLEANINT");
 69  221
     public static final SchemaType BOOLEANCHAR = new SchemaType("BOOLEANCHAR");
 70  221
     public static final SchemaType DOUBLE = new SchemaType("DOUBLE");
 71  
 
 72  
     private SchemaType(String type)
 73  
     {
 74  6630
         super(type);
 75  6630
     }
 76  
 
 77  
     public static SchemaType getEnum(String type)
 78  
     {
 79  29886
         return (SchemaType) getEnum(SchemaType.class, type);
 80  
     }
 81  
 
 82  
     public static Map getEnumMap()
 83  
     {
 84  0
         return getEnumMap(SchemaType.class);
 85  
     }
 86  
 
 87  
     public static List getEnumList()
 88  
     {
 89  0
         return getEnumList(SchemaType.class);
 90  
     }
 91  
 
 92  
     public static Iterator iterator()
 93  
     {
 94  272
         return iterator(SchemaType.class);
 95  
     }
 96  
 
 97  
 }

This report is generated by jcoverage, Maven and Maven JCoverage Plugin.