Skip to content

Commit a179117

Browse files
committed
Fix capitalization of "Dao" to "DAO" in documentation
1 parent 5fa1791 commit a179117

File tree

19 files changed

+30
-30
lines changed

19 files changed

+30
-30
lines changed

src/main/kotlin/org/domaframework/doma/intellij/action/dao/GenerateSqlAction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import org.domaframework.doma.intellij.common.psi.PsiDaoMethod
2828
import org.domaframework.doma.intellij.common.util.PluginLoggerUtil
2929

3030
/**
31-
* Action class that generates SQL from Dao method
31+
* Action class that generates SQL from DAO method
3232
*/
3333
class GenerateSqlAction : AnAction() {
3434
private var currentFile: PsiFile? = null

src/main/kotlin/org/domaframework/doma/intellij/action/sql/JumpToDaoFromSQLAction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import org.domaframework.doma.intellij.common.isSupportFileType
2727
import org.domaframework.doma.intellij.common.util.PluginLoggerUtil
2828

2929
/***
30-
* Action to jump from SQL file to corresponding Dao function
30+
* Action to jump from SQL file to corresponding DAO function
3131
*/
3232
class JumpToDaoFromSQLAction : AnAction() {
3333
private var currentFile: PsiFile? = null

src/main/kotlin/org/domaframework/doma/intellij/common/FileTypeCheck.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fun getExtension(type: String): String =
3535
}
3636

3737
/**
38-
* Does it match the Dao file type condition?
38+
* Does it match the DAO file type condition?
3939
*/
4040
fun isJavaOrKotlinFileType(daoFile: PsiFile): Boolean {
4141
if (daoFile.virtualFile == null) return false

src/main/kotlin/org/domaframework/doma/intellij/common/dao/DaoMethodUtil.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import org.domaframework.doma.intellij.extension.getModule
4242
import org.jetbrains.kotlin.idea.base.util.module
4343

4444
/**
45-
* Get Dao method corresponding to SQL file
45+
* Get DAO method corresponding to SQL file
4646
*/
4747
fun findDaoMethod(
4848
originalFile: PsiFile,
@@ -120,7 +120,7 @@ private fun getDaoClassName(
120120
): String = methodDaoFilePath.substringBefore(".$extensionName").substringAfter("dao/")
121121

122122
/**
123-
* Get jump destination Dao method file from SQL file
123+
* Get jump destination DAO method file from SQL file
124124
*/
125125
fun findDaoFile(
126126
project: Project,
@@ -136,7 +136,7 @@ fun findDaoFile(
136136
}
137137

138138
/**
139-
* Dao file search for SQL file
139+
* DAO file search for SQL file
140140
*/
141141
private fun searchDaoFile(
142142
module: Module?,
@@ -171,7 +171,7 @@ private fun findDaoClass(
171171
): PsiClass? = module.getJavaClazz(includeTest, daoClassName)
172172

173173
/**
174-
* Generate Dao deployment path from SQL file path
174+
* Generate DAO deployment path from SQL file path
175175
* @param sqlFile SQL File
176176
* @param projectRootPath project content Root Path
177177
* @return
@@ -204,9 +204,9 @@ private fun getDaoPathFromSqlFilePath(
204204
}
205205

206206
/**
207-
* Generate SqlFile path from Dao file path
208-
* @param daoFile Dao File
209-
* @param module The module to which the Dao file belongs
207+
* Generate SqlFile path from DAO file path
208+
* @param daoFile DAO File
209+
* @param module The module to which the DAO file belongs
210210
* @return SqlFile path ex) META-INF/package/dao/DaoClassName/
211211
*/
212212
fun getRelativeSqlFilePathFromDaoFilePath(

src/main/kotlin/org/domaframework/doma/intellij/common/psi/PsiDaoMethod.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import java.io.File
4747
import java.io.IOException
4848

4949
/**
50-
* Class that handles Dao method information
50+
* Class that handles DAO method information
5151
*/
5252
class PsiDaoMethod(
5353
private val psiProject: Project,

src/main/kotlin/org/domaframework/doma/intellij/common/sql/validator/result/ValidationDaoParamResult.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import org.domaframework.doma.intellij.bundle.MessageBundle
2222
import org.domaframework.doma.intellij.common.psi.PsiParentClass
2323

2424
/**
25-
* no Dao parameter matching the name of the field access top was found
25+
* no DAO parameter matching the name of the field access top was found
2626
*/
2727
open class ValidationDaoParamResult(
2828
override val identify: PsiElement,

src/main/kotlin/org/domaframework/doma/intellij/common/util/ForDirectiveUtil.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class ForDirectiveUtil {
178178
targetForItem: PsiElement? = null,
179179
): PsiParentClass? {
180180
// Get the type of the top for directive definition element
181-
// Defined in Dao parameters or static property calls
181+
// Defined in DAO parameters or static property calls
182182
if (forDirectiveBlocks.isEmpty()) return null
183183
val topDirectiveItem = forDirectiveBlocks.first().item
184184
val file = topDirectiveItem.containingFile ?: return null
@@ -290,7 +290,7 @@ class ForDirectiveUtil {
290290
referenceClazz,
291291
)
292292
} else {
293-
// Defined by Dao parameter
293+
// Defined by DAO parameter
294294
if (daoMethod == null) return null
295295

296296
val topElementText =

src/main/kotlin/org/domaframework/doma/intellij/contributor/sql/SqlCompletionContributor.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ import org.domaframework.doma.intellij.setting.SqlLanguage
2727
import org.jetbrains.kotlin.idea.completion.or
2828

2929
/**
30-
* Code completion of SQL bind variables with Dao method arguments
31-
* Valid only for SQL files or @Sql in Dao
30+
* Code completion of SQL bind variables with DAO method arguments
31+
* Valid only for SQL files or @Sql in DAO
3232
*/
3333
open class SqlCompletionContributor : CompletionContributor() {
3434
init {

src/main/kotlin/org/domaframework/doma/intellij/document/generator/DocumentDaoParameterGenerator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class DocumentDaoParameterGenerator(
6767
SqlElForDirective::class.java,
6868
)
6969
if (forDirectiveExpr != null && forDirectiveExpr.getForItem() == searchElement) {
70-
// For elements defined with the for directive, Dao parameters are not searched.
70+
// For elements defined with the for directive, DAO parameters are not searched.
7171
return
7272
}
7373
val daoMethod = findDaoMethod(originalElement.containingFile) ?: return

src/main/kotlin/org/domaframework/doma/intellij/extension/ModuleExtensions.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import org.domaframework.doma.intellij.common.CommonPathParameterUtil
2525
import org.domaframework.doma.intellij.common.dao.getRelativeSqlFilePathFromDaoFilePath
2626

2727
/**
28-
* Get SQL directory corresponding to Dao file
28+
* Get SQL directory corresponding to DAO file
2929
*/
3030
fun Module.getPackagePathFromDaoPath(daoFile: VirtualFile): VirtualFile? {
3131
val contentRoot = this.project.getContentRoot(daoFile)?.path
@@ -52,7 +52,7 @@ fun Module.getJavaClazz(
5252
}
5353

5454
/***
55-
* Get SQL file corresponding to Dao file
55+
* Get SQL file corresponding to DAO file
5656
* @param relativePath SQL file relativePath path ex) META-INF/packageName/dao/DaoClassName/sqlFileName.sql
5757
* @param includeTest true: test source, false: main source
5858
* @return SQL file

0 commit comments

Comments
 (0)