Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
common
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
common
Commits
59d59db7
Commit
59d59db7
authored
Jul 31, 2019
by
张永
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.egolm.com/key/common.git
parents
4a9692aa
4152889d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
328 additions
and
454 deletions
+328
-454
DateUtil.java
src/main/java/com/egolm/common/DateUtil.java
+0
-1
AbstractDialect.java
...n/java/com/egolm/common/jdbc/dialect/AbstractDialect.java
+0
-344
Dialect.java
src/main/java/com/egolm/common/jdbc/dialect/Dialect.java
+325
-106
MySqlDialect.java
...main/java/com/egolm/common/jdbc/dialect/MySqlDialect.java
+1
-1
OracleDialect.java
...ain/java/com/egolm/common/jdbc/dialect/OracleDialect.java
+1
-1
SqlServerDialect.java
.../java/com/egolm/common/jdbc/dialect/SqlServerDialect.java
+1
-1
No files found.
src/main/java/com/egolm/common/DateUtil.java
View file @
59d59db7
package
com
.
egolm
.
common
;
package
com
.
egolm
.
common
;
import
java.text.DateFormat
;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
...
src/main/java/com/egolm/common/jdbc/dialect/AbstractDialect.java
deleted
100644 → 0
View file @
4a9692aa
This diff is collapsed.
Click to expand it.
src/main/java/com/egolm/common/jdbc/dialect/Dialect.java
View file @
59d59db7
This diff is collapsed.
Click to expand it.
src/main/java/com/egolm/common/jdbc/dialect/MySqlDialect.java
View file @
59d59db7
...
@@ -14,7 +14,7 @@ import com.egolm.common.jdbc.dialect.bean.Desc;
...
@@ -14,7 +14,7 @@ import com.egolm.common.jdbc.dialect.bean.Desc;
* @author 曲欣亮
* @author 曲欣亮
* @since 2012-12-14
* @since 2012-12-14
*/
*/
public
class
MySqlDialect
extends
Abstract
Dialect
{
public
class
MySqlDialect
implements
Dialect
{
public
static
final
String
FMT_MYSQL_TIME
=
"%Y-%m-%d %H:%i:%s"
;
public
static
final
String
FMT_MYSQL_TIME
=
"%Y-%m-%d %H:%i:%s"
;
public
static
final
String
FMT_MYSQL_DATE
=
"%Y-%m-%d"
;
public
static
final
String
FMT_MYSQL_DATE
=
"%Y-%m-%d"
;
...
...
src/main/java/com/egolm/common/jdbc/dialect/OracleDialect.java
View file @
59d59db7
...
@@ -13,7 +13,7 @@ import com.egolm.common.jdbc.dialect.bean.Desc;
...
@@ -13,7 +13,7 @@ import com.egolm.common.jdbc.dialect.bean.Desc;
* @author 曲欣亮
* @author 曲欣亮
* @since 2012-12-14
* @since 2012-12-14
*/
*/
public
class
OracleDialect
extends
Abstract
Dialect
{
public
class
OracleDialect
implements
Dialect
{
public
static
final
String
FMT_ORACLE_TIME
=
"yyyy-mm-dd hh24:mi:ss"
;
public
static
final
String
FMT_ORACLE_TIME
=
"yyyy-mm-dd hh24:mi:ss"
;
public
static
final
String
FMT_ORACLE_DATE
=
"yyyy-mm-dd"
;
public
static
final
String
FMT_ORACLE_DATE
=
"yyyy-mm-dd"
;
...
...
src/main/java/com/egolm/common/jdbc/dialect/SqlServerDialect.java
View file @
59d59db7
...
@@ -14,7 +14,7 @@ import com.egolm.common.jdbc.dialect.bean.Desc;
...
@@ -14,7 +14,7 @@ import com.egolm.common.jdbc.dialect.bean.Desc;
* @author 曲欣亮
* @author 曲欣亮
* @since 2012-12-14
* @since 2012-12-14
*/
*/
public
class
SqlServerDialect
extends
Abstract
Dialect
{
public
class
SqlServerDialect
implements
Dialect
{
public
static
final
String
FMT_SQLSERVER_TIME
=
"120"
;
public
static
final
String
FMT_SQLSERVER_TIME
=
"120"
;
public
static
final
String
FMT_SQLSERVER_DATE
=
"23"
;
public
static
final
String
FMT_SQLSERVER_DATE
=
"23"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment