ulrich
2016-12-24 87e382c61272e351b04715c960d485f863b7e594
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
  <comment>
    SQL-Kommandos der Anwendung Nutzerverwaltung
  </comment>
  <entry key="dbVorhanden">
    select s.schemaname, t.tablename 
    from SYS.SYSSCHEMAS as s, 
    SYS.SYSTABLES as t 
    where s.schemaid = t.schemaid 
    and s.schemaname = 'APP' 
    and t.tablename = 'USERS'
  </entry>
  <entry key="incrementKey">
    update app.keytable 
    set key_next = ? 
    where key_name = ? 
    and key_next = ? 
  </entry>
  <entry key="getNextKey">
    select key_next from 
    app.keytable 
    where key_name = ?
  </entry>
  <entry key="getUserNameList">
    select user_name from app.users
  </entry>
  <entry key="getUserList">
    select * from app.users
  </entry>
  <entry key="getRoleList">
    select distinct role_name from app.user_roles order by role_name
  </entry>
  <entry key="getDateList">
    select substr(or_zeit,1,8) as tag, count(*) as anz from app.orte as orte 
    where or_pers_id = ?  
    and substr(or_zeit,1,8) like ?
    group by substr(or_zeit,1,8)
  </entry>
</properties>