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

From 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.
To 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

Summary

Details

Page properties
Content
... ... @@ -2,8 +2,6 @@
2 2  
3 3  (% class="syntaxhighlighter nogutter java" %)
4 4  (((
5 -
6 -
7 7  |(((
8 8  (% class="container" title="Hint: double-click to select code" %)
9 9  (((
... ... @@ -28,8 +28,6 @@
28 28  )))
29 29  )))
30 30  )))
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.
33 33  )))
34 34  
35 35  === {{id name="UseofHiLoGeneratorwithsql-utilDAOclasses-InstantiateanidGeneratorbean"/}}Instantiate an idGenerator bean ===
... ... @@ -60,18 +60,14 @@
60 60  )))
61 61  )))
62 62  )))
63 -
64 -
65 65  )))
66 66  
67 67  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.
68 68  
69 -==== {{id name="UseofHiLoGeneratorwithsql-utilDAOclasses-Variant:idGeneratorbeanusingapplicationspecifictableandcolumnnames:"/}}Variant: idGeneratorbean using application specific table and column names: ====
63 +==== {{id name="UseofHiLoGeneratorwithsql-utilDAOclasses-Variant:idGeneratorbeanusingapplicationspecifictableandcolumnnames:"/}}Variant: idGenerator bean using application specific table and column names: ====
70 70  
71 71  (% class="syntaxhighlighter nogutter java" %)
72 72  (((
73 -
74 -
75 75  |(((
76 76  (% class="container" title="Hint: double-click to select code" %)
77 77  (((
... ... @@ -116,16 +116,12 @@
116 116  )))
117 117  )))
118 118  )))
119 -
120 -
121 121  )))
122 122  
123 -=== {{id name="UseofHiLoGeneratorwithsql-utilDAOclasses-SetthesqlGeneratorinyourDAOs"/}}Set the sqlGenerator in your DAOs ===
113 +=== {{id name="UseofHiLoGeneratorwithsql-utilDAOclasses-SettheIdGeneratorinyourDAOs"/}}Set the IdGenerator in your DAOs ===
124 124  
125 125  (% class="syntaxhighlighter nogutter java" %)
126 126  (((
127 -
128 -
129 129  |(((
130 130  (% class="container" title="Hint: double-click to select code" %)
131 131  (((
... ... @@ -141,9 +141,14 @@
141 141  
142 142  (% class="line number3 index2 alt2" %)
143 143  (((
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}}
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}}
145 145  )))
146 146  
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 +
147 147  (% class="line number5 index4 alt2" %)
148 148  (((
149 149  (% class="java plain" %)##</[[bp:bean>>url:http://bpbean||shape="rect"]]>##
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -689729
1 +689817
URL
... ... @@ -1,1 +1,1 @@
1 -https://clazzes.atlassian.net/wiki/spaces/UTIL/pages/689729/Use of HiLoGenerator with sql-util DAO classes
1 +https://clazzes.atlassian.net/wiki/spaces/UTIL/pages/689817/Use of HiLoGenerator with sql-util DAO classes