Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.jdeveloper.engine.db
Class DBRevEngine

java.lang.Object
  extended by oracle.jdeveloper.engine.db.DBRevEngine

public abstract class DBRevEngine
extends java.lang.Object

The DBRevEngine provides generic services for generating one or more persistent components from DB objects. Subclasses are expected to refine the behavior, providing customized codegen for building up EJB CMP objects, POJO's, or any other object type.


Field Summary
protected  boolean _logToSystemOut
           
protected  Namespace _ns
           
protected  java.io.PrintStream _printStream
           
protected  java.io.PrintWriter _printWriter
           
protected  Project _project
           
protected  java.util.Map _tablesMap
           
 
Constructor Summary
DBRevEngine()
          The DBRevEngine requires only a Namespace object to get the ball rolling.
 
Method Summary
protected abstract  void addAllTablesInPersistenceUnitImpl(java.util.Map fullTableMap)
          Override to add tables in the persistence unit that were mapped previously or externally.
protected abstract  void addDataSourcesInPersistenceUnitImpl(DBObjectProvider db)
           
 java.util.List generateComponents(Namespace namespace)
           
protected abstract  java.util.List generateComponentsImpl()
          Main impl callout.
protected  void initializeFromNamespace(Namespace namespace)
           
protected abstract  void initializeFromNamespaceImpl()
          Initialize implementation-specific fields from the namespace.
protected  void initializeTables()
          Construct a DBTable object for each table, and then add entries to _tablesMap to map each table name to its DBTable object.
protected  void print(java.lang.String text)
           
protected  void println(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_ns

protected Namespace _ns

_project

protected Project _project

_logToSystemOut

protected boolean _logToSystemOut

_printStream

protected java.io.PrintStream _printStream

_printWriter

protected java.io.PrintWriter _printWriter

_tablesMap

protected java.util.Map _tablesMap
Constructor Detail

DBRevEngine

public DBRevEngine()
The DBRevEngine requires only a Namespace object to get the ball rolling.

Method Detail

generateComponents

public java.util.List generateComponents(Namespace namespace)

generateComponentsImpl

protected abstract java.util.List generateComponentsImpl()
Main impl callout. Generate persistence components in this method.

Parameters:
save -

initializeFromNamespace

protected void initializeFromNamespace(Namespace namespace)

initializeFromNamespaceImpl

protected abstract void initializeFromNamespaceImpl()
Initialize implementation-specific fields from the namespace.


initializeTables

protected void initializeTables()
Construct a DBTable object for each table, and then add entries to _tablesMap to map each table name to its DBTable object.


addAllTablesInPersistenceUnitImpl

protected abstract void addAllTablesInPersistenceUnitImpl(java.util.Map fullTableMap)
Override to add tables in the persistence unit that were mapped previously or externally.

Parameters:
fullTableMap - the current table set for reverse engineering into Java objects

print

protected void print(java.lang.String text)

println

protected void println(java.lang.String text)

addDataSourcesInPersistenceUnitImpl

protected abstract void addDataSourcesInPersistenceUnitImpl(DBObjectProvider db)

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.