blob: 88a6ed32fc59d429712800fa3c24d98cc7ce0e49 [file] [log] [blame]
<!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_112) on Mon Oct 14 11:36:11 MSK 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DbGenerator (cayenne-doc: Cayenne Documentation 4.0.2 API)</title>
<meta name="date" content="2019-10-14">
<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="DbGenerator (cayenne-doc: Cayenne Documentation 4.0.2 API)";
}
}
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};
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="class-use/DbGenerator.html">Use</a></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>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/cayenne/access/DataRowStoreFactory.html" title="interface in org.apache.cayenne.access"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/cayenne/access/DefaultDataRowStoreFactory.html" title="class in org.apache.cayenne.access"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/cayenne/access/DbGenerator.html" target="_top">Frames</a></li>
<li><a href="DbGenerator.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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.apache.cayenne.access</div>
<h2 title="Class DbGenerator" class="title">Class DbGenerator</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/7/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.apache.cayenne.access.DbGenerator</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">DbGenerator</span>
extends <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block">Utility class that generates database schema based on Cayenne mapping. It is
a logical counterpart of DbLoader class.</div>
</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">&nbsp;</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="../../../../org/apache/cayenne/dba/DbAdapter.html" title="interface in org.apache.cayenne.dba">DbAdapter</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#adapter">adapter</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/7/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/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#createConstraints">createConstraints</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#createPK">createPK</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/7/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/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#createTables">createTables</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../org/apache/cayenne/map/DbEntity.html" title="class in org.apache.cayenne.map">DbEntity</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#dbEntitiesInInsertOrder">dbEntitiesInInsertOrder</a></span></code>
<div class="block">Contains all DbEntities ordered considering their interdependencies.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../org/apache/cayenne/map/DbEntity.html" title="class in org.apache.cayenne.map">DbEntity</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#dbEntitiesRequiringAutoPK">dbEntitiesRequiringAutoPK</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../org/apache/cayenne/access/DataDomain.html" title="class in org.apache.cayenne.access">DataDomain</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#domain">domain</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#dropPK">dropPK</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/7/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/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#dropTables">dropTables</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../org/apache/cayenne/validation/ValidationResult.html" title="class in org.apache.cayenne.validation">ValidationResult</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#failures">failures</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../org/apache/cayenne/log/JdbcEventLogger.html" title="interface in org.apache.cayenne.log">JdbcEventLogger</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#jdbcEventLogger">jdbcEventLogger</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../org/apache/cayenne/map/DataMap.html" title="class in org.apache.cayenne.map">DataMap</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#map">map</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#shouldCreateFKConstraints">shouldCreateFKConstraints</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#shouldCreatePKSupport">shouldCreatePKSupport</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#shouldCreateTables">shouldCreateTables</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#shouldDropPKSupport">shouldDropPKSupport</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#shouldDropTables">shouldDropTables</a></span></code>&nbsp;</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">&nbsp;</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/apache/cayenne/access/DbGenerator.html#DbGenerator-org.apache.cayenne.dba.DbAdapter-org.apache.cayenne.map.DataMap-java.util.Collection-org.apache.cayenne.access.DataDomain-org.apache.cayenne.log.JdbcEventLogger-">DbGenerator</a></span>(<a href="../../../../org/apache/cayenne/dba/DbAdapter.html" title="interface in org.apache.cayenne.dba">DbAdapter</a>&nbsp;adapter,
<a href="../../../../org/apache/cayenne/map/DataMap.html" title="class in org.apache.cayenne.map">DataMap</a>&nbsp;map,
<a href="https://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="../../../../org/apache/cayenne/map/DbEntity.html" title="class in org.apache.cayenne.map">DbEntity</a>&gt;&nbsp;excludedEntities,
<a href="../../../../org/apache/cayenne/access/DataDomain.html" title="class in org.apache.cayenne.access">DataDomain</a>&nbsp;domain,
<a href="../../../../org/apache/cayenne/log/JdbcEventLogger.html" title="interface in org.apache.cayenne.log">JdbcEventLogger</a>&nbsp;logger)</code>
<div class="block">Creates and initializes new DbGenerator instance.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#DbGenerator-org.apache.cayenne.dba.DbAdapter-org.apache.cayenne.map.DataMap-org.apache.cayenne.log.JdbcEventLogger-">DbGenerator</a></span>(<a href="../../../../org/apache/cayenne/dba/DbAdapter.html" title="interface in org.apache.cayenne.dba">DbAdapter</a>&nbsp;adapter,
<a href="../../../../org/apache/cayenne/map/DataMap.html" title="class in org.apache.cayenne.map">DataMap</a>&nbsp;map,
<a href="../../../../org/apache/cayenne/log/JdbcEventLogger.html" title="interface in org.apache.cayenne.log">JdbcEventLogger</a>&nbsp;logger)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#DbGenerator-org.apache.cayenne.dba.DbAdapter-org.apache.cayenne.map.DataMap-org.apache.cayenne.log.JdbcEventLogger-java.util.Collection-">DbGenerator</a></span>(<a href="../../../../org/apache/cayenne/dba/DbAdapter.html" title="interface in org.apache.cayenne.dba">DbAdapter</a>&nbsp;adapter,
<a href="../../../../org/apache/cayenne/map/DataMap.html" title="class in org.apache.cayenne.map">DataMap</a>&nbsp;map,
<a href="../../../../org/apache/cayenne/log/JdbcEventLogger.html" title="interface in org.apache.cayenne.log">JdbcEventLogger</a>&nbsp;logger,
<a href="https://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="../../../../org/apache/cayenne/map/DbEntity.html" title="class in org.apache.cayenne.map">DbEntity</a>&gt;&nbsp;excludedEntities)</code>&nbsp;</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">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</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/apache/cayenne/access/DbGenerator.html#buildStatements--">buildStatements</a></span>()</code>
<div class="block">Creates and stores internally a set of statements for database schema
creation, ignoring configured schema creation preferences.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#configuredStatements--">configuredStatements</a></span>()</code>
<div class="block">Returns a list of all schema statements that should be executed with the
current configuration.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#createConstraintsQueries-org.apache.cayenne.map.DbEntity-">createConstraintsQueries</a></span>(<a href="../../../../org/apache/cayenne/map/DbEntity.html" title="class in org.apache.cayenne.map">DbEntity</a>&nbsp;table)</code>
<div class="block">Creates FK and UNIQUE constraint statements for a given table.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/cayenne/dba/DbAdapter.html" title="interface in org.apache.cayenne.dba">DbAdapter</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#getAdapter--">getAdapter</a></span>()</code>
<div class="block">Returns DbAdapter associated with this DbGenerator.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/cayenne/access/DataDomain.html" title="class in org.apache.cayenne.access">DataDomain</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#getDomain--">getDomain</a></span>()</code>
<div class="block">Returns a DataDomain used by the DbGenerator to detect cross-database
relationships.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/cayenne/validation/ValidationResult.html" title="class in org.apache.cayenne.validation">ValidationResult</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#getFailures--">getFailures</a></span>()</code>
<div class="block">Returns an object representing a collection of failures that occurred on
the last "runGenerator" invocation, or null if there were no failures.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#isEmpty-boolean-">isEmpty</a></span>(boolean&nbsp;respectConfiguredSettings)</code>
<div class="block">Returns <code>true</code> if there is nothing to be done by this
generator.</div>
</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/apache/cayenne/access/DbGenerator.html#resetToDefaults--">resetToDefaults</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#runGenerator-javax.sql.DataSource-">runGenerator</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/javax/sql/DataSource.html?is-external=true" title="class or interface in javax.sql">DataSource</a>&nbsp;ds)</code>
<div class="block">Executes a set of commands to drop/create database objects.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#runGenerator-org.apache.cayenne.conn.DataSourceInfo-">runGenerator</a></span>(<a href="../../../../org/apache/cayenne/conn/DataSourceInfo.html" title="class in org.apache.cayenne.conn">DataSourceInfo</a>&nbsp;dsi)</code>
<div class="block">Creates a temporary DataSource out of DataSourceInfo and invokes
<code>public void runGenerator(DataSource ds)</code>.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#safeExecute-java.sql.Connection-java.lang.String-">safeExecute</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/sql/Connection.html?is-external=true" title="class or interface in java.sql">Connection</a>&nbsp;connection,
<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;sql)</code>
<div class="block">Builds and executes a SQL statement, catching and storing SQL exceptions
resulting from invalid SQL.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#setShouldCreateFKConstraints-boolean-">setShouldCreateFKConstraints</a></span>(boolean&nbsp;shouldCreateFKConstraints)</code>&nbsp;</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#setShouldCreatePKSupport-boolean-">setShouldCreatePKSupport</a></span>(boolean&nbsp;shouldCreatePKSupport)</code>&nbsp;</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#setShouldCreateTables-boolean-">setShouldCreateTables</a></span>(boolean&nbsp;shouldCreateTables)</code>&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#setShouldDropPKSupport-boolean-">setShouldDropPKSupport</a></span>(boolean&nbsp;shouldDropPKSupport)</code>&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#setShouldDropTables-boolean-">setShouldDropTables</a></span>(boolean&nbsp;shouldDropTables)</code>&nbsp;</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#shouldCreateFKConstraints--">shouldCreateFKConstraints</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#shouldCreatePKSupport--">shouldCreatePKSupport</a></span>()</code>
<div class="block">Returns whether DbGenerator is configured to create primary key support
for DataMap entities.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#shouldCreateTables--">shouldCreateTables</a></span>()</code>
<div class="block">Returns whether DbGenerator is configured to create tables for DataMap
entities.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#shouldDropPKSupport--">shouldDropPKSupport</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/cayenne/access/DbGenerator.html#shouldDropTables--">shouldDropTables</a></span>()</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/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="adapter">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>adapter</h4>
<pre>protected&nbsp;<a href="../../../../org/apache/cayenne/dba/DbAdapter.html" title="interface in org.apache.cayenne.dba">DbAdapter</a> adapter</pre>
</li>
</ul>
<a name="map">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>map</h4>
<pre>protected&nbsp;<a href="../../../../org/apache/cayenne/map/DataMap.html" title="class in org.apache.cayenne.map">DataMap</a> map</pre>
</li>
</ul>
<a name="domain">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>domain</h4>
<pre>protected&nbsp;<a href="../../../../org/apache/cayenne/access/DataDomain.html" title="class in org.apache.cayenne.access">DataDomain</a> domain</pre>
</li>
</ul>
<a name="jdbcEventLogger">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>jdbcEventLogger</h4>
<pre>protected&nbsp;<a href="../../../../org/apache/cayenne/log/JdbcEventLogger.html" title="interface in org.apache.cayenne.log">JdbcEventLogger</a> jdbcEventLogger</pre>
</li>
</ul>
<a name="dropTables">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dropTables</h4>
<pre>protected&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/7/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/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&gt; dropTables</pre>
</li>
</ul>
<a name="createTables">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createTables</h4>
<pre>protected&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/7/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/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt; createTables</pre>
</li>
</ul>
<a name="createConstraints">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createConstraints</h4>
<pre>protected&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/7/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/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&gt; createConstraints</pre>
</li>
</ul>
<a name="createPK">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createPK</h4>
<pre>protected&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt; createPK</pre>
</li>
</ul>
<a name="dropPK">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dropPK</h4>
<pre>protected&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt; dropPK</pre>
</li>
</ul>
<a name="dbEntitiesInInsertOrder">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dbEntitiesInInsertOrder</h4>
<pre>protected&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../org/apache/cayenne/map/DbEntity.html" title="class in org.apache.cayenne.map">DbEntity</a>&gt; dbEntitiesInInsertOrder</pre>
<div class="block">Contains all DbEntities ordered considering their interdependencies.
DerivedDbEntities are filtered out of this list.</div>
</li>
</ul>
<a name="dbEntitiesRequiringAutoPK">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dbEntitiesRequiringAutoPK</h4>
<pre>protected&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="../../../../org/apache/cayenne/map/DbEntity.html" title="class in org.apache.cayenne.map">DbEntity</a>&gt; dbEntitiesRequiringAutoPK</pre>
</li>
</ul>
<a name="shouldDropTables">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shouldDropTables</h4>
<pre>protected&nbsp;boolean shouldDropTables</pre>
</li>
</ul>
<a name="shouldCreateTables">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shouldCreateTables</h4>
<pre>protected&nbsp;boolean shouldCreateTables</pre>
</li>
</ul>
<a name="shouldDropPKSupport">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shouldDropPKSupport</h4>
<pre>protected&nbsp;boolean shouldDropPKSupport</pre>
</li>
</ul>
<a name="shouldCreatePKSupport">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shouldCreatePKSupport</h4>
<pre>protected&nbsp;boolean shouldCreatePKSupport</pre>
</li>
</ul>
<a name="shouldCreateFKConstraints">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shouldCreateFKConstraints</h4>
<pre>protected&nbsp;boolean shouldCreateFKConstraints</pre>
</li>
</ul>
<a name="failures">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>failures</h4>
<pre>protected&nbsp;<a href="../../../../org/apache/cayenne/validation/ValidationResult.html" title="class in org.apache.cayenne.validation">ValidationResult</a> failures</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="DbGenerator-org.apache.cayenne.dba.DbAdapter-org.apache.cayenne.map.DataMap-org.apache.cayenne.log.JdbcEventLogger-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DbGenerator</h4>
<pre>public&nbsp;DbGenerator(<a href="../../../../org/apache/cayenne/dba/DbAdapter.html" title="interface in org.apache.cayenne.dba">DbAdapter</a>&nbsp;adapter,
<a href="../../../../org/apache/cayenne/map/DataMap.html" title="class in org.apache.cayenne.map">DataMap</a>&nbsp;map,
<a href="../../../../org/apache/cayenne/log/JdbcEventLogger.html" title="interface in org.apache.cayenne.log">JdbcEventLogger</a>&nbsp;logger)</pre>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>3.1</dd>
</dl>
</li>
</ul>
<a name="DbGenerator-org.apache.cayenne.dba.DbAdapter-org.apache.cayenne.map.DataMap-org.apache.cayenne.log.JdbcEventLogger-java.util.Collection-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DbGenerator</h4>
<pre>public&nbsp;DbGenerator(<a href="../../../../org/apache/cayenne/dba/DbAdapter.html" title="interface in org.apache.cayenne.dba">DbAdapter</a>&nbsp;adapter,
<a href="../../../../org/apache/cayenne/map/DataMap.html" title="class in org.apache.cayenne.map">DataMap</a>&nbsp;map,
<a href="../../../../org/apache/cayenne/log/JdbcEventLogger.html" title="interface in org.apache.cayenne.log">JdbcEventLogger</a>&nbsp;logger,
<a href="https://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="../../../../org/apache/cayenne/map/DbEntity.html" title="class in org.apache.cayenne.map">DbEntity</a>&gt;&nbsp;excludedEntities)</pre>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>3.1</dd>
</dl>
</li>
</ul>
<a name="DbGenerator-org.apache.cayenne.dba.DbAdapter-org.apache.cayenne.map.DataMap-java.util.Collection-org.apache.cayenne.access.DataDomain-org.apache.cayenne.log.JdbcEventLogger-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>DbGenerator</h4>
<pre>public&nbsp;DbGenerator(<a href="../../../../org/apache/cayenne/dba/DbAdapter.html" title="interface in org.apache.cayenne.dba">DbAdapter</a>&nbsp;adapter,
<a href="../../../../org/apache/cayenne/map/DataMap.html" title="class in org.apache.cayenne.map">DataMap</a>&nbsp;map,
<a href="https://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<a href="../../../../org/apache/cayenne/map/DbEntity.html" title="class in org.apache.cayenne.map">DbEntity</a>&gt;&nbsp;excludedEntities,
<a href="../../../../org/apache/cayenne/access/DataDomain.html" title="class in org.apache.cayenne.access">DataDomain</a>&nbsp;domain,
<a href="../../../../org/apache/cayenne/log/JdbcEventLogger.html" title="interface in org.apache.cayenne.log">JdbcEventLogger</a>&nbsp;logger)</pre>
<div class="block">Creates and initializes new DbGenerator instance.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>adapter</code> - DbAdapter corresponding to the database</dd>
<dd><code>map</code> - DataMap whose entities will be used in schema generation</dd>
<dd><code>excludedEntities</code> - entities that should be ignored during schema generation</dd>
<dd><code>domain</code> - optional DataDomain used to detect cross-database
relationships.</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>3.1</dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="resetToDefaults--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>resetToDefaults</h4>
<pre>protected&nbsp;void&nbsp;resetToDefaults()</pre>
</li>
</ul>
<a name="buildStatements--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>buildStatements</h4>
<pre>protected&nbsp;void&nbsp;buildStatements()</pre>
<div class="block">Creates and stores internally a set of statements for database schema
creation, ignoring configured schema creation preferences. Statements are
NOT executed in this method.</div>
</li>
</ul>
<a name="isEmpty-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isEmpty</h4>
<pre>public&nbsp;boolean&nbsp;isEmpty(boolean&nbsp;respectConfiguredSettings)</pre>
<div class="block">Returns <code>true</code> if there is nothing to be done by this
generator. If <code>respectConfiguredSettings</code> is <code>true</code>
, checks are done applying currently configured settings, otherwise check
is done, assuming that all possible generated objects.</div>
</li>
</ul>
<a name="getAdapter--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAdapter</h4>
<pre>public&nbsp;<a href="../../../../org/apache/cayenne/dba/DbAdapter.html" title="interface in org.apache.cayenne.dba">DbAdapter</a>&nbsp;getAdapter()</pre>
<div class="block">Returns DbAdapter associated with this DbGenerator.</div>
</li>
</ul>
<a name="configuredStatements--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>configuredStatements</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;configuredStatements()</pre>
<div class="block">Returns a list of all schema statements that should be executed with the
current configuration.</div>
</li>
</ul>
<a name="runGenerator-org.apache.cayenne.conn.DataSourceInfo-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>runGenerator</h4>
<pre>public&nbsp;void&nbsp;runGenerator(<a href="../../../../org/apache/cayenne/conn/DataSourceInfo.html" title="class in org.apache.cayenne.conn">DataSourceInfo</a>&nbsp;dsi)
throws <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Creates a temporary DataSource out of DataSourceInfo and invokes
<code>public void runGenerator(DataSource ds)</code>.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd>
</dl>
</li>
</ul>
<a name="runGenerator-javax.sql.DataSource-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>runGenerator</h4>
<pre>public&nbsp;void&nbsp;runGenerator(<a href="https://docs.oracle.com/javase/7/docs/api/javax/sql/DataSource.html?is-external=true" title="class or interface in javax.sql">DataSource</a>&nbsp;ds)
throws <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Executes a set of commands to drop/create database objects. This is the
main worker method of DbGenerator. Command set is built based on
pre-configured generator settings.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd>
</dl>
</li>
</ul>
<a name="safeExecute-java.sql.Connection-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>safeExecute</h4>
<pre>protected&nbsp;boolean&nbsp;safeExecute(<a href="https://docs.oracle.com/javase/7/docs/api/java/sql/Connection.html?is-external=true" title="class or interface in java.sql">Connection</a>&nbsp;connection,
<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;sql)
throws <a href="https://docs.oracle.com/javase/7/docs/api/java/sql/SQLException.html?is-external=true" title="class or interface in java.sql">SQLException</a></pre>
<div class="block">Builds and executes a SQL statement, catching and storing SQL exceptions
resulting from invalid SQL. Only non-recoverable exceptions are rethrown.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/sql/SQLException.html?is-external=true" title="class or interface in java.sql">SQLException</a></code></dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.1</dd>
</dl>
</li>
</ul>
<a name="createConstraintsQueries-org.apache.cayenne.map.DbEntity-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createConstraintsQueries</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a>&lt;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;&nbsp;createConstraintsQueries(<a href="../../../../org/apache/cayenne/map/DbEntity.html" title="class in org.apache.cayenne.map">DbEntity</a>&nbsp;table)</pre>
<div class="block">Creates FK and UNIQUE constraint statements for a given table.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>3.0</dd>
</dl>
</li>
</ul>
<a name="getFailures--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFailures</h4>
<pre>public&nbsp;<a href="../../../../org/apache/cayenne/validation/ValidationResult.html" title="class in org.apache.cayenne.validation">ValidationResult</a>&nbsp;getFailures()</pre>
<div class="block">Returns an object representing a collection of failures that occurred on
the last "runGenerator" invocation, or null if there were no failures.
Failures usually indicate problems with generated DDL (such as
"create...", "drop...", etc.) and usually happen due to the DataMap being
out of sync with the database.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.1</dd>
</dl>
</li>
</ul>
<a name="shouldCreatePKSupport--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shouldCreatePKSupport</h4>
<pre>public&nbsp;boolean&nbsp;shouldCreatePKSupport()</pre>
<div class="block">Returns whether DbGenerator is configured to create primary key support
for DataMap entities.</div>
</li>
</ul>
<a name="shouldCreateTables--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shouldCreateTables</h4>
<pre>public&nbsp;boolean&nbsp;shouldCreateTables()</pre>
<div class="block">Returns whether DbGenerator is configured to create tables for DataMap
entities.</div>
</li>
</ul>
<a name="shouldDropPKSupport--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shouldDropPKSupport</h4>
<pre>public&nbsp;boolean&nbsp;shouldDropPKSupport()</pre>
</li>
</ul>
<a name="shouldDropTables--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shouldDropTables</h4>
<pre>public&nbsp;boolean&nbsp;shouldDropTables()</pre>
</li>
</ul>
<a name="shouldCreateFKConstraints--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shouldCreateFKConstraints</h4>
<pre>public&nbsp;boolean&nbsp;shouldCreateFKConstraints()</pre>
</li>
</ul>
<a name="setShouldCreatePKSupport-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setShouldCreatePKSupport</h4>
<pre>public&nbsp;void&nbsp;setShouldCreatePKSupport(boolean&nbsp;shouldCreatePKSupport)</pre>
</li>
</ul>
<a name="setShouldCreateTables-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setShouldCreateTables</h4>
<pre>public&nbsp;void&nbsp;setShouldCreateTables(boolean&nbsp;shouldCreateTables)</pre>
</li>
</ul>
<a name="setShouldDropPKSupport-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setShouldDropPKSupport</h4>
<pre>public&nbsp;void&nbsp;setShouldDropPKSupport(boolean&nbsp;shouldDropPKSupport)</pre>
</li>
</ul>
<a name="setShouldDropTables-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setShouldDropTables</h4>
<pre>public&nbsp;void&nbsp;setShouldDropTables(boolean&nbsp;shouldDropTables)</pre>
</li>
</ul>
<a name="setShouldCreateFKConstraints-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setShouldCreateFKConstraints</h4>
<pre>public&nbsp;void&nbsp;setShouldCreateFKConstraints(boolean&nbsp;shouldCreateFKConstraints)</pre>
</li>
</ul>
<a name="getDomain--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getDomain</h4>
<pre>public&nbsp;<a href="../../../../org/apache/cayenne/access/DataDomain.html" title="class in org.apache.cayenne.access">DataDomain</a>&nbsp;getDomain()</pre>
<div class="block">Returns a DataDomain used by the DbGenerator to detect cross-database
relationships. By default DataDomain is null.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.2</dd>
</dl>
</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="class-use/DbGenerator.html">Use</a></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>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/cayenne/access/DataRowStoreFactory.html" title="interface in org.apache.cayenne.access"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/cayenne/access/DefaultDataRowStoreFactory.html" title="class in org.apache.cayenne.access"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/cayenne/access/DbGenerator.html" target="_top">Frames</a></li>
<li><a href="DbGenerator.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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 &#169; 2001&#x2013;2019 <a href="http://cayenne.apache.org/">Apache Cayenne</a>. All rights reserved.</small></p>
</body>
</html>