Last modified by christoph_lechleitner@iteg_at on 2013-02-02 07.58:44

From version 1.1
edited by christoph_lechleitner@iteg_at
on 2013-02-02 04.17:14
Change comment: There is no comment for this version
To version 2.1
edited by christoph_lechleitner@iteg_at
on 2013-02-02 07.58:44
Change comment: cleaned up idGenerator/sqlGenerator mixup, info about upcoming pseudo constants in HiLoIdGen.

Summary

Details

Page properties
Content
... ... @@ -2,6 +2,8 @@
2 2  
3 3  (% class="syntaxhighlighter nogutter java" %)
4 4  (((
5 +
6 +
5 5  |(((
6 6  (% class="container" title="Hint: double-click to select code" %)
7 7  (((
... ... @@ -26,6 +26,8 @@
26 26  )))
27 27  )))
28 28  )))
31 +
32 +Future versions should use the constants {{code language="none"}}HiLoIdGenerator.DEFAULT_ID_TABLE_NAME{{/code}}, {{code language="none"}}HiLoIdGenerator.DEFAULT_NEXT_ID_COL_NAME{{/code}} which are part of sql-util as of the yet unreleased version 1.2.1.
29 29  )))
30 30  
31 31  === {{id name="UseofHiLoGeneratorwithsql-utilDAOclasses-InstantiateanidGeneratorbean"/}}Instantiate an idGenerator bean ===
... ... @@ -56,14 +56,18 @@
56 56  )))
57 57  )))
58 58  )))
63 +
64 +
59 59  )))
60 60  
61 61  databaseSetup is the bean representing the JDBC2XML SchemaManager (see [[this HowTo>>doc:JDBC2XML.Java Library Documentation.How To create and update Databases using SchemaManager and SchemaUpdateSnippets.WebHome]]), depends-on assures, that the ID generator is started after the database tables are set up.
62 62  
63 -==== {{id name="UseofHiLoGeneratorwithsql-utilDAOclasses-Variant:idGeneratorbeanusingapplicationspecifictableandcolumnnames:"/}}Variant: idGenerator bean using application specific table and column names: ====
69 +==== {{id name="UseofHiLoGeneratorwithsql-utilDAOclasses-Variant:idGeneratorbeanusingapplicationspecifictableandcolumnnames:"/}}Variant: idGeneratorbean using application specific table and column names: ====
64 64  
65 65  (% class="syntaxhighlighter nogutter java" %)
66 66  (((
73 +
74 +
67 67  |(((
68 68  (% class="container" title="Hint: double-click to select code" %)
69 69  (((
... ... @@ -108,12 +108,16 @@
108 108  )))
109 109  )))
110 110  )))
119 +
120 +
111 111  )))
112 112  
113 -=== {{id name="UseofHiLoGeneratorwithsql-utilDAOclasses-SettheIdGeneratorinyourDAOs"/}}Set the IdGenerator in your DAOs ===
123 +=== {{id name="UseofHiLoGeneratorwithsql-utilDAOclasses-SetthesqlGeneratorinyourDAOs"/}}Set the sqlGenerator in your DAOs ===
114 114  
115 115  (% class="syntaxhighlighter nogutter java" %)
116 116  (((
127 +
128 +
117 117  |(((
118 118  (% class="container" title="Hint: double-click to select code" %)
119 119  (((
... ... @@ -129,14 +129,9 @@
129 129  
130 130  (% class="line number3 index2 alt2" %)
131 131  (((
132 -(% class="java spaces" %){{code language="none"}} {{/code}}(% class="java plain" %)##<[[bp:property>>url:http://bpproperty||shape="rect"]] name=##(% class="java string" %){{code language="none"}}"generator"{{/code}}(%%) (% class="java plain" %){{code language="none"}}ref={{/code}}(% class="java string" %){{code language="none"}}"sqlGenerator"{{/code}}(% class="java plain" %){{code language="none"}}/>{{/code}}
144 +(% class="java spaces" style="font-size: 10.0pt;line-height: 13.0pt;" %){{code language="none"}} {{/code}}(% class="java plain" style="font-size: 10.0pt;line-height: 13.0pt;" %)##<[[bp:property>>url:http://bpproperty||shape="rect"]] name=##(% class="java string" style="font-size: 10.0pt;line-height: 13.0pt;" %){{code language="none"}}"threadLocalKey"{{/code}}(% style="font-size: 10.0pt;line-height: 13.0pt;" %) (% class="java plain" style="font-size: 10.0pt;line-height: 13.0pt;" %){{code language="none"}}ref={{/code}}(% class="java string" style="font-size: 10.0pt;line-height: 13.0pt;" %){{code language="none"}}"jdbcUrl"{{/code}}(% class="java plain" style="font-size: 10.0pt;line-height: 13.0pt;" %){{code language="none"}}/>{{/code}}
133 133  )))
134 134  
135 -(% class="line number4 index3 alt1" %)
136 -(((
137 -(% class="java spaces" %){{code language="none"}} {{/code}}(% class="java plain" %)##<[[bp:property>>url:http://bpproperty||shape="rect"]] name=##(% class="java string" %){{code language="none"}}"threadLocalKey"{{/code}}(%%) (% class="java plain" %){{code language="none"}}ref={{/code}}(% class="java string" %){{code language="none"}}"jdbcUrl"{{/code}}(% class="java plain" %){{code language="none"}}/>{{/code}}
138 -)))
139 -
140 140  (% class="line number5 index4 alt2" %)
141 141  (((
142 142  (% class="java plain" %)##</[[bp:bean>>url:http://bpbean||shape="rect"]]>##
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -689817
1 +689729
URL
... ... @@ -1,1 +1,1 @@
1 -https://clazzes.atlassian.net/wiki/spaces/UTIL/pages/689817/Use of HiLoGenerator with sql-util DAO classes
1 +https://clazzes.atlassian.net/wiki/spaces/UTIL/pages/689729/Use of HiLoGenerator with sql-util DAO classes