示例#1
0
 /**
  * This looks up the specified ObjectType within the SessionManager and returns the ObjectType
  * object that is specified by the string.
  *
  * @param typeName This is the name of the ObjectType to look up.
  * @pre typeName != null
  */
 private static final ObjectType lookup(String typeName) {
   ObjectType type = MetadataRoot.getMetadataRoot().getObjectType(typeName);
   if (type == null) {
     throw new PersistenceException("No such type " + typeName);
   }
   return type;
 }
 /**
  * Compiles the parsed PDL into the specified MetadataRoot.
  *
  * @param root The MetadataRoot to emit to.
  */
 public void emit(MetadataRoot root) {
   m_pdl.emit(root.getRoot());
   m_pdl.emitVersioned();
   if (root.equals(MetadataRoot.getMetadataRoot())) {
     MetadataRoot.loadPrimitives();
   }
 }