<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_Tutorial%2FDatabase%2FJDBC_Annotation</id>
		<title>Java Tutorial/Database/JDBC Annotation - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_Tutorial%2FDatabase%2FJDBC_Annotation"/>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java_Tutorial/Database/JDBC_Annotation&amp;action=history"/>
		<updated>2026-04-10T02:55:08Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://jexp.ru/index.php?title=Java_Tutorial/Database/JDBC_Annotation&amp;diff=4818&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java_Tutorial/Database/JDBC_Annotation&amp;diff=4818&amp;oldid=prev"/>
				<updated>2010-06-01T05:06:20Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 05:06, 1 июня 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://jexp.ru/index.php?title=Java_Tutorial/Database/JDBC_Annotation&amp;diff=4817&amp;oldid=prev</id>
		<title> в 17:44, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java_Tutorial/Database/JDBC_Annotation&amp;diff=4817&amp;oldid=prev"/>
				<updated>2010-05-31T17:44:27Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==  JDBC Annotations ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The following table lists the Select annotation elements.&amp;lt;/p&amp;gt;&lt;br /&gt;
ElementTypeAccessibilitysql or valueStringThe SQL statement to be executedtableNameStringThe name of the table that will be updated when the DataSet.sync method is calledreadOnlybooleanIndicates the returned DataSet is read-onlyconnectedbooleanIndicates if the DataSet is connected to the data sourceallColumnsMappedbooleanIndicates if there is a one-to-one mapping between the column names in the SQL statement and the fields in the returned DataSetscrollablebooleanIndicates if the returned DataSet is scrollable. This element only takes effect only when in connected mode.&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import java.sql.BaseQuery;&lt;br /&gt;
import java.sql.DataSet;&lt;br /&gt;
import java.sql.Select;&lt;br /&gt;
public interface UserQueries extends BaseQuery {&lt;br /&gt;
&lt;br /&gt;
    // Select all users&lt;br /&gt;
    @Select (sql =&amp;quot;SELECT userId, firstName, lastName FROM Users&amp;quot;,&lt;br /&gt;
             readOnly=false, connected=false, tableName=&amp;quot;Users&amp;quot;)&lt;br /&gt;
    DataSet&amp;lt;User&amp;gt; getAllUsers ();&lt;br /&gt;
&lt;br /&gt;
    // Select user by name */&lt;br /&gt;
    @Select (sql =&amp;quot;SELECT userId, firstName, lastName FROM Users&amp;quot;&lt;br /&gt;
             + &amp;quot;WHERE userName=?&amp;quot;, readOnly=false, connected=false,&lt;br /&gt;
             tableName =&amp;quot;Users&amp;quot;)&lt;br /&gt;
    DataSet&amp;lt;User&amp;gt; getUserByName(String userName);&lt;br /&gt;
&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==  Update annotation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;The Update annotation is used to decorate a method specifying an SQL update statement.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;The method&amp;quot;s return value can be an int or void.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Only if the return value type is int will the update count be returned.&amp;lt;/p&amp;gt;&lt;br /&gt;
ElementTypeAccessibilitysql or valueStringThe SQL statement to be executedkeysGenerated KeysIndicates if autogenerated keys are returned. The default value is GeneratedKeys.NO_KEYS_RETURNED&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import java.sql.BaseQuery;&lt;br /&gt;
import java.sql.DataSet;&lt;br /&gt;
import java.sql.Select;&lt;br /&gt;
public interface UserQueries extends BaseQuery {&lt;br /&gt;
&lt;br /&gt;
    // Delete user&lt;br /&gt;
    @Update (&amp;quot;DELETE Users WHERE firstName={firstName}&amp;quot; +&lt;br /&gt;
             &amp;quot;AND lastName={lastName}&amp;quot;)&lt;br /&gt;
    int deleteUser (String firstName, String lastName);&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;/div&gt;</summary>
			</entry>

	</feed>