@@ -100,8 +100,8 @@ default int generalInsert(UnaryOperator<GeneralInsertDSL> completer) {
100100 return MyBatis3Utils .generalInsert (this ::generalInsert , person , completer );
101101 }
102102
103- default int insert (PersonRecord record ) {
104- return MyBatis3Utils .insert (this ::insert , record , person , c ->
103+ default int insert (PersonRecord row ) {
104+ return MyBatis3Utils .insert (this ::insert , row , person , c ->
105105 c .map (id ).toProperty ("id" )
106106 .map (firstName ).toProperty ("firstName" )
107107 .map (lastName ).toProperty ("lastName" )
@@ -128,15 +128,15 @@ default int insertMultiple(Collection<PersonRecord> records) {
128128 );
129129 }
130130
131- default int insertSelective (PersonRecord record ) {
132- return MyBatis3Utils .insert (this ::insert , record , person , c ->
133- c .map (id ).toPropertyWhenPresent ("id" , record ::getId )
134- .map (firstName ).toPropertyWhenPresent ("firstName" , record ::getFirstName )
135- .map (lastName ).toPropertyWhenPresent ("lastName" , record ::getLastName )
136- .map (birthDate ).toPropertyWhenPresent ("birthDate" , record ::getBirthDate )
137- .map (employed ).toPropertyWhenPresent ("employed" , record ::getEmployed )
138- .map (occupation ).toPropertyWhenPresent ("occupation" , record ::getOccupation )
139- .map (addressId ).toPropertyWhenPresent ("addressId" , record ::getAddressId )
131+ default int insertSelective (PersonRecord row ) {
132+ return MyBatis3Utils .insert (this ::insert , row , person , c ->
133+ c .map (id ).toPropertyWhenPresent ("id" , row ::getId )
134+ .map (firstName ).toPropertyWhenPresent ("firstName" , row ::getFirstName )
135+ .map (lastName ).toPropertyWhenPresent ("lastName" , row ::getLastName )
136+ .map (birthDate ).toPropertyWhenPresent ("birthDate" , row ::getBirthDate )
137+ .map (employed ).toPropertyWhenPresent ("employed" , row ::getEmployed )
138+ .map (occupation ).toPropertyWhenPresent ("occupation" , row ::getOccupation )
139+ .map (addressId ).toPropertyWhenPresent ("addressId" , row ::getAddressId )
140140 );
141141 }
142142
@@ -162,49 +162,49 @@ default int update(UpdateDSLCompleter completer) {
162162 return MyBatis3Utils .update (this ::update , person , completer );
163163 }
164164
165- static UpdateDSL <UpdateModel > updateAllColumns (PersonRecord record ,
165+ static UpdateDSL <UpdateModel > updateAllColumns (PersonRecord row ,
166166 UpdateDSL <UpdateModel > dsl ) {
167- return dsl .set (id ).equalTo (record ::getId )
168- .set (firstName ).equalTo (record ::getFirstName )
169- .set (lastName ).equalTo (record ::getLastName )
170- .set (birthDate ).equalTo (record ::getBirthDate )
171- .set (employed ).equalTo (record ::getEmployed )
172- .set (occupation ).equalTo (record ::getOccupation )
173- .set (addressId ).equalTo (record ::getAddressId );
167+ return dsl .set (id ).equalTo (row ::getId )
168+ .set (firstName ).equalTo (row ::getFirstName )
169+ .set (lastName ).equalTo (row ::getLastName )
170+ .set (birthDate ).equalTo (row ::getBirthDate )
171+ .set (employed ).equalTo (row ::getEmployed )
172+ .set (occupation ).equalTo (row ::getOccupation )
173+ .set (addressId ).equalTo (row ::getAddressId );
174174 }
175175
176- static UpdateDSL <UpdateModel > updateSelectiveColumns (PersonRecord record ,
176+ static UpdateDSL <UpdateModel > updateSelectiveColumns (PersonRecord row ,
177177 UpdateDSL <UpdateModel > dsl ) {
178- return dsl .set (id ).equalToWhenPresent (record ::getId )
179- .set (firstName ).equalToWhenPresent (record ::getFirstName )
180- .set (lastName ).equalToWhenPresent (record ::getLastName )
181- .set (birthDate ).equalToWhenPresent (record ::getBirthDate )
182- .set (employed ).equalToWhenPresent (record ::getEmployed )
183- .set (occupation ).equalToWhenPresent (record ::getOccupation )
184- .set (addressId ).equalToWhenPresent (record ::getAddressId );
178+ return dsl .set (id ).equalToWhenPresent (row ::getId )
179+ .set (firstName ).equalToWhenPresent (row ::getFirstName )
180+ .set (lastName ).equalToWhenPresent (row ::getLastName )
181+ .set (birthDate ).equalToWhenPresent (row ::getBirthDate )
182+ .set (employed ).equalToWhenPresent (row ::getEmployed )
183+ .set (occupation ).equalToWhenPresent (row ::getOccupation )
184+ .set (addressId ).equalToWhenPresent (row ::getAddressId );
185185 }
186186
187- default int updateByPrimaryKey (PersonRecord record ) {
187+ default int updateByPrimaryKey (PersonRecord row ) {
188188 return update (c ->
189- c .set (firstName ).equalTo (record ::getFirstName )
190- .set (lastName ).equalTo (record ::getLastName )
191- .set (birthDate ).equalTo (record ::getBirthDate )
192- .set (employed ).equalTo (record ::getEmployed )
193- .set (occupation ).equalTo (record ::getOccupation )
194- .set (addressId ).equalTo (record ::getAddressId )
195- .where (id , isEqualTo (record ::getId ))
189+ c .set (firstName ).equalTo (row ::getFirstName )
190+ .set (lastName ).equalTo (row ::getLastName )
191+ .set (birthDate ).equalTo (row ::getBirthDate )
192+ .set (employed ).equalTo (row ::getEmployed )
193+ .set (occupation ).equalTo (row ::getOccupation )
194+ .set (addressId ).equalTo (row ::getAddressId )
195+ .where (id , isEqualTo (row ::getId ))
196196 );
197197 }
198198
199- default int updateByPrimaryKeySelective (PersonRecord record ) {
199+ default int updateByPrimaryKeySelective (PersonRecord row ) {
200200 return update (c ->
201- c .set (firstName ).equalToWhenPresent (record ::getFirstName )
202- .set (lastName ).equalToWhenPresent (record ::getLastName )
203- .set (birthDate ).equalToWhenPresent (record ::getBirthDate )
204- .set (employed ).equalToWhenPresent (record ::getEmployed )
205- .set (occupation ).equalToWhenPresent (record ::getOccupation )
206- .set (addressId ).equalToWhenPresent (record ::getAddressId )
207- .where (id , isEqualTo (record ::getId ))
201+ c .set (firstName ).equalToWhenPresent (row ::getFirstName )
202+ .set (lastName ).equalToWhenPresent (row ::getLastName )
203+ .set (birthDate ).equalToWhenPresent (row ::getBirthDate )
204+ .set (employed ).equalToWhenPresent (row ::getEmployed )
205+ .set (occupation ).equalToWhenPresent (row ::getOccupation )
206+ .set (addressId ).equalToWhenPresent (row ::getAddressId )
207+ .where (id , isEqualTo (row ::getId ))
208208 );
209209 }
210210}
0 commit comments