Coverage report

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

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

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