edu.vt.middleware.ed
Class Major

java.lang.Object
  extended by edu.vt.middleware.ed.AbstractDataType
      extended by edu.vt.middleware.ed.Major
All Implemented Interfaces:
DataType, Serializable, Comparable<DataType>

public class Major
extends AbstractDataType
implements Serializable

Contains major data.

Version:
$Revision: 7374 $
Author:
Daniel Fisher
See Also:
Serialized Form

Field Summary
static String FIND_ALL
          Constant for named query
private static long serialVersionUID
          serial version UID
 
Fields inherited from class edu.vt.middleware.ed.AbstractDataType
HASH_CODE_SEED
 
Constructor Summary
Major()
          Default constructor.
Major(String code, String name)
          This creates a Major with the supplied code and name.
 
Method Summary
 String getTypeCode()
          This returns the type code.
 String getTypeName()
          This returns the type name.
 
Methods inherited from class edu.vt.middleware.ed.AbstractDataType
compareTo, equals, getDataType, hashCode, setTypeCode, setTypeName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FIND_ALL

public static final String FIND_ALL
Constant for named query

See Also:
Constant Field Values

serialVersionUID

private static final long serialVersionUID
serial version UID

See Also:
Constant Field Values
Constructor Detail

Major

public Major()
Default constructor.


Major

public Major(String code,
             String name)
This creates a Major with the supplied code and name.

Parameters:
code - String
name - String
Method Detail

getTypeCode

public String getTypeCode()
This returns the type code.

Specified by:
getTypeCode in interface DataType
Overrides:
getTypeCode in class AbstractDataType
Returns:
String - code

getTypeName

public String getTypeName()
This returns the type name.

Specified by:
getTypeName in interface DataType
Overrides:
getTypeName in class AbstractDataType
Returns:
String - name


Copyright © 2008 Virginia Tech. All Rights Reserved.