Skip to content

Commit ae7dce7

Browse files
committed
Rename functions in SQL utility classes for consistency and clarity
1 parent 5744c7b commit ae7dce7

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/main/kotlin/org/domaframework/doma/intellij/formatter/util/CreateTableUtil.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import org.domaframework.doma.intellij.formatter.block.group.keyword.create.SqlC
2727
import org.domaframework.doma.intellij.psi.SqlTypes
2828

2929
object CreateTableUtil {
30-
fun getColumnDefinitionGroup(
30+
fun getCreateTableClauseSubGroup(
3131
lastGroup: SqlBlock,
3232
child: ASTNode,
3333
sqlBlockFormattingCtx: SqlBlockFormattingContext,

src/main/kotlin/org/domaframework/doma/intellij/formatter/util/InsertClauseUtil.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import org.domaframework.doma.intellij.formatter.block.group.keyword.insert.SqlI
2121
import org.domaframework.doma.intellij.formatter.block.group.keyword.insert.SqlInsertQueryGroupBlock
2222

2323
object InsertClauseUtil {
24-
fun getColumnGroup(
24+
fun getInsertClauseSubGroup(
2525
lastGroup: SqlBlock,
2626
child: ASTNode,
2727
sqlBlockFormattingCtx: SqlBlockFormattingContext,

src/main/kotlin/org/domaframework/doma/intellij/formatter/util/NotQueryGroupUtil.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import org.domaframework.doma.intellij.formatter.block.SqlBlock
2020
import org.domaframework.doma.intellij.formatter.block.group.subgroup.SqlParallelListBlock
2121

2222
object NotQueryGroupUtil {
23-
fun getOtherGroup(
23+
fun getSubGroup(
2424
lastGroup: SqlBlock,
2525
child: ASTNode,
2626
sqlBlockFormattingCtx: SqlBlockFormattingContext,

src/main/kotlin/org/domaframework/doma/intellij/formatter/util/SqlBlockUtil.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,19 +234,19 @@ class SqlBlockUtil(
234234
is SqlKeywordGroupBlock -> {
235235
// List-type test data for IN clause
236236
NotQueryGroupUtil
237-
.getOtherGroup(lastGroup, child, sqlBlockFormattingCtx)
237+
.getSubGroup(lastGroup, child, sqlBlockFormattingCtx)
238238
?.let { return it }
239239

240240
CreateTableUtil
241-
.getColumnDefinitionGroup(lastGroup, child, sqlBlockFormattingCtx)
241+
.getCreateTableClauseSubGroup(lastGroup, child, sqlBlockFormattingCtx)
242242
?.let { return it }
243243

244244
InsertClauseUtil
245-
.getColumnGroup(lastGroup, child, sqlBlockFormattingCtx)
245+
.getInsertClauseSubGroup(lastGroup, child, sqlBlockFormattingCtx)
246246
?.let { return it }
247247

248248
UpdateClauseUtil
249-
.getUpdateClauseGroup(
249+
.getUpdateClauseSubGroup(
250250
lastGroup,
251251
child,
252252
sqlBlockFormattingCtx,

src/main/kotlin/org/domaframework/doma/intellij/formatter/util/UpdateClauseUtil.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import org.domaframework.doma.intellij.formatter.block.group.subgroup.SqlSubQuer
2323
import org.domaframework.doma.intellij.formatter.block.group.subgroup.SqlUpdateValueGroupBlock
2424

2525
object UpdateClauseUtil {
26-
fun getUpdateClauseGroup(
26+
fun getUpdateClauseSubGroup(
2727
lastGroup: SqlBlock,
2828
child: ASTNode,
2929
sqlBlockFormattingCtx: SqlBlockFormattingContext,

0 commit comments

Comments
 (0)