org.springframework.roo.classpath.operations
Class InheritanceType

java.lang.Object
  extended by org.springframework.roo.classpath.operations.InheritanceType
All Implemented Interfaces:
Comparable<InheritanceType>

public class InheritanceType
extends Object
implements Comparable<InheritanceType>

Provides inheritance type for JPA entities.

Since:
1.0
Author:
Ben Alex

Field Summary
static InheritanceType JOINED
           
static InheritanceType SINGLE_TABLE
           
static InheritanceType TABLE_PER_CLASS
           
 
Constructor Summary
InheritanceType(String key)
           
 
Method Summary
 int compareTo(InheritanceType o)
           
 boolean equals(Object obj)
           
 String getKey()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SINGLE_TABLE

public static final InheritanceType SINGLE_TABLE

TABLE_PER_CLASS

public static final InheritanceType TABLE_PER_CLASS

JOINED

public static final InheritanceType JOINED
Constructor Detail

InheritanceType

public InheritanceType(String key)
Method Detail

getKey

public String getKey()

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

equals

public final boolean equals(Object obj)
Overrides:
equals in class Object

compareTo

public final int compareTo(InheritanceType o)
Specified by:
compareTo in interface Comparable<InheritanceType>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2010 VMware, Inc. All Rights Reserved.