forked from smshen/ParsePDM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
! 修复了一些问题
- Loading branch information
Showing
13 changed files
with
41 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/org/cruldra/pdmviewer/utils/PDM.java → src/org/cruldra/pdmviewer/models/PDM.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package org.cruldra.pdmviewer.utils; | ||
package org.cruldra.pdmviewer.models; | ||
|
||
import java.util.ArrayList; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...rg/cruldra/pdmviewer/utils/PDMColumn.java → ...g/cruldra/pdmviewer/models/PDMColumn.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...org/cruldra/pdmviewer/utils/PDMIndex.java → ...rg/cruldra/pdmviewer/models/PDMIndex.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package org.cruldra.pdmviewer.utils; | ||
package org.cruldra.pdmviewer.models; | ||
|
||
import java.util.ArrayList; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
src/org/cruldra/pdmviewer/utils/PDMKey.java → src/org/cruldra/pdmviewer/models/PDMKey.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package org.cruldra.pdmviewer.utils; | ||
package org.cruldra.pdmviewer.models; | ||
|
||
import java.util.ArrayList; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...a/pdmviewer/utils/PDMPhysicalDiagram.java → .../pdmviewer/models/PDMPhysicalDiagram.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package org.cruldra.pdmviewer.utils; | ||
package org.cruldra.pdmviewer.models; | ||
|
||
import java.util.ArrayList; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...cruldra/pdmviewer/utils/PDMReference.java → ...ruldra/pdmviewer/models/PDMReference.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package org.cruldra.pdmviewer.utils; | ||
package org.cruldra.pdmviewer.models; | ||
|
||
import java.util.ArrayList; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...dra/pdmviewer/utils/PDMReferenceJoin.java → ...ra/pdmviewer/models/PDMReferenceJoin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...org/cruldra/pdmviewer/utils/PDMTable.java → ...rg/cruldra/pdmviewer/models/PDMTable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package org.cruldra.pdmviewer.utils; | ||
package org.cruldra.pdmviewer.models; | ||
|
||
import java.util.ArrayList; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
src/org/cruldra/pdmviewer/utils/PDMUser.java → ...org/cruldra/pdmviewer/models/PDMUser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package org.cruldra.pdmviewer.utils; | ||
package org.cruldra.pdmviewer.models; | ||
|
||
import java.util.ArrayList; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package org.cruldra.pdmviewer.parser | ||
|
||
class PDMParseException(private val msg: String, override val cause: Throwable? = null) : | ||
Exception(msg, cause) { | ||
|
||
} |
3 changes: 2 additions & 1 deletion
3
src/org/cruldra/pdmviewer/utils/Parser.java → src/org/cruldra/pdmviewer/parser/Parser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.cruldra.pdmviewer.utils | ||
|
||
import org.cruldra.pdmviewer.models.PDMColumn | ||
import org.cruldra.pdmviewer.parser.PDMParseException | ||
import java.util.* | ||
|
||
fun PDMColumn.getIbatisType():String{ | ||
return when(val shortName= this.dataType.substringBefore("(")){ | ||
"varchar" , "double"-> shortName.uppercase(Locale.getDefault()) | ||
"datetime" -> "TIMESTAMP" | ||
"int" -> "INTEGER" | ||
else -> throw PDMParseException("ibatis没有匹配的数据类型 $shortName") | ||
} | ||
} |