java/nekurak.net-web/src/java/cz/frantovo/nekurak/dao/PodnikDAO.sql.xml
author František Kučera <franta-hg@frantovo.cz>
Wed, 27 Jan 2010 01:28:52 +0100
changeset 23 f76fc9f3cb7c
permissions -rw-r--r--
DAO vrstva a načítání seznamu podniků z databáze.
franta-hg@23
     1
<?xml version="1.0" encoding="UTF-8"?>
franta-hg@23
     2
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
franta-hg@23
     3
<properties>
franta-hg@23
     4
    <entry key="SELECT_VSECHNY">
franta-hg@23
     5
	<![CDATA[
franta-hg@23
     6
	SELECT * FROM podnik;
franta-hg@23
     7
	]]>
franta-hg@23
     8
    </entry>
franta-hg@23
     9
    <entry key="INSERT">
franta-hg@23
    10
	<![CDATA[
franta-hg@23
    11
	INSERT INTO podnik (nazev, id)
franta-hg@23
    12
	VALUES (?, ?);
franta-hg@23
    13
	]]>
franta-hg@23
    14
    </entry>
franta-hg@23
    15
    <entry key="UPDATE">
franta-hg@23
    16
	<![CDATA[
franta-hg@23
    17
	UPDATE podnik
franta-hg@23
    18
	SET nazev = ?
franta-hg@23
    19
	WHERE id = ?
franta-hg@23
    20
	]]>
franta-hg@23
    21
    </entry>
franta-hg@23
    22
    <entry key="NEXTVAL">
franta-hg@23
    23
	<![CDATA[
franta-hg@23
    24
	SELECT nextval('podnik_seq');
franta-hg@23
    25
	]]>
franta-hg@23
    26
    </entry>
franta-hg@23
    27
</properties>