de.nierbeck.timeTrack.views
Class ColumnEnum

java.lang.Object
  extended by de.nierbeck.timeTrack.views.ColumnEnum

public class ColumnEnum
extends java.lang.Object

Author:
Achim

Field Summary
static ColumnEnum COMMENT
          Enum for comment
static int COMMENT_ORD
          Ordinal for Comment
static ColumnEnum DURATION
          Enum for Duration
static int DURATION_ORD
          Ordinal for Duration
static ColumnEnum PROJECT
          Enum for Project
static int PROJECT_ORD
          Ordinal for Project
static ColumnEnum START_DATE
          Enum for Start Date
static int START_DATE_ORD
          Ordinal for Start Date
static ColumnEnum TASK
          Enum for Task
static int TASK_ORD
          Ordinal for Task
 
Constructor Summary
ColumnEnum(java.lang.String name, int ord, java.lang.String methodName)
          Creates a new Enumeration (Boch Style)
 
Method Summary
static ColumnEnum find(int ord)
          Finds the Enum according to the ordinal number
 java.lang.String getName()
           
 int getOrd()
           
 java.lang.String getRetrievalMethodName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_DATE_ORD

public static final int START_DATE_ORD
Ordinal for Start Date

See Also:
Constant Field Values

DURATION_ORD

public static final int DURATION_ORD
Ordinal for Duration

See Also:
Constant Field Values

PROJECT_ORD

public static final int PROJECT_ORD
Ordinal for Project

See Also:
Constant Field Values

TASK_ORD

public static final int TASK_ORD
Ordinal for Task

See Also:
Constant Field Values

COMMENT_ORD

public static final int COMMENT_ORD
Ordinal for Comment

See Also:
Constant Field Values

START_DATE

public static final ColumnEnum START_DATE
Enum for Start Date


DURATION

public static final ColumnEnum DURATION
Enum for Duration


PROJECT

public static final ColumnEnum PROJECT
Enum for Project


TASK

public static final ColumnEnum TASK
Enum for Task


COMMENT

public static final ColumnEnum COMMENT
Enum for comment

Constructor Detail

ColumnEnum

public ColumnEnum(java.lang.String name,
                  int ord,
                  java.lang.String methodName)
Creates a new Enumeration (Boch Style)

Parameters:
name - - the name value of the Enum Instance
ord - - the ordinal value of the Enum Instance
methodName - - the Method name to retrieve a given value
Method Detail

find

public static ColumnEnum find(int ord)
Finds the Enum according to the ordinal number

Parameters:
ord - - the number to search for
Returns:
the ColumnEnum that was searched for

getName

public final java.lang.String getName()
Returns:
the name of the Enumeration

getOrd

public final int getOrd()
Returns:
the Ordinal number of the enum

getRetrievalMethodName

public final java.lang.String getRetrievalMethodName()
Returns:
Returns the retrievalMethodName.


Copyright © 2003-2006 Nierbeck. All Rights Reserved.