Skip to content

Commit

Permalink
fix: update license
Browse files Browse the repository at this point in the history
  • Loading branch information
teletha committed Jan 1, 2024
1 parent 09be090 commit 94457e5
Show file tree
Hide file tree
Showing 139 changed files with 708 additions and 708 deletions.
2 changes: 1 addition & 1 deletion src/main/java/typewriter/api/Accumulable.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/api/Constraint.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/api/Deletable.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
32 changes: 16 additions & 16 deletions src/main/java/typewriter/api/Migration.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*/
package typewriter.api;

public abstract class Migration {

protected final void changelog() {

}
/*
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*/
package typewriter.api;

public abstract class Migration {

protected final void changelog() {

}
}
2 changes: 1 addition & 1 deletion src/main/java/typewriter/api/QueryExecutor.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/api/Queryable.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/api/Restorable.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/api/Specifier.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/api/Transactional.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/api/Updatable.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/api/model/BackendedModel.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/api/model/IdentifiableModel.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
44 changes: 22 additions & 22 deletions src/main/java/typewriter/h2/Functions.java
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*/
package typewriter.h2;

import kiss.I;

public class Functions {

public static int jsonArrayLength(String json) {
return I.json(json).find("*").size();
}

public static boolean jsonArrayContains(String json, String value) {
return I.json(json).asMap(String.class).containsValue(value);
}
/*
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*/
package typewriter.h2;

import kiss.I;

public class Functions {

public static int jsonArrayLength(String json) {
return I.json(json).find("*").size();
}

public static boolean jsonArrayContains(String json, String value) {
return I.json(json).asMap(String.class).containsValue(value);
}
}
2 changes: 1 addition & 1 deletion src/main/java/typewriter/h2/H2.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/h2/H2Model.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/maria/MariaDB.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/maria/MariaModel.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/mongo/Mongo.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/mongo/MongoConstraint.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/mongo/MongoModel.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/mongo/MongoQuery.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/rdb/ConnectionPool.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/rdb/Dialect.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/rdb/RDB.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/rdb/RDBCodec.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/rdb/RDBConstraint.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/rdb/RDBQuery.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/rdb/SQL.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/sqlite/SQLite.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/typewriter/sqlite/SQLiteModel.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/project/java/Project.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/typewriter/api/AccumulableTestSet.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/typewriter/api/DateConstraintTestSet.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/typewriter/api/DeletableTestSet.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
80 changes: 40 additions & 40 deletions src/test/java/typewriter/api/EnumTestSet.java
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*/
package typewriter.api;

import java.lang.annotation.RetentionPolicy;

import org.junit.jupiter.api.Test;

import kiss.Signal;
import typewriter.api.model.DerivableModel;

public interface EnumTestSet extends Testable {

@Test
default void codec() {
QueryExecutor<EnumValue, Signal<EnumValue>, ?, ?> dao = createEmptyDB(EnumValue.class);
dao.update(new EnumValue(RetentionPolicy.CLASS));

EnumValue person = dao.limit(1).waitForTerminate().to().v;
assert person.policy.equals(RetentionPolicy.CLASS);
}

static class EnumValue extends DerivableModel {

public RetentionPolicy policy;

private EnumValue() {
}

private EnumValue(RetentionPolicy policy) {
this.policy = policy;
}
}
/*
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*/
package typewriter.api;

import java.lang.annotation.RetentionPolicy;

import org.junit.jupiter.api.Test;

import kiss.Signal;
import typewriter.api.model.DerivableModel;

public interface EnumTestSet extends Testable {

@Test
default void codec() {
QueryExecutor<EnumValue, Signal<EnumValue>, ?, ?> dao = createEmptyDB(EnumValue.class);
dao.update(new EnumValue(RetentionPolicy.CLASS));

EnumValue person = dao.limit(1).waitForTerminate().to().v;
assert person.policy.equals(RetentionPolicy.CLASS);
}

static class EnumValue extends DerivableModel {

public RetentionPolicy policy;

private EnumValue() {
}

private EnumValue(RetentionPolicy policy) {
this.policy = policy;
}
}
}
2 changes: 1 addition & 1 deletion src/test/java/typewriter/api/IntConstraintTestSet.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023 The TYPEWRITER Development Team
* Copyright (C) 2024 The TYPEWRITER Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 94457e5

Please sign in to comment.