org.datanucleus.jdo.metadata
Class PackageMetadataImpl

java.lang.Object
  extended by org.datanucleus.jdo.metadata.AbstractMetadataImpl
      extended by org.datanucleus.jdo.metadata.PackageMetadataImpl
All Implemented Interfaces:
javax.jdo.metadata.Metadata, javax.jdo.metadata.PackageMetadata

public class PackageMetadataImpl
extends AbstractMetadataImpl
implements javax.jdo.metadata.PackageMetadata

Implementation of JDO PackageMetadata object.


Constructor Summary
PackageMetadataImpl(PackageMetaData pmd)
           
 
Method Summary
 java.lang.String getCatalog()
           
 javax.jdo.metadata.ClassMetadata[] getClasses()
           
 javax.jdo.metadata.InterfaceMetadata[] getInterfaces()
           
 PackageMetaData getInternal()
           
 java.lang.String getName()
           
 int getNumberOfClasses()
           
 int getNumberOfInterfaces()
           
 int getNumberOfSequences()
           
 AbstractMetadataImpl getParent()
           
 java.lang.String getSchema()
           
 javax.jdo.metadata.SequenceMetadata[] getSequences()
           
 javax.jdo.metadata.ClassMetadata newClassMetadata(java.lang.Class cls)
           
 javax.jdo.metadata.ClassMetadata newClassMetadata(java.lang.String name)
           
 javax.jdo.metadata.InterfaceMetadata newInterfaceMetadata(java.lang.Class cls)
           
 javax.jdo.metadata.InterfaceMetadata newInterfaceMetadata(java.lang.String name)
           
 javax.jdo.metadata.SequenceMetadata newSequenceMetadata(java.lang.String name, javax.jdo.annotations.SequenceStrategy strategy)
           
 javax.jdo.metadata.PackageMetadata setCatalog(java.lang.String cat)
           
 javax.jdo.metadata.PackageMetadata setSchema(java.lang.String sch)
           
 
Methods inherited from class org.datanucleus.jdo.metadata.AbstractMetadataImpl
getExtensions, getNumberOfExtensions, newExtensionMetadata, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jdo.metadata.Metadata
getExtensions, getNumberOfExtensions, newExtensionMetadata
 

Constructor Detail

PackageMetadataImpl

public PackageMetadataImpl(PackageMetaData pmd)
Method Detail

getInternal

public PackageMetaData getInternal()

getName

public java.lang.String getName()
Specified by:
getName in interface javax.jdo.metadata.PackageMetadata

getCatalog

public java.lang.String getCatalog()
Specified by:
getCatalog in interface javax.jdo.metadata.PackageMetadata

setCatalog

public javax.jdo.metadata.PackageMetadata setCatalog(java.lang.String cat)
Specified by:
setCatalog in interface javax.jdo.metadata.PackageMetadata

getSchema

public java.lang.String getSchema()
Specified by:
getSchema in interface javax.jdo.metadata.PackageMetadata

setSchema

public javax.jdo.metadata.PackageMetadata setSchema(java.lang.String sch)
Specified by:
setSchema in interface javax.jdo.metadata.PackageMetadata

getClasses

public javax.jdo.metadata.ClassMetadata[] getClasses()
Specified by:
getClasses in interface javax.jdo.metadata.PackageMetadata

getNumberOfClasses

public int getNumberOfClasses()
Specified by:
getNumberOfClasses in interface javax.jdo.metadata.PackageMetadata

newClassMetadata

public javax.jdo.metadata.ClassMetadata newClassMetadata(java.lang.String name)
Specified by:
newClassMetadata in interface javax.jdo.metadata.PackageMetadata

newClassMetadata

public javax.jdo.metadata.ClassMetadata newClassMetadata(java.lang.Class cls)
Specified by:
newClassMetadata in interface javax.jdo.metadata.PackageMetadata

getInterfaces

public javax.jdo.metadata.InterfaceMetadata[] getInterfaces()
Specified by:
getInterfaces in interface javax.jdo.metadata.PackageMetadata

getNumberOfInterfaces

public int getNumberOfInterfaces()
Specified by:
getNumberOfInterfaces in interface javax.jdo.metadata.PackageMetadata

newInterfaceMetadata

public javax.jdo.metadata.InterfaceMetadata newInterfaceMetadata(java.lang.String name)
Specified by:
newInterfaceMetadata in interface javax.jdo.metadata.PackageMetadata

newInterfaceMetadata

public javax.jdo.metadata.InterfaceMetadata newInterfaceMetadata(java.lang.Class cls)
Specified by:
newInterfaceMetadata in interface javax.jdo.metadata.PackageMetadata

getSequences

public javax.jdo.metadata.SequenceMetadata[] getSequences()
Specified by:
getSequences in interface javax.jdo.metadata.PackageMetadata

getNumberOfSequences

public int getNumberOfSequences()
Specified by:
getNumberOfSequences in interface javax.jdo.metadata.PackageMetadata

newSequenceMetadata

public javax.jdo.metadata.SequenceMetadata newSequenceMetadata(java.lang.String name,
                                                               javax.jdo.annotations.SequenceStrategy strategy)
Specified by:
newSequenceMetadata in interface javax.jdo.metadata.PackageMetadata

getParent

public AbstractMetadataImpl getParent()
Specified by:
getParent in interface javax.jdo.metadata.Metadata
Overrides:
getParent in class AbstractMetadataImpl


Copyright © 2010. All Rights Reserved.