Skip to content

Commit

Permalink
调整目录结构。
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasy0v0 committed Nov 29, 2024
1 parent b65e015 commit 5590a34
Show file tree
Hide file tree
Showing 19 changed files with 34 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.github.fantasy0v0.swift.jdbc.junit;

import com.github.fantasy0v0.swift.jdbc.ConnectionPoolUtil;
import com.github.fantasy0v0.swift.jdbc.ConnectionReference;
import com.github.fantasy0v0.swift.jdbc.ConnectionTransaction;
import com.github.fantasy0v0.swift.jdbc.connection.ConnectionReference;
import com.github.fantasy0v0.swift.jdbc.connection.ConnectionTransaction;
import com.github.fantasy0v0.swift.jdbc.JDBC;
import org.junit.jupiter.api.extension.AfterTestExecutionCallback;
import org.junit.jupiter.api.extension.BeforeTestExecutionCallback;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.github.fantasy0v0.swift.jdbc.spring;

import com.github.fantasy0v0.swift.jdbc.ConnectionPool;
import com.github.fantasy0v0.swift.jdbc.ConnectionReference;
import com.github.fantasy0v0.swift.jdbc.connection.ConnectionPool;
import com.github.fantasy0v0.swift.jdbc.connection.ConnectionReference;

import javax.sql.DataSource;
import java.sql.SQLException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.github.fantasy0v0.swift.jdbc.spring;

import com.github.fantasy0v0.swift.jdbc.ConnectionReference;
import com.github.fantasy0v0.swift.jdbc.ConnectionTransaction;
import com.github.fantasy0v0.swift.jdbc.connection.ConnectionReference;
import com.github.fantasy0v0.swift.jdbc.connection.ConnectionTransaction;
import org.springframework.jdbc.datasource.DataSourceUtils;

import javax.sql.DataSource;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.fantasy0v0.swift.jdbc.spring;

import com.github.fantasy0v0.swift.jdbc.ConnectionTransaction;
import com.github.fantasy0v0.swift.jdbc.connection.ConnectionTransaction;
import com.github.fantasy0v0.swift.jdbc.util.LogUtil;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.TransactionDefinition;
Expand Down
4 changes: 3 additions & 1 deletion jdbc-spring-support/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import com.github.fantasy0v0.swift.jdbc.connection.ConnectionPool;

module swift.jdbc.spring.support {
requires swift.jdbc;
requires spring.context;
requires spring.jdbc;
requires spring.tx;

provides com.github.fantasy0v0.swift.jdbc.ConnectionPool with com.github.fantasy0v0.swift.jdbc.spring.SpringConnectionPool;
provides ConnectionPool with com.github.fantasy0v0.swift.jdbc.spring.SpringConnectionPool;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.github.fantasy0v0.swift.jdbc;

import com.github.fantasy0v0.swift.jdbc.connection.ConnectionPool;
import com.github.fantasy0v0.swift.jdbc.connection.ConnectionReference;

import javax.sql.DataSource;
import java.sql.SQLException;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.github.fantasy0v0.swift.jdbc;

import com.github.fantasy0v0.swift.jdbc.connection.ConnectionReference;
import com.github.fantasy0v0.swift.jdbc.exception.SwiftSQLException;
import com.github.fantasy0v0.swift.jdbc.util.LogUtil;

import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.text.NumberFormat;
import java.util.Arrays;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.fantasy0v0.swift.jdbc;

import com.github.fantasy0v0.swift.jdbc.connection.DefaultConnectionPool;
import com.github.fantasy0v0.swift.jdbc.connection.ConnectionPool;
import com.github.fantasy0v0.swift.jdbc.connection.impl.DefaultConnectionPool;
import com.github.fantasy0v0.swift.jdbc.dialect.ANSI;
import com.github.fantasy0v0.swift.jdbc.dialect.SQLDialect;
import com.github.fantasy0v0.swift.jdbc.exception.SwiftException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package com.github.fantasy0v0.swift.jdbc;

import com.github.fantasy0v0.swift.jdbc.connection.ConnectionReference;
import com.github.fantasy0v0.swift.jdbc.connection.ConnectionTransaction;
import com.github.fantasy0v0.swift.jdbc.util.LogUtil;

import javax.sql.DataSource;
import java.sql.SQLException;
import java.text.NumberFormat;
import java.util.function.Supplier;

public class TransactionBuilder<T> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.github.fantasy0v0.swift.jdbc;

import com.github.fantasy0v0.swift.jdbc.connection.ConnectionReference;
import com.github.fantasy0v0.swift.jdbc.exception.SwiftSQLException;

import javax.sql.DataSource;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.github.fantasy0v0.swift.jdbc;

import com.github.fantasy0v0.swift.jdbc.connection.ConnectionReference;
import com.github.fantasy0v0.swift.jdbc.type.TypeSetHandler;
import com.github.fantasy0v0.swift.jdbc.util.LogUtil;

import javax.sql.DataSource;
import java.sql.*;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.fantasy0v0.swift.jdbc;
package com.github.fantasy0v0.swift.jdbc.connection;

import javax.sql.DataSource;
import java.sql.SQLException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.fantasy0v0.swift.jdbc;
package com.github.fantasy0v0.swift.jdbc.connection;

import java.sql.Connection;
import java.sql.SQLException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.fantasy0v0.swift.jdbc;
package com.github.fantasy0v0.swift.jdbc.connection;

import java.sql.SQLException;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.github.fantasy0v0.swift.jdbc.connection;
package com.github.fantasy0v0.swift.jdbc.connection.impl;

import com.github.fantasy0v0.swift.jdbc.ConnectionPool;
import com.github.fantasy0v0.swift.jdbc.ConnectionReference;
import com.github.fantasy0v0.swift.jdbc.connection.ConnectionPool;
import com.github.fantasy0v0.swift.jdbc.connection.ConnectionReference;

import javax.sql.DataSource;
import java.sql.SQLException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.github.fantasy0v0.swift.jdbc.connection;
package com.github.fantasy0v0.swift.jdbc.connection.impl;

import com.github.fantasy0v0.swift.jdbc.ConnectionReference;
import com.github.fantasy0v0.swift.jdbc.ConnectionTransaction;
import com.github.fantasy0v0.swift.jdbc.connection.ConnectionReference;
import com.github.fantasy0v0.swift.jdbc.connection.ConnectionTransaction;
import com.github.fantasy0v0.swift.jdbc.util.LogUtil;

import javax.sql.DataSource;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.github.fantasy0v0.swift.jdbc.connection;
package com.github.fantasy0v0.swift.jdbc.connection.impl;

import com.github.fantasy0v0.swift.jdbc.ConnectionReference;
import com.github.fantasy0v0.swift.jdbc.ConnectionTransaction;
import com.github.fantasy0v0.swift.jdbc.connection.ConnectionReference;
import com.github.fantasy0v0.swift.jdbc.connection.ConnectionTransaction;
import com.github.fantasy0v0.swift.jdbc.util.LogUtil;

import java.sql.Connection;
Expand Down
3 changes: 2 additions & 1 deletion jdbc/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
exports com.github.fantasy0v0.swift.jdbc.dialect;
exports com.github.fantasy0v0.swift.jdbc.type;
exports com.github.fantasy0v0.swift.jdbc.util;
exports com.github.fantasy0v0.swift.jdbc.connection;

uses com.github.fantasy0v0.swift.jdbc.ConnectionPool;
uses com.github.fantasy0v0.swift.jdbc.connection.ConnectionPool;
}

0 comments on commit 5590a34

Please sign in to comment.