org.datanucleus.metadata
Class InheritanceStrategy

java.lang.Object
  extended by org.datanucleus.metadata.InheritanceStrategy
All Implemented Interfaces:
java.io.Serializable

public class InheritanceStrategy
extends java.lang.Object
implements java.io.Serializable

Representation of the values for inheritance "strategy". A brief description of the strategies

See Also:
Serialized Form

Field Summary
static InheritanceStrategy COMPLETE_TABLE
          strategy="complete-table" (from JPA "TABLE_PER_CLASS")
static InheritanceStrategy NEW_TABLE
          strategy="new-table"
static InheritanceStrategy SUBCLASS_TABLE
          strategy="subclass-table"
static InheritanceStrategy SUPERCLASS_TABLE
          strategy="superclass-table"
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is "equal to" this one.
static InheritanceStrategy getInheritanceStrategy(java.lang.String value)
          Obtain a InheritanceStrategy for the given name by value
 int getType()
          Accessor for the type.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SUBCLASS_TABLE

public static final InheritanceStrategy SUBCLASS_TABLE
strategy="subclass-table"


NEW_TABLE

public static final InheritanceStrategy NEW_TABLE
strategy="new-table"


SUPERCLASS_TABLE

public static final InheritanceStrategy SUPERCLASS_TABLE
strategy="superclass-table"


COMPLETE_TABLE

public static final InheritanceStrategy COMPLETE_TABLE
strategy="complete-table" (from JPA "TABLE_PER_CLASS")

Method Detail

equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object
Parameters:
o - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.

getType

public int getType()
Accessor for the type.

Returns:
Type

getInheritanceStrategy

public static InheritanceStrategy getInheritanceStrategy(java.lang.String value)
Obtain a InheritanceStrategy for the given name by value

Parameters:
value - the name
Returns:
the InheritanceStrategy found or InheritanceStrategy.NEW_TABLE if not found. Nothing specified returns null


Copyright © 2010. All Rights Reserved.