FileDocCategorySizeDatePackage
MetadataGeneratedValue.javaAPI DocGlassfish v2 API3451Tue May 22 16:54:28 BST 2007oracle.toplink.essentials.internal.ejb.cmp3.metadata.sequencing

MetadataGeneratedValue

public class MetadataGeneratedValue extends Object
Metadata object to hold generated value information.
author
Guy Pelletier
since
TopLink EJB 3.0 Reference Implementation

Fields Summary
private GeneratedValue
m_generatedValue
public static final String
DEFAULT_STRATEGY
Constructors Summary
public MetadataGeneratedValue()
INTERNAL:

    
          
      
public MetadataGeneratedValue(GeneratedValue generatedValue)
INTERNAL:

        m_generatedValue = generatedValue;
    
Methods Summary
public booleanequals(java.lang.Object objectToCompare)
INTERNAL:

        if (objectToCompare instanceof MetadataGeneratedValue) {
            MetadataGeneratedValue generatedValue = (MetadataGeneratedValue) objectToCompare;
            if (!generatedValue.getStrategy().equals(getStrategy())) {
                return false;
            }
            
            return generatedValue.getGenerator().equals(getGenerator());
        }
        
        return false;
    
public java.lang.StringgetGenerator()
INTERNAL: (Overridden in XMLGeneratedValue)

        return m_generatedValue.generator();
    
public java.lang.StringgetStrategy()
INTERNAL: (Overridden in XMLGeneratedValue)

        return m_generatedValue.strategy().name();