1. /*
  2. * @(#)JoinRowSet.java 1.7 04/05/29
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.sql.rowset;
  8. import java.sql.*;
  9. import javax.sql.*;
  10. import javax.naming.*;
  11. import java.io.*;
  12. import java.math.*;
  13. import java.util.*;
  14. import javax.sql.rowset.*;
  15. /**
  16. * The <code>JoinRowSet</code> interface provides a mechanism for combining related
  17. * data from different <code>RowSet</code> objects into one <code>JoinRowSet</code>
  18. * object, which represents an SQL <code>JOIN</code>.
  19. * In other words, a <code>JoinRowSet</code> object acts as a
  20. * container for the data from <code>RowSet</code> objects that form an SQL
  21. * <code>JOIN</code> relationship.
  22. * <P>
  23. * The <code>Joinable</code> interface provides the methods for setting,
  24. * retrieving, and unsetting a match column, the basis for
  25. * establishing an SQL <code>JOIN</code> relationship. The match column may
  26. * alternatively be set by supplying it to the appropriate version of the
  27. * <code>JointRowSet</code> method <code>addRowSet</code>.
  28. * <P>
  29. * <p>
  30. * <h3>1.0 Overview</h3>
  31. * Disconnected <code>RowSet</code> objects (<code>CachedRowSet</code> objects
  32. * and implementations extending the <code>CachedRowSet</code> interface)
  33. * do not have a standard way to establish an SQL <code>JOIN</code> between
  34. * <code>RowSet</code> objects without the expensive operation of
  35. * reconnecting to the data source. The <code>JoinRowSet</code>
  36. * interface is specifically designed to address this need.
  37. * <P>
  38. * Any <code>RowSet</code> object
  39. * can be added to a <code>JoinRowSet</code> object to become
  40. * part of an SQL <code>JOIN</code> relationship. This means that both connected
  41. * and disconnected <code>RowSet</code> objects can be part of a <code>JOIN</code>.
  42. * <code>RowSet</code> objects operating in a connected environment
  43. * (<code>JdbcRowSet</code> objects) are
  44. * encouraged to use the database to which they are already
  45. * connected to establish SQL <code>JOIN</code> relationships between
  46. * tables directly. However, it is possible for a
  47. * <code>JdbcRowSet</code> object to be added to a <code>JoinRowSet</code> object
  48. * if necessary.
  49. * <P>
  50. * Any number of <code>RowSet</code> objects can be added to an
  51. * instance of <code>JoinRowSet</code> provided that they
  52. * can be related in an SQL <code>JOIN</code>.
  53. * By definition, the SQL <code>JOIN</code> statement is used to
  54. * combine the data contained in two or more relational database tables based
  55. * upon a common attribute. The <code>Joinable</code> interface provides the methods
  56. * for establishing a common attribute, which is done by setting a
  57. * <i>match column</i>. The match column commonly coincides with
  58. * the primary key, but there is
  59. * no requirement that the match column be the same as the primary key.
  60. * By establishing and then enforcing column matches,
  61. * a <code>JoinRowSet</code> object establishes <code>JOIN</code> relationships
  62. * between <code>RowSet</code> objects without the assistance of an available
  63. * relational database.
  64. * <P>
  65. * The type of <code>JOIN</code> to be established is determined by setting
  66. * one of the <code>JoinRowSet</code> constants using the method
  67. * <code>setJoinType</code>. The following SQL <code>JOIN</code> types can be set:
  68. * <UL>
  69. * <LI><code>CROSS_JOIN</code>
  70. * <LI><code>FULL_JOIN</code>
  71. * <LI><code>INNER_JOIN</code> - the default if no <code>JOIN</code> type has been set
  72. * <LI><code>LEFT_OUTER_JOIN</code>
  73. * <LI><code>RIGHT_OUTER_JOIN</code>
  74. * </UL>
  75. * Note that if no type is set, the <code>JOIN</code> will automatically be an
  76. * inner join. The comments for the fields in the
  77. * <code>JoinRowSet</code> interface explain these <code>JOIN</code> types, which are
  78. * standard SQL <code>JOIN</code> types.
  79. * <P>
  80. * <h3>2.0 Using a <code>JoinRowSet</code> Object for Creating a <code>JOIN</code></h3>
  81. * When a <code>JoinRowSet</code> object is created, it is empty.
  82. * The first <code>RowSet</code> object to be added becomes the basis for the
  83. * <code>JOIN</code> relationship.
  84. * Applications must determine which column in each of the
  85. * <code>RowSet</code> objects to be added to the <code>JoinRowSet</code> object
  86. * should be the match column. All of the
  87. * <code>RowSet</code> objects must contain a match column, and the values in
  88. * each match column must be ones that can be compared to values in the other match
  89. * columns. The columns do not have to have the same name, though they often do,
  90. * and they do not have to store the exact same data type as long as the data types
  91. * can be compared.
  92. * <P>
  93. * A match column can be be set in two ways:
  94. * <ul>
  95. * <li>By calling the <code>Joinable</code> method <code>setMatchColumn</code><br>
  96. * This is the only method that can set the match column before a <code>RowSet</code>
  97. * object is added to a <code>JoinRowSet</code> object. The <code>RowSet</code> object
  98. * must have implemented the <code>Joinable</code> interface in order to use the method
  99. * <code>setMatchColumn</code>. Once the match column value
  100. * has been set, this method can be used to reset the match column at any time.
  101. * <li>By calling one of the versions of the <code>JoinRowSet</code> method
  102. * <code>addRowSet</code> that takes a column name or number (or an array of
  103. * column names or numbers)<BR>
  104. * Four of the five <code>addRowSet</code> methods take a match column as a parameter.
  105. * These four methods set or reset the match column at the time a <code>RowSet</code>
  106. * object is being added to a <code>JoinRowSet</code> object.
  107. * </ul>
  108. * <h3>3.0 Sample Usage</h3>
  109. * <p>
  110. * The following code fragment adds two <code>CachedRowSet</code>
  111. * objects to a <code>JoinRowSet</code> object. Note that in this example,
  112. * no SQL <code>JOIN</code> type is set, so the default <code>JOIN</code> type,
  113. * which is <i>INNER_JOIN</i>, is established.
  114. * <p>
  115. * In the following code fragment, the table <code>EMPLOYEES</code>, whose match
  116. * column is set to the first column (<code>EMP_ID</code>), is added to the
  117. * <code>JoinRowSet</code> object <i>jrs</i>. Then
  118. * the table <code>ESSP_BONUS_PLAN</code>, whose match column is likewise
  119. * the <code>EMP_ID</code> column, is added. When this second
  120. * table is added to <i>jrs</i>, only the rows in
  121. * <code>ESSP_BONUS_PLAN</code> whose <code>EMP_ID</code> value matches an
  122. * <code>EMP_ID</code> value in the <code>EMPLOYEES</code> table are added.
  123. * In this case, everyone in the bonus plan is an employee, so all of the rows
  124. * in the table <code>ESSP_BONUS_PLAN</code> are added to the <code>JoinRowSet</code>
  125. * object. In this example, both <code>CachedRowSet</code> objects being added
  126. * have implemented the <code>Joinable</code> interface and can therefore call
  127. * the <code>Joinable</code> method <code>setMatchColumn</code>.
  128. * <PRE>
  129. * JoinRowSet jrs = new JoinRowSetImpl();
  130. *
  131. * ResultSet rs1 = stmt.executeQuery("SELECT * FROM EMPLOYEES");
  132. * CachedRowSet empl = new CachedRowSetImpl();
  133. * empl.populate(rs1);
  134. * empl.setMatchColumn(1);
  135. * jrs.addRowSet(empl);
  136. *
  137. * ResultSet rs2 = stmt.executeQuery("SELECT * FROM ESSP_BONUS_PLAN");
  138. * CachedRowSet bonus = new CachedRowSetImpl();
  139. * bonus.populate(rs2);
  140. * bonus.setMatchColumn(1); // EMP_ID is the first column
  141. * jrs.addRowSet(bonus);
  142. * </PRE>
  143. * <P>
  144. * At this point, <i>jrs</i> is an inside JOIN of the two <code>RowSet</code> objects
  145. * based on their <code>EMP_ID</code> columns. The application can now browse the
  146. * combined data as if it were browsing one single <code>RowSet</code> object.
  147. * Because <i>jrs</i> is itself a <code>RowSet</code> object, an application can
  148. * navigate or modify it using <code>RowSet</code> methods.
  149. * <PRE>
  150. * jrs.first();
  151. * int employeeID = jrs.getInt(1);
  152. * String employeeName = jrs.getString(2);
  153. * </PRE>
  154. * <P>
  155. * Note that because the SQL <code>JOIN</code> must be enforced when an application
  156. * adds a second or subsequent <code>RowSet</code> object, there
  157. * may be an initial degradation in performance while the <code>JOIN</code> is
  158. * being performed.
  159. * <P>
  160. * The following code fragment adds an additional <code>CachedRowSet</code> object.
  161. * In this case, the match column (<code>EMP_ID</code>) is set when the
  162. * <code>CachedRowSet</code> object is added to the <code>JoinRowSet</code> object.
  163. * <PRE>
  164. * ResultSet rs3 = stmt.executeQuery("SELECT * FROM 401K_CONTRIB");
  165. * CachedRowSet fourO1k = new CachedRowSetImpl();
  166. * four01k.populate(rs3);
  167. * jrs.addRowSet(four01k, 1);
  168. * </PRE>
  169. * <P>
  170. * The <code>JoinRowSet</code> object <i>jrs</i> now contains values from all three
  171. * tables. The data in each row in <i>four01k</i> in which the value for the
  172. * <code>EMP_ID</code> column matches a value for the <code>EMP_ID</code> column
  173. * in <i>jrs</i> has been added to <i>jrs</i>.
  174. * <P>
  175. * <h3>4.0 <code>JoinRowSet</code> Methods</h3>
  176. * The <code>JoinRowSet</code> interface supplies several methods for adding
  177. * <code>RowSet</code> objects and for getting information about the
  178. * <code>JoinRowSet</code> object.
  179. * <UL>
  180. * <LI>Methods for adding one or more <code>RowSet</code> objects<BR>
  181. * These methods allow an application to add one <code>RowSet</code> object
  182. * at a time or to add multiple <code>RowSet</code> objects at one time. In
  183. * either case, the methods may specify the match column for each
  184. * <code>RowSet</code> object being added.
  185. * <LI>Methods for getting information<BR>
  186. * One method retrieves the <code>RowSet</code> objects in the
  187. * <code>JoinRowSet</code> object, and another method retrieves the
  188. * <code>RowSet</code> names. A third method retrieves either the SQL
  189. * <code>WHERE</code> clause used behind the scenes to form the
  190. * <code>JOIN</code> or a text description of what the <code>WHERE</code>
  191. * clause does.
  192. * <LI>Methods related to the type of <code>JOIN</code><BR>
  193. * One method sets the <code>JOIN</code> type, and five methods find out whether
  194. * the <code>JoinRowSet</code> object supports a given type.
  195. * <LI>A method to make a separate copy of the <code>JoinRowSet</code> object<BR>
  196. * This method creates a copy that can be persisted to the data source.
  197. * </UL>
  198. * <P>
  199. */
  200. public interface JoinRowSet extends WebRowSet {
  201. /**
  202. * Adds the given <code>RowSet</code> object to this <code>JoinRowSet</code>
  203. * object. If the <code>RowSet</code> object
  204. * is the first to be added to this <code>JoinRowSet</code>
  205. * object, it forms the basis of the <code>JOIN</code> relationship to be
  206. * established.
  207. * <P>
  208. * This method should be used only when the given <code>RowSet</code>
  209. * object already has a match column that was set with the <code>Joinable</code>
  210. * method <code>setMatchColumn</code>.
  211. * <p>
  212. * Note: A <code>Joinable</code> object is any <code>RowSet</code> object
  213. * that has implemented the <code>Joinable</code> interface.
  214. *
  215. * @param rowset the <code>RowSet</code> object that is to be added to this
  216. * <code>JoinRowSet</code> object; it must implement the
  217. * <code>Joinable</code> interface and have a match column set
  218. * @throws SQLException if (1) an empty rowset is added to the to this
  219. * <code>JoinRowSet</code> object, (2) a match column has not been
  220. * set for <i>rowset</i>, or (3) <i>rowset</i>
  221. * violates the active <code>JOIN</code>
  222. * @see Joinable#setMatchColumn
  223. */
  224. public void addRowSet(Joinable rowset) throws SQLException;
  225. /**
  226. * Adds the given <code>RowSet</code> object to this <code>JoinRowSet</code>
  227. * object and sets the designated column as the match column for
  228. * the <code>RowSet</code> object. If the <code>RowSet</code> object
  229. * is the first to be added to this <code>JoinRowSet</code>
  230. * object, it forms the basis of the <code>JOIN</code> relationship to be
  231. * established.
  232. * <P>
  233. * This method should be used when <i>RowSet</i> does not already have a match
  234. * column set.
  235. *
  236. * @param rowset the <code>RowSet</code> object that is to be added to this
  237. * <code>JoinRowSet</code> object; it may implement the
  238. * <code>Joinable</code> interface
  239. * @param columnIdx an <code>int</code> that identifies the column to become the
  240. * match column
  241. * @throws SQLException if (1) <i>rowset</i> is an empty rowset or
  242. * (2) <i>rowset</i> violates the active <code>JOIN</code>
  243. * @see Joinable#unsetMatchColumn
  244. */
  245. public void addRowSet(RowSet rowset, int columnIdx) throws SQLException;
  246. /**
  247. * Adds <i>rowset</i> to this <code>JoinRowSet</code> object and
  248. * sets the designated column as the match column. If <i>rowset</i>
  249. * is the first to be added to this <code>JoinRowSet</code>
  250. * object, it forms the basis for the <code>JOIN</code> relationship to be
  251. * established.
  252. * <P>
  253. * This method should be used when the given <code>RowSet</code> object
  254. * does not already have a match column.
  255. *
  256. * @param rowset the <code>RowSet</code> object that is to be added to this
  257. * <code>JoinRowSet</code> object; it may implement the
  258. * <code>Joinable</code> interface
  259. * @param columnName the <code>String</code> object giving the name of the
  260. * column to be set as the match column
  261. * @throws SQLException if (1) <i>rowset</i> is an empty rowset or
  262. * (2) the match column for <i>rowset</i> does not satisfy the
  263. * conditions of the <code>JOIN</code>
  264. */
  265. public void addRowSet(RowSet rowset,
  266. String columnName) throws SQLException;
  267. /**
  268. * Adds one or more <code>RowSet</code> objects contained in the given
  269. * array of <code>RowSet</code> objects to this <code>JoinRowSet</code>
  270. * object and sets the match column for
  271. * each of the <code>RowSet</code> objects to the match columns
  272. * in the given array of column indexes. The first element in
  273. * <i>columnIdx</i> is set as the match column for the first
  274. * <code>RowSet</code> object in <i>rowset</i>, the second element of
  275. * <i>columnIdx</i> is set as the match column for the second element
  276. * in <i>rowset</i>, and so on.
  277. * <P>
  278. * The first <code>RowSet</code> object added to this <code>JoinRowSet</code>
  279. * object forms the basis for the <code>JOIN</code> relationship.
  280. * <P>
  281. * This method should be used when the given <code>RowSet</code> object
  282. * does not already have a match column.
  283. *
  284. * @param rowset an array of one or more <code>RowSet</code> objects
  285. * to be added to the <code>JOIN</code> it may implement the
  286. * <code>Joinable</code> interface
  287. * @param columnIdx an array of <code>int</code> values indicating the index(es)
  288. * of the columns to be set as the match columns for the <code>RowSet</code>
  289. * objects in <i>rowset</i>
  290. * @throws SQLException if (1) an empty rowset is added to this
  291. * <code>JoinRowSet</code> object, (2) a match column is not set
  292. * for a <code>RowSet</code> object in <i>rowset</i>, or (3)
  293. * a <code>RowSet</code> object being added violates the active
  294. * <code>JOIN</code>
  295. */
  296. public void addRowSet(RowSet[] rowset,
  297. int[] columnIdx) throws SQLException;
  298. /**
  299. * Adds one or more <code>RowSet</code> objects contained in the given
  300. * array of <code>RowSet</code> objects to this <code>JoinRowSet</code>
  301. * object and sets the match column for
  302. * each of the <code>RowSet</code> objects to the match columns
  303. * in the given array of column names. The first element in
  304. * <i>columnName</i> is set as the match column for the first
  305. * <code>RowSet</code> object in <i>rowset</i>, the second element of
  306. * <i>columnName</i> is set as the match column for the second element
  307. * in <i>rowset</i>, and so on.
  308. * <P>
  309. * The first <code>RowSet</code> object added to this <code>JoinRowSet</code>
  310. * object forms the basis for the <code>JOIN</code> relationship.
  311. * <P>
  312. * This method should be used when the given <code>RowSet</code> object(s)
  313. * does not already have a match column.
  314. *
  315. * @param rowset an array of one or more <code>RowSet</code> objects
  316. * to be added to the <code>JOIN</code> it may implement the
  317. * <code>Joinable</code> interface
  318. * @param columnName an array of <code>String</code> values indicating the
  319. * names of the columns to be set as the match columns for the
  320. * <code>RowSet</code> objects in <i>rowset</i>
  321. * @throws SQLException if (1) an empty rowset is added to this
  322. * <code>JoinRowSet</code> object, (2) a match column is not set
  323. * for a <code>RowSet</code> object in <i>rowset</i>, or (3)
  324. * a <code>RowSet</code> object being added violates the active
  325. * <code>JOIN</code>
  326. */
  327. public void addRowSet(RowSet[] rowset,
  328. String[] columnName) throws SQLException;
  329. /**
  330. * Returns a <code>Collection</code> object containing the
  331. * <code>RowSet</code> objects that have been added to this
  332. * <code>JoinRowSet</code> object.
  333. * This should return the 'n' number of RowSet contained
  334. * within the <code>JOIN</code> and maintain any updates that have occured while in
  335. * this union.
  336. *
  337. * @return a <code>Collection</code> object consisting of the
  338. * <code>RowSet</code> objects added to this <code>JoinRowSet</code>
  339. * object
  340. * @throws SQLException if an error occurs generating the
  341. * <code>Collection</code> object to be returned
  342. */
  343. public Collection<?> getRowSets() throws java.sql.SQLException;
  344. /**
  345. * Returns a <code>String</code> array containing the names of the
  346. * <code>RowSet</code> objects added to this <code>JoinRowSet</code>
  347. * object.
  348. *
  349. * @return a <code>String</code> array of the names of the
  350. * <code>RowSet</code> objects in this <code>JoinRowSet</code>
  351. * object
  352. * @throws SQLException if an error occurs retrieving the names of
  353. * the <code>RowSet</code> objects
  354. * @see CachedRowSet#setTableName
  355. */
  356. public String[] getRowSetNames() throws java.sql.SQLException;
  357. /**
  358. * Creates a new <code>CachedRowSet</code> object containing the
  359. * data in this <code>JoinRowSet</code> object, which can be saved
  360. * to a data source using the <code>SyncProvider</code> object for
  361. * the <code>CachedRowSet</code> object.
  362. * <P>
  363. * If any updates or modifications have been applied to the JoinRowSet
  364. * the CachedRowSet returned by the method will not be able to persist
  365. * it's changes back to the originating rows and tables in the
  366. * in the datasource. The CachedRowSet instance returned should not
  367. * contain modification data and it should clear all properties of
  368. * it's originating SQL statement. An application should reset the
  369. * SQL statement using the <code>RowSet.setCommand</code> method.
  370. * <p>
  371. * In order to allow changes to be persisted back to the datasource
  372. * to the originating tables, the <code>acceptChanges</code> method
  373. * should be used and called on a JoinRowSet object instance. Implementations
  374. * can leverage the internal data and update tracking in their
  375. * implementations to interact with the SyncProvider to persist any
  376. * changes.
  377. *
  378. * @return a CachedRowSet containing the contents of the JoinRowSet
  379. * @throws SQLException if an error occurs assembling the CachedRowSet
  380. * object
  381. * @see javax.sql.RowSet
  382. * @see javax.sql.rowset.CachedRowSet
  383. * @see javax.sql.rowset.spi.SyncProvider
  384. */
  385. public CachedRowSet toCachedRowSet() throws java.sql.SQLException;
  386. /**
  387. * Indicates if CROSS_JOIN is supported by a JoinRowSet
  388. * implementation
  389. *
  390. * @return true if the CROSS_JOIN is supported; false otherwise
  391. */
  392. public boolean supportsCrossJoin();
  393. /**
  394. * Indicates if INNER_JOIN is supported by a JoinRowSet
  395. * implementation
  396. *
  397. * @return true is the INNER_JOIN is supported; false otherwise
  398. */
  399. public boolean supportsInnerJoin();
  400. /**
  401. * Indicates if LEFT_OUTER_JOIN is supported by a JoinRowSet
  402. * implementation
  403. *
  404. * @return true is the LEFT_OUTER_JOIN is supported; false otherwise
  405. */
  406. public boolean supportsLeftOuterJoin();
  407. /**
  408. * Indicates if RIGHT_OUTER_JOIN is supported by a JoinRowSet
  409. * implementation
  410. *
  411. * @return true is the RIGHT_OUTER_JOIN is supported; false otherwise
  412. */
  413. public boolean supportsRightOuterJoin();
  414. /**
  415. * Indicates if FULL_JOIN is supported by a JoinRowSet
  416. * implementation
  417. *
  418. * @return true is the FULL_JOIN is supported; false otherwise
  419. */
  420. public boolean supportsFullJoin();
  421. /**
  422. * Allow the application to adjust the type of <code>JOIN</code> imposed
  423. * on tables contained within the JoinRowSet object instance.
  424. * Implementations should throw a SQLException if they do
  425. * not support a given <code>JOIN</code> type.
  426. *
  427. * @param joinType the standard JoinRowSet.XXX static field definition
  428. * of a SQL <code>JOIN</code> to re-configure a JoinRowSet instance on
  429. * the fly.
  430. * @throws SQLException if an unsupported <code>JOIN</code> type is set
  431. * @see #getJoinType
  432. */
  433. public void setJoinType(int joinType) throws SQLException;
  434. /**
  435. * Return a SQL-like description of the WHERE clause being used
  436. * in a JoinRowSet object. An implementation can describe
  437. * the WHERE clause of the SQL <code>JOIN</code> by supplying a SQL
  438. * strings description of <code>JOIN</code> or provide a textual
  439. * description to assist applications using a <code>JoinRowSet</code>
  440. *
  441. * @return whereClause a textual or SQL description of the logical
  442. * WHERE clause used in the JoinRowSet instance
  443. * @throws SQLException if an error occurs in generating a representation
  444. * of the WHERE clause.
  445. */
  446. public String getWhereClause() throws SQLException;
  447. /**
  448. * Returns a <code>int</code> describing the set SQL <code>JOIN</code> type
  449. * governing this JoinRowSet instance. The returned type will be one of
  450. * standard JoinRowSet types: <code>CROSS_JOIN</code>, <code>INNER_JOIN</code>,
  451. * <code>LEFT_OUTER_JOIN</code>, <code>RIGHT_OUTER_JOIN</code> or
  452. * <code>FULL_JOIN</code>.
  453. *
  454. * @return joinType one of the standard JoinRowSet static field
  455. * definitions of a SQL <code>JOIN</code>. <code>JoinRowSet.INNER_JOIN</code>
  456. * is returned as the default <code>JOIN</code> type is no type has been
  457. * explicitly set.
  458. * @throws SQLException if an error occurs determining the SQL <code>JOIN</code>
  459. * type supported by the JoinRowSet instance.
  460. * @see #setJoinType
  461. */
  462. public int getJoinType() throws SQLException;
  463. /**
  464. * An ANSI-style <code>JOIN</code> providing a cross product of two tables
  465. */
  466. public static int CROSS_JOIN = 0;
  467. /**
  468. * An ANSI-style <code>JOIN</code> providing a inner join between two tables. Any
  469. * unmatched rows in either table of the join should be discarded.
  470. */
  471. public static int INNER_JOIN = 1;
  472. /**
  473. * An ANSI-style <code>JOIN</code> providing a left outer join between two
  474. * tables. In SQL, this is described where all records should be
  475. * returned from the left side of the JOIN statement.
  476. */
  477. public static int LEFT_OUTER_JOIN = 2;
  478. /**
  479. * An ANSI-style <code>JOIN</code> providing a right outer join between
  480. * two tables. In SQL, this is described where all records from the
  481. * table on the right side of the JOIN statement even if the table
  482. * on the left has no matching record.
  483. */
  484. public static int RIGHT_OUTER_JOIN = 3;
  485. /**
  486. * An ANSI-style <code>JOIN</code> providing a a full JOIN. Specifies that all
  487. * rows from either table be returned regardless of matching
  488. * records on the other table.
  489. */
  490. public static int FULL_JOIN = 4;
  491. }