blob: 63ec7eff61aaa9e7fc37dfaddbcd11300b392ca7 [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_121) on Fri Apr 14 22:12:45 PDT 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GenericJDBCDataModel (Mahout Integration 0.13.0 API)</title>
<meta name="date" content="2017-04-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="GenericJDBCDataModel (Mahout Integration 0.13.0 API)";
}
}
catch(err) {
}
//-->
</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/GenericJDBCDataModel.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/mahout/cf/taste/impl/model/jdbc/ConnectionPoolDataSource.html" title="class in org.apache.mahout.cf.taste.impl.model.jdbc"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/MySQLBooleanPrefJDBCDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model.jdbc"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../../index.html?org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html" target="_top">Frames</a></li>
<li><a href="GenericJDBCDataModel.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="#methods.inherited.from.class.org.apache.mahout.cf.taste.impl.model.jdbc.AbstractJDBCDataModel">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>Method</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.mahout.cf.taste.impl.model.jdbc</div>
<h2 title="Class GenericJDBCDataModel" class="title">Class GenericJDBCDataModel</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://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><a href="http://mahout.apache.org/mahout-mr/apidocs/org/apache/mahout/cf/taste/impl/common/jdbc/AbstractJDBCComponent.html?is-external=true" title="class or interface in org.apache.mahout.cf.taste.impl.common.jdbc">org.apache.mahout.cf.taste.impl.common.jdbc.AbstractJDBCComponent</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model.jdbc">org.apache.mahout.cf.taste.impl.model.jdbc.AbstractJDBCDataModel</a></li>
<li>
<ul class="inheritance">
<li>org.apache.mahout.cf.taste.impl.model.jdbc.GenericJDBCDataModel</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="http://mahout.apache.org/mahout-mr/apidocs/org/apache/mahout/cf/taste/common/Refreshable.html?is-external=true" title="class or interface in org.apache.mahout.cf.taste.common">Refreshable</a>, <a href="http://mahout.apache.org/mahout-mr/apidocs/org/apache/mahout/cf/taste/model/DataModel.html?is-external=true" title="class or interface in org.apache.mahout.cf.taste.model">DataModel</a>, <a href="http://mahout.apache.org/mahout-mr/apidocs/org/apache/mahout/cf/taste/model/JDBCDataModel.html?is-external=true" title="class or interface in org.apache.mahout.cf.taste.model">JDBCDataModel</a></dd>
</dl>
<hr>
<br>
<pre>public final class <span class="typeNameLabel">GenericJDBCDataModel</span>
extends <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model.jdbc">AbstractJDBCDataModel</a></pre>
<div class="block"><p>
A generic <a href="http://mahout.apache.org/mahout-mr/apidocs/org/apache/mahout/cf/taste/model/DataModel.html?is-external=true" title="class or interface in org.apache.mahout.cf.taste.model"><code>DataModel</code></a> designed for use with other JDBC data sources;
one just specifies all necessary SQL queries to the constructor here. Optionally, the queries can be
specified from a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util"><code>Properties</code></a> object, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io"><code>File</code></a>, or <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><code>InputStream</code></a>. This class is most
appropriate when other existing implementations of <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model.jdbc"><code>AbstractJDBCDataModel</code></a> are not suitable. If you
are using this class to support a major database, consider contributing a specialized implementation of
<a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model.jdbc"><code>AbstractJDBCDataModel</code></a> to the project for this database.
</p></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../../serialized-form.html#org.apache.mahout.cf.taste.impl.model.jdbc.GenericJDBCDataModel">Serialized Form</a></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">&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>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#DATA_SOURCE_KEY">DATA_SOURCE_KEY</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GET_ALL_USERS_SQL_KEY">GET_ALL_USERS_SQL_KEY</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GET_ITEMS_SQL_KEY">GET_ITEMS_SQL_KEY</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GET_MAX_PREFERENCE_KEY">GET_MAX_PREFERENCE_KEY</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GET_MIN_PREFERENCE_KEY">GET_MIN_PREFERENCE_KEY</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GET_NUM_ITEMS_SQL_KEY">GET_NUM_ITEMS_SQL_KEY</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GET_NUM_PREFERENCE_FOR_ITEM_KEY">GET_NUM_PREFERENCE_FOR_ITEM_KEY</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GET_NUM_PREFERENCE_FOR_ITEMS_KEY">GET_NUM_PREFERENCE_FOR_ITEMS_KEY</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GET_NUM_USERS_SQL_KEY">GET_NUM_USERS_SQL_KEY</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GET_PREFERENCE_SQL_KEY">GET_PREFERENCE_SQL_KEY</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GET_PREFERENCE_TIME_SQL_KEY">GET_PREFERENCE_TIME_SQL_KEY</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GET_PREFS_FOR_ITEM_SQL_KEY">GET_PREFS_FOR_ITEM_SQL_KEY</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GET_USER_SQL_KEY">GET_USER_SQL_KEY</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GET_USERS_SQL_KEY">GET_USERS_SQL_KEY</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#REMOVE_PREFERENCE_SQL_KEY">REMOVE_PREFERENCE_SQL_KEY</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#SET_PREFERENCE_SQL_KEY">SET_PREFERENCE_SQL_KEY</a></span></code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.mahout.cf.taste.impl.model.jdbc.AbstractJDBCDataModel">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.mahout.cf.taste.impl.model.jdbc.<a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model.jdbc">AbstractJDBCDataModel</a></h3>
<code><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#DEFAULT_ITEM_ID_COLUMN">DEFAULT_ITEM_ID_COLUMN</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#DEFAULT_PREFERENCE_COLUMN">DEFAULT_PREFERENCE_COLUMN</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#DEFAULT_PREFERENCE_TABLE">DEFAULT_PREFERENCE_TABLE</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#DEFAULT_PREFERENCE_TIME_COLUMN">DEFAULT_PREFERENCE_TIME_COLUMN</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#DEFAULT_USER_ID_COLUMN">DEFAULT_USER_ID_COLUMN</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.mahout.cf.taste.impl.common.jdbc.AbstractJDBCComponent">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.mahout.cf.taste.impl.common.jdbc.<a href="http://mahout.apache.org/mahout-mr/apidocs/org/apache/mahout/cf/taste/impl/common/jdbc/AbstractJDBCComponent.html?is-external=true" title="class or interface in org.apache.mahout.cf.taste.impl.common.jdbc">AbstractJDBCComponent</a></h3>
<code><a href="http://mahout.apache.org/mahout-mr/apidocs/org/apache/mahout/cf/taste/impl/common/jdbc/AbstractJDBCComponent.html?is-external=true#DEFAULT_DATASOURCE_NAME" title="class or interface in org.apache.mahout.cf.taste.impl.common.jdbc">DEFAULT_DATASOURCE_NAME</a></code></li>
</ul>
</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/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GenericJDBCDataModel-java.io.File-">GenericJDBCDataModel</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a>&nbsp;propertiesFile)</code>
<div class="block">
See <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GenericJDBCDataModel-java.util.Properties-"><code>GenericJDBCDataModel(Properties)</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GenericJDBCDataModel-java.util.Properties-">GenericJDBCDataModel</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</a>&nbsp;props)</code>
<div class="block">
Specifies all SQL queries in a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util"><code>Properties</code></a> object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GenericJDBCDataModel-java.lang.String-">GenericJDBCDataModel</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;resourcePath)</code>
<div class="block">
See <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GenericJDBCDataModel-java.util.Properties-"><code>GenericJDBCDataModel(Properties)</code></a>.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.mahout.cf.taste.impl.model.jdbc.AbstractJDBCDataModel">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.mahout.cf.taste.impl.model.jdbc.<a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model.jdbc">AbstractJDBCDataModel</a></h3>
<code><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#buildPreference-java.sql.ResultSet-">buildPreference</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#doGetPreferencesForItem-long-">doGetPreferencesForItem</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#exportWithIDsOnly--">exportWithIDsOnly</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#exportWithPrefs--">exportWithPrefs</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#getDataSource--">getDataSource</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#getItemIDColumn--">getItemIDColumn</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#getItemIDs--">getItemIDs</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#getItemIDsFromUser-long-">getItemIDsFromUser</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#getLongColumn-java.sql.ResultSet-int-">getLongColumn</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#getMaxPreference--">getMaxPreference</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#getMinPreference--">getMinPreference</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#getNumItems--">getNumItems</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#getNumUsers--">getNumUsers</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#getNumUsersWithPreferenceFor-long-">getNumUsersWithPreferenceFor</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#getNumUsersWithPreferenceFor-long-long-">getNumUsersWithPreferenceFor</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#getPreferenceColumn--">getPreferenceColumn</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#getPreferencesForItem-long-">getPreferencesForItem</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#getPreferencesFromUser-long-">getPreferencesFromUser</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#getPreferenceTable--">getPreferenceTable</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#getPreferenceTime-long-long-">getPreferenceTime</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#getPreferenceValue-long-long-">getPreferenceValue</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#getUserIDColumn--">getUserIDColumn</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#getUserIDs--">getUserIDs</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#hasPreferenceValues--">hasPreferenceValues</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#refresh-java.util.Collection-">refresh</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#removePreference-long-long-">removePreference</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#setLongParameter-java.sql.PreparedStatement-int-long-">setLongParameter</a>, <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/AbstractJDBCDataModel.html#setPreference-long-long-float-">setPreference</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.mahout.cf.taste.impl.common.jdbc.AbstractJDBCComponent">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.mahout.cf.taste.impl.common.jdbc.<a href="http://mahout.apache.org/mahout-mr/apidocs/org/apache/mahout/cf/taste/impl/common/jdbc/AbstractJDBCComponent.html?is-external=true" title="class or interface in org.apache.mahout.cf.taste.impl.common.jdbc">AbstractJDBCComponent</a></h3>
<code><a href="http://mahout.apache.org/mahout-mr/apidocs/org/apache/mahout/cf/taste/impl/common/jdbc/AbstractJDBCComponent.html?is-external=true#checkNotNullAndLog-java.lang.String-java.lang.Object-" title="class or interface in org.apache.mahout.cf.taste.impl.common.jdbc">checkNotNullAndLog</a>, <a href="http://mahout.apache.org/mahout-mr/apidocs/org/apache/mahout/cf/taste/impl/common/jdbc/AbstractJDBCComponent.html?is-external=true#checkNotNullAndLog-java.lang.String-java.lang.Object:A-" title="class or interface in org.apache.mahout.cf.taste.impl.common.jdbc">checkNotNullAndLog</a>, <a href="http://mahout.apache.org/mahout-mr/apidocs/org/apache/mahout/cf/taste/impl/common/jdbc/AbstractJDBCComponent.html?is-external=true#getFetchSize--" title="class or interface in org.apache.mahout.cf.taste.impl.common.jdbc">getFetchSize</a>, <a href="http://mahout.apache.org/mahout-mr/apidocs/org/apache/mahout/cf/taste/impl/common/jdbc/AbstractJDBCComponent.html?is-external=true#lookupDataSource-java.lang.String-" title="class or interface in org.apache.mahout.cf.taste.impl.common.jdbc">lookupDataSource</a></code></li>
</ul>
<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="http://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="http://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="http://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="http://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="http://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="http://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="http://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="http://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="http://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="http://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="http://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="http://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="DATA_SOURCE_KEY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DATA_SOURCE_KEY</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> DATA_SOURCE_KEY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../../constant-values.html#org.apache.mahout.cf.taste.impl.model.jdbc.GenericJDBCDataModel.DATA_SOURCE_KEY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="GET_PREFERENCE_SQL_KEY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GET_PREFERENCE_SQL_KEY</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> GET_PREFERENCE_SQL_KEY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../../constant-values.html#org.apache.mahout.cf.taste.impl.model.jdbc.GenericJDBCDataModel.GET_PREFERENCE_SQL_KEY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="GET_PREFERENCE_TIME_SQL_KEY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GET_PREFERENCE_TIME_SQL_KEY</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> GET_PREFERENCE_TIME_SQL_KEY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../../constant-values.html#org.apache.mahout.cf.taste.impl.model.jdbc.GenericJDBCDataModel.GET_PREFERENCE_TIME_SQL_KEY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="GET_USER_SQL_KEY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GET_USER_SQL_KEY</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> GET_USER_SQL_KEY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../../constant-values.html#org.apache.mahout.cf.taste.impl.model.jdbc.GenericJDBCDataModel.GET_USER_SQL_KEY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="GET_ALL_USERS_SQL_KEY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GET_ALL_USERS_SQL_KEY</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> GET_ALL_USERS_SQL_KEY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../../constant-values.html#org.apache.mahout.cf.taste.impl.model.jdbc.GenericJDBCDataModel.GET_ALL_USERS_SQL_KEY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="GET_NUM_USERS_SQL_KEY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GET_NUM_USERS_SQL_KEY</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> GET_NUM_USERS_SQL_KEY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../../constant-values.html#org.apache.mahout.cf.taste.impl.model.jdbc.GenericJDBCDataModel.GET_NUM_USERS_SQL_KEY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="GET_NUM_ITEMS_SQL_KEY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GET_NUM_ITEMS_SQL_KEY</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> GET_NUM_ITEMS_SQL_KEY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../../constant-values.html#org.apache.mahout.cf.taste.impl.model.jdbc.GenericJDBCDataModel.GET_NUM_ITEMS_SQL_KEY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="SET_PREFERENCE_SQL_KEY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SET_PREFERENCE_SQL_KEY</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> SET_PREFERENCE_SQL_KEY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../../constant-values.html#org.apache.mahout.cf.taste.impl.model.jdbc.GenericJDBCDataModel.SET_PREFERENCE_SQL_KEY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="REMOVE_PREFERENCE_SQL_KEY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>REMOVE_PREFERENCE_SQL_KEY</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> REMOVE_PREFERENCE_SQL_KEY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../../constant-values.html#org.apache.mahout.cf.taste.impl.model.jdbc.GenericJDBCDataModel.REMOVE_PREFERENCE_SQL_KEY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="GET_USERS_SQL_KEY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GET_USERS_SQL_KEY</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> GET_USERS_SQL_KEY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../../constant-values.html#org.apache.mahout.cf.taste.impl.model.jdbc.GenericJDBCDataModel.GET_USERS_SQL_KEY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="GET_ITEMS_SQL_KEY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GET_ITEMS_SQL_KEY</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> GET_ITEMS_SQL_KEY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../../constant-values.html#org.apache.mahout.cf.taste.impl.model.jdbc.GenericJDBCDataModel.GET_ITEMS_SQL_KEY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="GET_PREFS_FOR_ITEM_SQL_KEY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GET_PREFS_FOR_ITEM_SQL_KEY</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> GET_PREFS_FOR_ITEM_SQL_KEY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../../constant-values.html#org.apache.mahout.cf.taste.impl.model.jdbc.GenericJDBCDataModel.GET_PREFS_FOR_ITEM_SQL_KEY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="GET_NUM_PREFERENCE_FOR_ITEM_KEY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GET_NUM_PREFERENCE_FOR_ITEM_KEY</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> GET_NUM_PREFERENCE_FOR_ITEM_KEY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../../constant-values.html#org.apache.mahout.cf.taste.impl.model.jdbc.GenericJDBCDataModel.GET_NUM_PREFERENCE_FOR_ITEM_KEY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="GET_NUM_PREFERENCE_FOR_ITEMS_KEY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GET_NUM_PREFERENCE_FOR_ITEMS_KEY</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> GET_NUM_PREFERENCE_FOR_ITEMS_KEY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../../constant-values.html#org.apache.mahout.cf.taste.impl.model.jdbc.GenericJDBCDataModel.GET_NUM_PREFERENCE_FOR_ITEMS_KEY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="GET_MAX_PREFERENCE_KEY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GET_MAX_PREFERENCE_KEY</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> GET_MAX_PREFERENCE_KEY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../../constant-values.html#org.apache.mahout.cf.taste.impl.model.jdbc.GenericJDBCDataModel.GET_MAX_PREFERENCE_KEY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="GET_MIN_PREFERENCE_KEY">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>GET_MIN_PREFERENCE_KEY</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> GET_MIN_PREFERENCE_KEY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../../constant-values.html#org.apache.mahout.cf.taste.impl.model.jdbc.GenericJDBCDataModel.GET_MIN_PREFERENCE_KEY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="GenericJDBCDataModel-java.util.Properties-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GenericJDBCDataModel</h4>
<pre>public&nbsp;GenericJDBCDataModel(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util">Properties</a>&nbsp;props)
throws <a href="http://mahout.apache.org/mahout-mr/apidocs/org/apache/mahout/cf/taste/common/TasteException.html?is-external=true" title="class or interface in org.apache.mahout.cf.taste.common">TasteException</a></pre>
<div class="block"><p>
Specifies all SQL queries in a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util"><code>Properties</code></a> object. See the <code>*_KEY</code> constants in this
class (e.g. <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GET_USER_SQL_KEY"><code>GET_USER_SQL_KEY</code></a>) for a list of all keys which must map to a value in this object.
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>props</code> - <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Properties.html?is-external=true" title="class or interface in java.util"><code>Properties</code></a> object containing values</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://mahout.apache.org/mahout-mr/apidocs/org/apache/mahout/cf/taste/common/TasteException.html?is-external=true" title="class or interface in org.apache.mahout.cf.taste.common">TasteException</a></code> - if anything goes wrong during initialization</dd>
</dl>
</li>
</ul>
<a name="GenericJDBCDataModel-java.io.File-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GenericJDBCDataModel</h4>
<pre>public&nbsp;GenericJDBCDataModel(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a>&nbsp;propertiesFile)
throws <a href="http://mahout.apache.org/mahout-mr/apidocs/org/apache/mahout/cf/taste/common/TasteException.html?is-external=true" title="class or interface in org.apache.mahout.cf.taste.common">TasteException</a></pre>
<div class="block"><p>
See <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GenericJDBCDataModel-java.util.Properties-"><code>GenericJDBCDataModel(Properties)</code></a>. This constructor reads values from a file
instead, as if with <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Properties.html?is-external=true#load-java.io.InputStream-" title="class or interface in java.util"><code>Properties.load(InputStream)</code></a>. So, the file should be in standard Java
properties file format -- containing <code>key=value</code> pairs, one per line.
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>propertiesFile</code> - properties file</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://mahout.apache.org/mahout-mr/apidocs/org/apache/mahout/cf/taste/common/TasteException.html?is-external=true" title="class or interface in org.apache.mahout.cf.taste.common">TasteException</a></code> - if anything goes wrong during initialization</dd>
</dl>
</li>
</ul>
<a name="GenericJDBCDataModel-java.lang.String-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>GenericJDBCDataModel</h4>
<pre>public&nbsp;GenericJDBCDataModel(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;resourcePath)
throws <a href="http://mahout.apache.org/mahout-mr/apidocs/org/apache/mahout/cf/taste/common/TasteException.html?is-external=true" title="class or interface in org.apache.mahout.cf.taste.common">TasteException</a></pre>
<div class="block"><p>
See <a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html#GenericJDBCDataModel-java.util.Properties-"><code>GenericJDBCDataModel(Properties)</code></a>. This constructor reads values from a resource available in
the classpath, as if with <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true#getResourceAsStream-java.lang.String-" title="class or interface in java.lang"><code>Class.getResourceAsStream(String)</code></a> and
<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Properties.html?is-external=true#load-java.io.InputStream-" title="class or interface in java.util"><code>Properties.load(InputStream)</code></a>. This is useful if your configuration file is, for example, packaged
in a JAR file that is in the classpath.
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>resourcePath</code> - path to resource in classpath (e.g. "/com/foo/TasteSQLQueries.properties")</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="http://mahout.apache.org/mahout-mr/apidocs/org/apache/mahout/cf/taste/common/TasteException.html?is-external=true" title="class or interface in org.apache.mahout.cf.taste.common">TasteException</a></code> - if anything goes wrong during initialization</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/GenericJDBCDataModel.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/mahout/cf/taste/impl/model/jdbc/ConnectionPoolDataSource.html" title="class in org.apache.mahout.cf.taste.impl.model.jdbc"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../../../org/apache/mahout/cf/taste/impl/model/jdbc/MySQLBooleanPrefJDBCDataModel.html" title="class in org.apache.mahout.cf.taste.impl.model.jdbc"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../../index.html?org/apache/mahout/cf/taste/impl/model/jdbc/GenericJDBCDataModel.html" target="_top">Frames</a></li>
<li><a href="GenericJDBCDataModel.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="#methods.inherited.from.class.org.apache.mahout.cf.taste.impl.model.jdbc.AbstractJDBCDataModel">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>Method</li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2008&#x2013;2017 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>