Skip to content

Commit

Permalink
opt
Browse files Browse the repository at this point in the history
  • Loading branch information
sim-wangyan committed Sep 19, 2020
1 parent 37677ed commit 750a895
Show file tree
Hide file tree
Showing 124 changed files with 110 additions and 117 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -8,7 +8,7 @@

[WIKI](https://github.com/x-ream/sqli/wiki)

sqli/sqli-api
sqli/sqli-builder
sqli/sqli-core
sqli/sqli-dialect
sqli/sqli-repo
Expand Down
5 changes: 2 additions & 3 deletions pom.xml
Expand Up @@ -11,11 +11,10 @@
<description>http://sqli.xream.io</description>
<url>http://sqli.xream.io</url>
<modules>
<module>sqli-builder</module>
<module>sqli-core</module>
<module>sqli-dialect</module>
<module>sqli-repo</module>
<module>sqli-builder</module>
<module>sqli-api</module>
<module>sqli-dialect</module>
</modules>

<properties>
Expand Down
10 changes: 1 addition & 9 deletions sqli-api/pom.xml → sqli-builder/pom.xml
Expand Up @@ -9,15 +9,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>sqli-api</artifactId>

<dependencies>
<dependency>
<groupId>io.xream.sqli</groupId>
<artifactId>sqli-core</artifactId>
<version>${sqli.version}</version>
</dependency>
</dependencies>
<artifactId>sqli-builder</artifactId>


</project>
Expand Up @@ -19,7 +19,7 @@
package io.xream.sqli.builder;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.xream.sqli.api.Routable;
import io.xream.sqli.core.Routable;
import io.xream.sqli.core.Mappable;
import io.xream.sqli.core.PropertyMapping;
import io.xream.sqli.core.ResultMapHelpful;
Expand Down
Expand Up @@ -19,7 +19,7 @@
package io.xream.sqli.builder;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.xream.sqli.api.Routable;
import io.xream.sqli.core.Routable;

import java.util.List;

Expand Down
Expand Up @@ -20,7 +20,7 @@

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.xream.sqli.annotation.X;
import io.xream.sqli.api.Routable;
import io.xream.sqli.core.Routable;
import io.xream.sqli.core.Mappable;
import io.xream.sqli.parser.Parsed;
import io.xream.sqli.parser.Parser;
Expand Down
Expand Up @@ -19,7 +19,7 @@
package io.xream.sqli.builder;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.xream.sqli.api.Routable;
import io.xream.sqli.core.Routable;

import java.util.List;

Expand Down
Expand Up @@ -26,17 +26,17 @@
* @Author Sim
*/
public final class PropertyMapping {
private Map<String, String> propertyMappingMap = new HashMap<String, String>();
// private Map<String, String> propertyMappingMap = new HashMap<String, String>();
private Map<String, String> columnPropertyMap = new HashMap<String, String>();

public void put(String property, String mapper) {
this.propertyMappingMap.put(property, mapper);
// this.propertyMappingMap.put(property, mapper);
this.columnPropertyMap.put(mapper, property);
}

public String mapper(String property) {
return this.propertyMappingMap.get(property);
}
// public String mapper(String property) {
// return this.propertyMappingMap.get(property);
// }

public String property(String mapper) {
String property = this.columnPropertyMap.get(mapper);
Expand All @@ -45,9 +45,4 @@ public String property(String mapper) {
return property;
}

@Override
public String toString() {
return "PropertyMapping [propertyMappingMap=" + propertyMappingMap + ", columnPropertyMap=" + columnPropertyMap
+ "]";
}
}
Expand Up @@ -16,7 +16,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.xream.sqli.api;
package io.xream.sqli.core;

/**
* to find target unit,
Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions sqli-core/pom.xml
Expand Up @@ -11,4 +11,13 @@

<artifactId>sqli-core</artifactId>

<dependencies>
<dependency>
<groupId>io.xream.sqli</groupId>
<artifactId>sqli-builder</artifactId>
<version>${sqli.version}</version>
</dependency>
</dependencies>


</project>
Expand Up @@ -21,8 +21,8 @@
import io.xream.sqli.builder.Criteria;
import io.xream.sqli.builder.RefreshCondition;
import io.xream.sqli.builder.RemoveRefreshCreate;
import io.xream.sqli.internal.RowHandler;
import io.xream.sqli.internal.Typed;
import io.xream.sqli.core.RowHandler;
import io.xream.sqli.core.Typed;
import io.xream.sqli.page.Page;

import java.util.List;
Expand Down
Expand Up @@ -18,6 +18,8 @@
*/
package io.xream.sqli.api;

import io.xream.sqli.core.NativeSupport;

/**
* @Author Sim
*/
Expand Down
Expand Up @@ -19,7 +19,7 @@
package io.xream.sqli.api;

import io.xream.sqli.builder.Criteria;
import io.xream.sqli.internal.RowHandler;
import io.xream.sqli.core.RowHandler;
import io.xream.sqli.page.Page;

import java.util.List;
Expand Down
Expand Up @@ -21,7 +21,7 @@
import io.xream.sqli.core.ResultMapHelpful;
import io.xream.sqli.core.SqlScript;
import io.xream.sqli.exception.PersistenceException;
import io.xream.sqli.internal.Dialect;
import io.xream.sqli.core.Dialect;
import io.xream.sqli.parser.BeanElement;
import io.xream.sqli.parser.Parsed;
import io.xream.sqli.parser.Parser;
Expand Down
Expand Up @@ -20,7 +20,7 @@

import io.xream.sqli.exception.ParsingException;
import io.xream.sqli.exception.PersistenceException;
import io.xream.sqli.internal.Dialect;
import io.xream.sqli.core.Dialect;
import io.xream.sqli.parser.BeanElement;
import io.xream.sqli.parser.Parsed;
import io.xream.sqli.util.BeanUtil;
Expand Down
Expand Up @@ -16,7 +16,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.xream.sqli.internal;
package io.xream.sqli.core;

import io.xream.sqli.converter.DataObjectConverter;
import io.xream.sqli.parser.BeanElement;
Expand Down
Expand Up @@ -16,10 +16,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.xream.sqli.internal;
package io.xream.sqli.core;


import io.xream.sqli.core.ValuePost;
import io.xream.sqli.parser.BeanElement;

import java.util.Collection;
Expand Down
Expand Up @@ -16,7 +16,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.xream.sqli.internal;
package io.xream.sqli.core;

/**
* @Author Sim
Expand Down
Expand Up @@ -16,9 +16,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.xream.sqli.internal;

import io.xream.sqli.core.Parseable;
package io.xream.sqli.core;

import java.util.Collection;
import java.util.List;
Expand Down
Expand Up @@ -16,7 +16,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.xream.sqli.internal;
package io.xream.sqli.core;

/**
* @Author Sim
Expand Down
Expand Up @@ -16,7 +16,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.xream.sqli.api;
package io.xream.sqli.core;

import java.util.List;
import java.util.Map;
Expand Down
Expand Up @@ -16,7 +16,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.xream.sqli.internal;
package io.xream.sqli.core;

import io.xream.sqli.builder.Criteria;
import io.xream.sqli.builder.RefreshCondition;
Expand Down
Expand Up @@ -16,7 +16,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.xream.sqli.internal;
package io.xream.sqli.core;

import io.xream.sqli.api.BaseRepository;

Expand Down
Expand Up @@ -16,10 +16,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.xream.sqli.internal;
package io.xream.sqli.core;

import io.xream.sqli.converter.DataObjectConverter;
import io.xream.sqli.core.ResultMapHelpful;
import io.xream.sqli.parser.Parsed;
import io.xream.sqli.util.JsonStyleMapUtil;

Expand Down
Expand Up @@ -16,7 +16,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.xream.sqli.internal;
package io.xream.sqli.core;

/**
* @Author Sim
Expand Down
Expand Up @@ -16,7 +16,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.xream.sqli.internal;
package io.xream.sqli.core;

/**
* @Author Sim
Expand Down
2 changes: 1 addition & 1 deletion sqli-dialect/pom.xml
Expand Up @@ -14,7 +14,7 @@

<dependency>
<groupId>io.xream.sqli</groupId>
<artifactId>sqli-api</artifactId>
<artifactId>sqli-core</artifactId>
<version>${sqli.version}</version>
</dependency>

Expand Down
Expand Up @@ -19,7 +19,7 @@
package io.xream.sqli.dialect;

import io.xream.sqli.core.SqlScript;
import io.xream.sqli.internal.Dialect;
import io.xream.sqli.core.Dialect;
import io.xream.sqli.parser.BeanElement;
import io.xream.sqli.util.BeanUtil;
import io.xream.sqli.util.JsonWrapper;
Expand Down
Expand Up @@ -20,7 +20,7 @@

import io.xream.sqli.exception.NotSupportedException;
import io.xream.sqli.exception.PersistenceException;
import io.xream.sqli.internal.Dialect;
import io.xream.sqli.core.Dialect;
import io.xream.sqli.parser.BeanElement;
import io.xream.sqli.util.BeanUtil;
import io.xream.sqli.util.JsonWrapper;
Expand Down
2 changes: 1 addition & 1 deletion sqli-repo/pom.xml
Expand Up @@ -14,7 +14,7 @@
<dependencies>
<dependency>
<groupId>io.xream.sqli</groupId>
<artifactId>sqli-api</artifactId>
<artifactId>sqli-builder</artifactId>
<version>${sqli.version}</version>
</dependency>
<dependency>
Expand Down
Expand Up @@ -16,23 +16,23 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.xream.sqli.repository.core;
package io.xream.sqli.core.core;


import io.xream.sqli.api.NativeSupport;
import io.xream.sqli.core.NativeSupport;
import io.xream.sqli.builder.Criteria;
import io.xream.sqli.builder.InCondition;
import io.xream.sqli.builder.KV;
import io.xream.sqli.builder.RefreshCondition;
import io.xream.sqli.cache.L2CacheResolver;
import io.xream.sqli.exception.QueryException;
import io.xream.sqli.internal.KeyOne;
import io.xream.sqli.internal.Repository;
import io.xream.sqli.internal.RowHandler;
import io.xream.sqli.core.KeyOne;
import io.xream.sqli.core.Repository;
import io.xream.sqli.core.RowHandler;
import io.xream.sqli.page.Page;
import io.xream.sqli.parser.Parsed;
import io.xream.sqli.parser.Parser;
import io.xream.sqli.repository.dao.Dao;
import io.xream.sqli.core.dao.Dao;
import io.xream.sqli.util.ParserUtil;
import io.xream.sqli.util.SqliExceptionUtil;
import io.xream.sqli.util.SqliLoggerProxy;
Expand Down
Expand Up @@ -16,7 +16,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.xream.sqli.repository.core;
package io.xream.sqli.core.core;

import io.xream.sqli.parser.Parsed;
import io.xream.sqli.util.ParserUtil;
Expand Down
Expand Up @@ -16,7 +16,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.xream.sqli.repository.core;
package io.xream.sqli.core.core;

import io.xream.sqli.builder.InCondition;
import io.xream.sqli.filter.BaseTypeFilter;
Expand Down
Expand Up @@ -16,14 +16,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.xream.sqli.repository.dao;
package io.xream.sqli.core.dao;

import io.xream.sqli.builder.Criteria;
import io.xream.sqli.builder.InCondition;
import io.xream.sqli.builder.RefreshCondition;
import io.xream.sqli.cache.QueryForCache;
import io.xream.sqli.internal.KeyOne;
import io.xream.sqli.internal.RowHandler;
import io.xream.sqli.core.KeyOne;
import io.xream.sqli.core.RowHandler;
import io.xream.sqli.page.Page;

import java.util.List;
Expand Down

0 comments on commit 750a895

Please sign in to comment.