| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_222) on Tue Dec 08 12:28:32 UTC 2020 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>DefaultTableGenerator (EclipseLink 3.0.0, API Reference)</title> |
| <meta name="date" content="2020-12-08"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="DefaultTableGenerator (EclipseLink 3.0.0, API Reference)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| <div class="aboutLanguage">EclipseLink 3.0.0, API Reference</div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DatabaseObjectDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DynamicSchemaManager.html" title="class in org.eclipse.persistence.tools.schemaframework"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html" target="_top">Frames</a></li> |
| <li><a href="DefaultTableGenerator.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.eclipse.persistence.tools.schemaframework</div> |
| <h2 title="Class DefaultTableGenerator" class="title">Class DefaultTableGenerator</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.eclipse.persistence.tools.schemaframework.DefaultTableGenerator</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">DefaultTableGenerator</span> |
| extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> |
| <div class="block">DefaultTableGenerator is a utility class used to generate a default table schema for a EclipseLink project object. |
| |
| The utility can be used in EclipseLink CMP for OC4J to perform the table auto creation process, which can be triggered |
| at deployment time when EclipseLink project descriptor is absent (default mapping) or present. |
| |
| The utility can also be used to any EclipseLink application to perform the table drop/creation at runtime. |
| |
| The utility handles all direct/relational mappings, inheritance, multiple tables, interface with/without tables, |
| optimistic version/timestamp lockings, nested relationships, BLOB/CLOB generation. |
| |
| The utility is platform-agnostic. |
| |
| Usage: |
| - CMP |
| 1. set "autocreate-tables=true|false, autodelete-tables=true|false" in oc4j application deployment |
| descriptor files (config/system-application.xml, config/application.xml, or orion-application.xml in an .ear) |
| |
| 2. Default Mapping: the same as CMP, plus system properties setting -Declipselink.defaultmapping.autocreate-tables='true|false' |
| and -Declipselink.defaultmapping.autodelete-tables='true|false' |
| |
| - Non-CMP: |
| 1. Configuration: through sessions.xml |
| 2. Directly runtime call through schema framework: |
| SchemaManager mgr = new SchemaManager(session); |
| mgr.replaceDefaultTables(); //drop and create |
| mgr.createDefaultTables(); //create only |
| |
| The utility currently only supports relational project.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Author:</span></dt> |
| <dd>King Wang</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>Oracle TopLink 10.1.3</dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><org.eclipse.persistence.internal.helper.DatabaseField,org.eclipse.persistence.internal.helper.DatabaseField></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#databaseFields">databaseFields</a></span></code> |
| <div class="block">DatabaseField pool (synchronized with above 'fieldMap')</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected org.eclipse.persistence.internal.databaseaccess.DatabasePlatform</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#databasePlatform">databasePlatform</a></span></code> |
| <div class="block">the target database platform.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><org.eclipse.persistence.internal.helper.DatabaseField,<a href="../../../../../org/eclipse/persistence/tools/schemaframework/FieldDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework">FieldDefinition</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#fieldMap">fieldMap</a></span></code> |
| <div class="block">Used to track the field definition: keyed by the database field object, and |
| valued by the field definition.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#generateFKConstraints">generateFKConstraints</a></span></code> |
| <div class="block">When this flag is 'false' EclipseLink will not attempt to create fk constraints.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../../../org/eclipse/persistence/tools/schemaframework/TableDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework">TableDefinition</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#tableMap">tableMap</a></span></code> |
| <div class="block">Used to track the table definition: keyed by the table name, and valued |
| by the table definition object.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#DefaultTableGenerator-org.eclipse.persistence.sessions.Project-">DefaultTableGenerator</a></span>(<a href="../../../../../org/eclipse/persistence/sessions/Project.html" title="class in org.eclipse.persistence.sessions">Project</a> project)</code> |
| <div class="block">Default constructor</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#DefaultTableGenerator-org.eclipse.persistence.sessions.Project-boolean-">DefaultTableGenerator</a></span>(<a href="../../../../../org/eclipse/persistence/sessions/Project.html" title="class in org.eclipse.persistence.sessions">Project</a> project, |
| boolean generateFKConstraints)</code> |
| <div class="block">This constructor will create a DefaultTableGenerator that can be set to create fk |
| constraints</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#addFieldsForMappedKeyMapContainerPolicy-org.eclipse.persistence.internal.queries.ContainerPolicy-org.eclipse.persistence.tools.schemaframework.TableDefinition-">addFieldsForMappedKeyMapContainerPolicy</a></span>(org.eclipse.persistence.internal.queries.ContainerPolicy cp, |
| <a href="../../../../../org/eclipse/persistence/tools/schemaframework/TableDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework">TableDefinition</a> table)</code> |
| <div class="block">The ContainerPolicy may contain some additional fields that should be added to the table</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#addForeignKeyConstraint-org.eclipse.persistence.tools.schemaframework.TableDefinition-org.eclipse.persistence.tools.schemaframework.TableDefinition-java.util.List-java.util.List-boolean-">addForeignKeyConstraint</a></span>(<a href="../../../../../org/eclipse/persistence/tools/schemaframework/TableDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework">TableDefinition</a> sourceTableDef, |
| <a href="../../../../../org/eclipse/persistence/tools/schemaframework/TableDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework">TableDefinition</a> targetTableDef, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> fkFields, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> targetFields, |
| boolean cascadeOnDelete)</code> |
| <div class="block">Add a foreign key constraint to the source table.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#addForeignKeyFieldToSourceTargetTable-org.eclipse.persistence.mappings.OneToManyMapping-">addForeignKeyFieldToSourceTargetTable</a></span>(<a href="../../../../../org/eclipse/persistence/mappings/OneToManyMapping.html" title="class in org.eclipse.persistence.mappings">OneToManyMapping</a> mapping)</code> </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#addForeignKeyFieldToSourceTargetTable-org.eclipse.persistence.mappings.OneToOneMapping-">addForeignKeyFieldToSourceTargetTable</a></span>(<a href="../../../../../org/eclipse/persistence/mappings/OneToOneMapping.html" title="class in org.eclipse.persistence.mappings">OneToOneMapping</a> mapping)</code> </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#addForeignMappingFkConstraint-java.util.Map-boolean-">addForeignMappingFkConstraint</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><org.eclipse.persistence.internal.helper.DatabaseField,org.eclipse.persistence.internal.helper.DatabaseField> srcFields, |
| boolean cascadeOnDelete)</code> </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#addJoinColumnsFkConstraint-java.util.List-java.util.List-boolean-">addJoinColumnsFkConstraint</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><org.eclipse.persistence.internal.helper.DatabaseField> fkFields, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><org.eclipse.persistence.internal.helper.DatabaseField> targetFields, |
| boolean cascadeOnDelete)</code> </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#addUniqueKeyConstraints-org.eclipse.persistence.tools.schemaframework.TableDefinition-java.util.Map-">addUniqueKeyConstraints</a></span>(<a href="../../../../../org/eclipse/persistence/tools/schemaframework/TableDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework">TableDefinition</a> sourceTableDef, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>>>> uniqueConstraintsMap)</code> </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#buildDirectCollectionTableDefinition-org.eclipse.persistence.mappings.DirectCollectionMapping-org.eclipse.persistence.descriptors.ClassDescriptor-">buildDirectCollectionTableDefinition</a></span>(<a href="../../../../../org/eclipse/persistence/mappings/DirectCollectionMapping.html" title="class in org.eclipse.persistence.mappings">DirectCollectionMapping</a> mapping, |
| <a href="../../../../../org/eclipse/persistence/descriptors/ClassDescriptor.html" title="class in org.eclipse.persistence.descriptors">ClassDescriptor</a> descriptor)</code> |
| <div class="block">Build direct collection table definitions in a EclipseLink descriptor</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#buildRelationTableDefinition-org.eclipse.persistence.mappings.ForeignReferenceMapping-org.eclipse.persistence.mappings.RelationTableMechanism-org.eclipse.persistence.internal.helper.DatabaseField-org.eclipse.persistence.internal.queries.ContainerPolicy-">buildRelationTableDefinition</a></span>(<a href="../../../../../org/eclipse/persistence/mappings/ForeignReferenceMapping.html" title="class in org.eclipse.persistence.mappings">ForeignReferenceMapping</a> mapping, |
| <a href="../../../../../org/eclipse/persistence/mappings/RelationTableMechanism.html" title="class in org.eclipse.persistence.mappings">RelationTableMechanism</a> relationTableMechanism, |
| org.eclipse.persistence.internal.helper.DatabaseField listOrderField, |
| org.eclipse.persistence.internal.queries.ContainerPolicy cp)</code> |
| <div class="block">Build relation table definitions for all many-to-many relationships in a EclipseLink descriptor.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#buildRelationTableFields-org.eclipse.persistence.mappings.ForeignReferenceMapping-org.eclipse.persistence.tools.schemaframework.TableDefinition-java.util.List-java.util.List-">buildRelationTableFields</a></span>(<a href="../../../../../org/eclipse/persistence/mappings/ForeignReferenceMapping.html" title="class in org.eclipse.persistence.mappings">ForeignReferenceMapping</a> mapping, |
| <a href="../../../../../org/eclipse/persistence/tools/schemaframework/TableDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework">TableDefinition</a> table, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><org.eclipse.persistence.internal.helper.DatabaseField> fkFields, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><org.eclipse.persistence.internal.helper.DatabaseField> targetFields)</code> |
| <div class="block">Build field definitions and foreign key constraints for all many-to-many relation table.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#createAggregateTargetTable-org.eclipse.persistence.mappings.AggregateCollectionMapping-">createAggregateTargetTable</a></span>(<a href="../../../../../org/eclipse/persistence/mappings/AggregateCollectionMapping.html" title="class in org.eclipse.persistence.mappings">AggregateCollectionMapping</a> mapping)</code> |
| <div class="block">Add the foreign key to the aggregate collection mapping target table.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/eclipse/persistence/tools/schemaframework/TableCreator.html" title="class in org.eclipse.persistence.tools.schemaframework">TableCreator</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#generateDefaultTableCreator--">generateDefaultTableCreator</a></span>()</code> |
| <div class="block">Generate a default TableCreator object from the EclipseLink project object.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/eclipse/persistence/tools/schemaframework/TableCreator.html" title="class in org.eclipse.persistence.tools.schemaframework">TableCreator</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#generateFilteredDefaultTableCreator-org.eclipse.persistence.internal.sessions.AbstractSession-">generateFilteredDefaultTableCreator</a></span>(org.eclipse.persistence.internal.sessions.AbstractSession session)</code> |
| <div class="block">Generate a default TableCreator object from the EclipseLink project object, |
| and perform the table existence check through jdbc table metadata, and filter out |
| tables which are already in the database.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../../../../../org/eclipse/persistence/tools/schemaframework/FieldDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework">FieldDefinition</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#getFieldDefFromDBField-org.eclipse.persistence.internal.helper.DatabaseField-">getFieldDefFromDBField</a></span>(org.eclipse.persistence.internal.helper.DatabaseField dbField)</code> |
| <div class="block">Build a field definition object from a database field.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../../../../org/eclipse/persistence/tools/schemaframework/TableDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework">TableDefinition</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#getTableDefFromDBTable-org.eclipse.persistence.internal.helper.DatabaseTable-">getTableDefFromDBTable</a></span>(org.eclipse.persistence.internal.helper.DatabaseTable databaseTable)</code> |
| <div class="block">Build a table definition object from a database table object</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#initTableSchema-org.eclipse.persistence.descriptors.ClassDescriptor-">initTableSchema</a></span>(<a href="../../../../../org/eclipse/persistence/descriptors/ClassDescriptor.html" title="class in org.eclipse.persistence.descriptors">ClassDescriptor</a> descriptor)</code> |
| <div class="block">Build tables/fields information into the table creator object from a EclipseLink descriptor.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#postInitTableSchema-org.eclipse.persistence.descriptors.ClassDescriptor-">postInitTableSchema</a></span>(<a href="../../../../../org/eclipse/persistence/descriptors/ClassDescriptor.html" title="class in org.eclipse.persistence.descriptors">ClassDescriptor</a> descriptor)</code> |
| <div class="block">Build additional table/field definitions for the descriptor, like relation table |
| and direct-collection, direct-map table, as well as reset LOB type for serialized |
| object mapping and type conversion mapping for LOB usage</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#processAdditionalTablePkFields-org.eclipse.persistence.descriptors.ClassDescriptor-">processAdditionalTablePkFields</a></span>(<a href="../../../../../org/eclipse/persistence/descriptors/ClassDescriptor.html" title="class in org.eclipse.persistence.descriptors">ClassDescriptor</a> descriptor)</code> </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#resetFieldTypeForLOB-org.eclipse.persistence.mappings.DirectToFieldMapping-">resetFieldTypeForLOB</a></span>(<a href="../../../../../org/eclipse/persistence/mappings/DirectToFieldMapping.html" title="class in org.eclipse.persistence.mappings">DirectToFieldMapping</a> mapping)</code> |
| <div class="block">Reset field type to use BLOB/CLOB with type conversion mapping fix for 4k oracle thin driver bug.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#resetTransformedFieldType-org.eclipse.persistence.mappings.TransformationMapping-">resetTransformedFieldType</a></span>(<a href="../../../../../org/eclipse/persistence/mappings/TransformationMapping.html" title="class in org.eclipse.persistence.mappings">TransformationMapping</a> mapping)</code> |
| <div class="block">Reset the transformation mapping field types</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>protected org.eclipse.persistence.internal.helper.DatabaseField</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#resolveDatabaseField-org.eclipse.persistence.internal.helper.DatabaseField-org.eclipse.persistence.internal.helper.DatabaseField-">resolveDatabaseField</a></span>(org.eclipse.persistence.internal.helper.DatabaseField childField, |
| org.eclipse.persistence.internal.helper.DatabaseField parentField)</code> |
| <div class="block">Resolve the foreign key database field metadata in relation table or direct collection/map table.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>protected void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html#setFieldToRelationTable-org.eclipse.persistence.internal.helper.DatabaseField-org.eclipse.persistence.tools.schemaframework.TableDefinition-">setFieldToRelationTable</a></span>(org.eclipse.persistence.internal.helper.DatabaseField dbField, |
| <a href="../../../../../org/eclipse/persistence/tools/schemaframework/TableDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework">TableDefinition</a> table)</code> |
| <div class="block">Build and add a field definition object to relation table</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="databasePlatform"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>databasePlatform</h4> |
| <pre>protected org.eclipse.persistence.internal.databaseaccess.DatabasePlatform databasePlatform</pre> |
| <div class="block">the target database platform.</div> |
| </li> |
| </ul> |
| <a name="tableMap"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>tableMap</h4> |
| <pre>protected <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../../../org/eclipse/persistence/tools/schemaframework/TableDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework">TableDefinition</a>> tableMap</pre> |
| <div class="block">Used to track the table definition: keyed by the table name, and valued |
| by the table definition object.</div> |
| </li> |
| </ul> |
| <a name="fieldMap"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>fieldMap</h4> |
| <pre>protected <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><org.eclipse.persistence.internal.helper.DatabaseField,<a href="../../../../../org/eclipse/persistence/tools/schemaframework/FieldDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework">FieldDefinition</a>> fieldMap</pre> |
| <div class="block">Used to track the field definition: keyed by the database field object, and |
| valued by the field definition.</div> |
| </li> |
| </ul> |
| <a name="databaseFields"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>databaseFields</h4> |
| <pre>protected <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><org.eclipse.persistence.internal.helper.DatabaseField,org.eclipse.persistence.internal.helper.DatabaseField> databaseFields</pre> |
| <div class="block">DatabaseField pool (synchronized with above 'fieldMap')</div> |
| </li> |
| </ul> |
| <a name="generateFKConstraints"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>generateFKConstraints</h4> |
| <pre>protected boolean generateFKConstraints</pre> |
| <div class="block">When this flag is 'false' EclipseLink will not attempt to create fk constraints.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="DefaultTableGenerator-org.eclipse.persistence.sessions.Project-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DefaultTableGenerator</h4> |
| <pre>public DefaultTableGenerator(<a href="../../../../../org/eclipse/persistence/sessions/Project.html" title="class in org.eclipse.persistence.sessions">Project</a> project)</pre> |
| <div class="block">Default constructor</div> |
| </li> |
| </ul> |
| <a name="DefaultTableGenerator-org.eclipse.persistence.sessions.Project-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>DefaultTableGenerator</h4> |
| <pre>public DefaultTableGenerator(<a href="../../../../../org/eclipse/persistence/sessions/Project.html" title="class in org.eclipse.persistence.sessions">Project</a> project, |
| boolean generateFKConstraints)</pre> |
| <div class="block">This constructor will create a DefaultTableGenerator that can be set to create fk |
| constraints</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="generateDefaultTableCreator--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>generateDefaultTableCreator</h4> |
| <pre>public <a href="../../../../../org/eclipse/persistence/tools/schemaframework/TableCreator.html" title="class in org.eclipse.persistence.tools.schemaframework">TableCreator</a> generateDefaultTableCreator()</pre> |
| <div class="block">Generate a default TableCreator object from the EclipseLink project object.</div> |
| </li> |
| </ul> |
| <a name="generateFilteredDefaultTableCreator-org.eclipse.persistence.internal.sessions.AbstractSession-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>generateFilteredDefaultTableCreator</h4> |
| <pre>public <a href="../../../../../org/eclipse/persistence/tools/schemaframework/TableCreator.html" title="class in org.eclipse.persistence.tools.schemaframework">TableCreator</a> generateFilteredDefaultTableCreator(org.eclipse.persistence.internal.sessions.AbstractSession session) |
| throws <a href="../../../../../org/eclipse/persistence/exceptions/DatabaseException.html" title="class in org.eclipse.persistence.exceptions">DatabaseException</a></pre> |
| <div class="block">Generate a default TableCreator object from the EclipseLink project object, |
| and perform the table existence check through jdbc table metadata, and filter out |
| tables which are already in the database.</div> |
| <dl> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/eclipse/persistence/exceptions/DatabaseException.html" title="class in org.eclipse.persistence.exceptions">DatabaseException</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="initTableSchema-org.eclipse.persistence.descriptors.ClassDescriptor-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>initTableSchema</h4> |
| <pre>protected void initTableSchema(<a href="../../../../../org/eclipse/persistence/descriptors/ClassDescriptor.html" title="class in org.eclipse.persistence.descriptors">ClassDescriptor</a> descriptor)</pre> |
| <div class="block">Build tables/fields information into the table creator object from a EclipseLink descriptor. |
| This should handle most of the direct/relational mappings except many-to-many and direct |
| collection/map mappings, which must be down in postInit method.</div> |
| </li> |
| </ul> |
| <a name="postInitTableSchema-org.eclipse.persistence.descriptors.ClassDescriptor-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>postInitTableSchema</h4> |
| <pre>protected void postInitTableSchema(<a href="../../../../../org/eclipse/persistence/descriptors/ClassDescriptor.html" title="class in org.eclipse.persistence.descriptors">ClassDescriptor</a> descriptor)</pre> |
| <div class="block">Build additional table/field definitions for the descriptor, like relation table |
| and direct-collection, direct-map table, as well as reset LOB type for serialized |
| object mapping and type conversion mapping for LOB usage</div> |
| </li> |
| </ul> |
| <a name="addFieldsForMappedKeyMapContainerPolicy-org.eclipse.persistence.internal.queries.ContainerPolicy-org.eclipse.persistence.tools.schemaframework.TableDefinition-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addFieldsForMappedKeyMapContainerPolicy</h4> |
| <pre>protected void addFieldsForMappedKeyMapContainerPolicy(org.eclipse.persistence.internal.queries.ContainerPolicy cp, |
| <a href="../../../../../org/eclipse/persistence/tools/schemaframework/TableDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework">TableDefinition</a> table)</pre> |
| <div class="block">The ContainerPolicy may contain some additional fields that should be added to the table</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>MappedKeyMapContainerPolicy</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="buildRelationTableDefinition-org.eclipse.persistence.mappings.ForeignReferenceMapping-org.eclipse.persistence.mappings.RelationTableMechanism-org.eclipse.persistence.internal.helper.DatabaseField-org.eclipse.persistence.internal.queries.ContainerPolicy-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>buildRelationTableDefinition</h4> |
| <pre>protected void buildRelationTableDefinition(<a href="../../../../../org/eclipse/persistence/mappings/ForeignReferenceMapping.html" title="class in org.eclipse.persistence.mappings">ForeignReferenceMapping</a> mapping, |
| <a href="../../../../../org/eclipse/persistence/mappings/RelationTableMechanism.html" title="class in org.eclipse.persistence.mappings">RelationTableMechanism</a> relationTableMechanism, |
| org.eclipse.persistence.internal.helper.DatabaseField listOrderField, |
| org.eclipse.persistence.internal.queries.ContainerPolicy cp)</pre> |
| <div class="block">Build relation table definitions for all many-to-many relationships in a EclipseLink descriptor.</div> |
| </li> |
| </ul> |
| <a name="buildRelationTableFields-org.eclipse.persistence.mappings.ForeignReferenceMapping-org.eclipse.persistence.tools.schemaframework.TableDefinition-java.util.List-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>buildRelationTableFields</h4> |
| <pre>protected void buildRelationTableFields(<a href="../../../../../org/eclipse/persistence/mappings/ForeignReferenceMapping.html" title="class in org.eclipse.persistence.mappings">ForeignReferenceMapping</a> mapping, |
| <a href="../../../../../org/eclipse/persistence/tools/schemaframework/TableDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework">TableDefinition</a> table, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><org.eclipse.persistence.internal.helper.DatabaseField> fkFields, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><org.eclipse.persistence.internal.helper.DatabaseField> targetFields)</pre> |
| <div class="block">Build field definitions and foreign key constraints for all many-to-many relation table.</div> |
| </li> |
| </ul> |
| <a name="buildDirectCollectionTableDefinition-org.eclipse.persistence.mappings.DirectCollectionMapping-org.eclipse.persistence.descriptors.ClassDescriptor-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>buildDirectCollectionTableDefinition</h4> |
| <pre>protected void buildDirectCollectionTableDefinition(<a href="../../../../../org/eclipse/persistence/mappings/DirectCollectionMapping.html" title="class in org.eclipse.persistence.mappings">DirectCollectionMapping</a> mapping, |
| <a href="../../../../../org/eclipse/persistence/descriptors/ClassDescriptor.html" title="class in org.eclipse.persistence.descriptors">ClassDescriptor</a> descriptor)</pre> |
| <div class="block">Build direct collection table definitions in a EclipseLink descriptor</div> |
| </li> |
| </ul> |
| <a name="resetFieldTypeForLOB-org.eclipse.persistence.mappings.DirectToFieldMapping-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>resetFieldTypeForLOB</h4> |
| <pre>protected void resetFieldTypeForLOB(<a href="../../../../../org/eclipse/persistence/mappings/DirectToFieldMapping.html" title="class in org.eclipse.persistence.mappings">DirectToFieldMapping</a> mapping)</pre> |
| <div class="block">Reset field type to use BLOB/CLOB with type conversion mapping fix for 4k oracle thin driver bug.</div> |
| </li> |
| </ul> |
| <a name="resetTransformedFieldType-org.eclipse.persistence.mappings.TransformationMapping-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>resetTransformedFieldType</h4> |
| <pre>protected void resetTransformedFieldType(<a href="../../../../../org/eclipse/persistence/mappings/TransformationMapping.html" title="class in org.eclipse.persistence.mappings">TransformationMapping</a> mapping)</pre> |
| <div class="block">Reset the transformation mapping field types</div> |
| </li> |
| </ul> |
| <a name="createAggregateTargetTable-org.eclipse.persistence.mappings.AggregateCollectionMapping-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createAggregateTargetTable</h4> |
| <pre>protected void createAggregateTargetTable(<a href="../../../../../org/eclipse/persistence/mappings/AggregateCollectionMapping.html" title="class in org.eclipse.persistence.mappings">AggregateCollectionMapping</a> mapping)</pre> |
| <div class="block">Add the foreign key to the aggregate collection mapping target table. |
| Also add listOrderField if specified.</div> |
| </li> |
| </ul> |
| <a name="addForeignKeyFieldToSourceTargetTable-org.eclipse.persistence.mappings.OneToOneMapping-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addForeignKeyFieldToSourceTargetTable</h4> |
| <pre>protected void addForeignKeyFieldToSourceTargetTable(<a href="../../../../../org/eclipse/persistence/mappings/OneToOneMapping.html" title="class in org.eclipse.persistence.mappings">OneToOneMapping</a> mapping)</pre> |
| </li> |
| </ul> |
| <a name="addForeignKeyFieldToSourceTargetTable-org.eclipse.persistence.mappings.OneToManyMapping-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addForeignKeyFieldToSourceTargetTable</h4> |
| <pre>protected void addForeignKeyFieldToSourceTargetTable(<a href="../../../../../org/eclipse/persistence/mappings/OneToManyMapping.html" title="class in org.eclipse.persistence.mappings">OneToManyMapping</a> mapping)</pre> |
| </li> |
| </ul> |
| <a name="addForeignMappingFkConstraint-java.util.Map-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addForeignMappingFkConstraint</h4> |
| <pre>protected void addForeignMappingFkConstraint(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><org.eclipse.persistence.internal.helper.DatabaseField,org.eclipse.persistence.internal.helper.DatabaseField> srcFields, |
| boolean cascadeOnDelete)</pre> |
| </li> |
| </ul> |
| <a name="getTableDefFromDBTable-org.eclipse.persistence.internal.helper.DatabaseTable-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getTableDefFromDBTable</h4> |
| <pre>protected <a href="../../../../../org/eclipse/persistence/tools/schemaframework/TableDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework">TableDefinition</a> getTableDefFromDBTable(org.eclipse.persistence.internal.helper.DatabaseTable databaseTable)</pre> |
| <div class="block">Build a table definition object from a database table object</div> |
| </li> |
| </ul> |
| <a name="resolveDatabaseField-org.eclipse.persistence.internal.helper.DatabaseField-org.eclipse.persistence.internal.helper.DatabaseField-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>resolveDatabaseField</h4> |
| <pre>protected org.eclipse.persistence.internal.helper.DatabaseField resolveDatabaseField(org.eclipse.persistence.internal.helper.DatabaseField childField, |
| org.eclipse.persistence.internal.helper.DatabaseField parentField)</pre> |
| <div class="block">Resolve the foreign key database field metadata in relation table or direct collection/map table. |
| Those metadata includes type, and maybe dbtype/size/subsize if DatabaseField carries those info.</div> |
| </li> |
| </ul> |
| <a name="getFieldDefFromDBField-org.eclipse.persistence.internal.helper.DatabaseField-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getFieldDefFromDBField</h4> |
| <pre>protected <a href="../../../../../org/eclipse/persistence/tools/schemaframework/FieldDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework">FieldDefinition</a> getFieldDefFromDBField(org.eclipse.persistence.internal.helper.DatabaseField dbField)</pre> |
| <div class="block">Build a field definition object from a database field.</div> |
| </li> |
| </ul> |
| <a name="setFieldToRelationTable-org.eclipse.persistence.internal.helper.DatabaseField-org.eclipse.persistence.tools.schemaframework.TableDefinition-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setFieldToRelationTable</h4> |
| <pre>protected void setFieldToRelationTable(org.eclipse.persistence.internal.helper.DatabaseField dbField, |
| <a href="../../../../../org/eclipse/persistence/tools/schemaframework/TableDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework">TableDefinition</a> table)</pre> |
| <div class="block">Build and add a field definition object to relation table</div> |
| </li> |
| </ul> |
| <a name="processAdditionalTablePkFields-org.eclipse.persistence.descriptors.ClassDescriptor-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>processAdditionalTablePkFields</h4> |
| <pre>protected void processAdditionalTablePkFields(<a href="../../../../../org/eclipse/persistence/descriptors/ClassDescriptor.html" title="class in org.eclipse.persistence.descriptors">ClassDescriptor</a> descriptor)</pre> |
| </li> |
| </ul> |
| <a name="addJoinColumnsFkConstraint-java.util.List-java.util.List-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addJoinColumnsFkConstraint</h4> |
| <pre>protected void addJoinColumnsFkConstraint(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><org.eclipse.persistence.internal.helper.DatabaseField> fkFields, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><org.eclipse.persistence.internal.helper.DatabaseField> targetFields, |
| boolean cascadeOnDelete)</pre> |
| </li> |
| </ul> |
| <a name="addForeignKeyConstraint-org.eclipse.persistence.tools.schemaframework.TableDefinition-org.eclipse.persistence.tools.schemaframework.TableDefinition-java.util.List-java.util.List-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addForeignKeyConstraint</h4> |
| <pre>protected void addForeignKeyConstraint(<a href="../../../../../org/eclipse/persistence/tools/schemaframework/TableDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework">TableDefinition</a> sourceTableDef, |
| <a href="../../../../../org/eclipse/persistence/tools/schemaframework/TableDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework">TableDefinition</a> targetTableDef, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> fkFields, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> targetFields, |
| boolean cascadeOnDelete)</pre> |
| <div class="block">Add a foreign key constraint to the source table.</div> |
| </li> |
| </ul> |
| <a name="addUniqueKeyConstraints-org.eclipse.persistence.tools.schemaframework.TableDefinition-java.util.Map-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>addUniqueKeyConstraints</h4> |
| <pre>protected void addUniqueKeyConstraints(<a href="../../../../../org/eclipse/persistence/tools/schemaframework/TableDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework">TableDefinition</a> sourceTableDef, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>>>> uniqueConstraintsMap)</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| <div class="aboutLanguage">EclipseLink 3.0.0, API Reference</div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DatabaseObjectDefinition.html" title="class in org.eclipse.persistence.tools.schemaframework"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/eclipse/persistence/tools/schemaframework/DynamicSchemaManager.html" title="class in org.eclipse.persistence.tools.schemaframework"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/eclipse/persistence/tools/schemaframework/DefaultTableGenerator.html" target="_top">Frames</a></li> |
| <li><a href="DefaultTableGenerator.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2007–2020 <a href="http://www.eclipse.org/eclipselink">Eclipse.org - EclipseLink Project</a>. All rights reserved.</small></p> |
| </body> |
| </html> |