-
Notifications
You must be signed in to change notification settings - Fork 2
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
116 changed files
with
1,133 additions
and
1,111 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
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
24 changes: 16 additions & 8 deletions
24
src/main/java/org/globsframework/core/metamodel/annotations/AutoIncrement.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,14 +1,22 @@ | ||
package org.globsframework.core.metamodel.annotations; | ||
|
||
import org.globsframework.core.metamodel.GlobType; | ||
import org.globsframework.core.metamodel.GlobTypeLoaderFactory; | ||
import org.globsframework.core.model.Glob; | ||
import org.globsframework.core.model.Key; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
public class AutoIncrement { | ||
public static GlobType TYPE; | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target({ElementType.FIELD}) | ||
public @interface AutoIncrement { | ||
GlobType TYPE = AutoIncrementAnnotationType.TYPE; | ||
@InitUniqueKey | ||
public static Key KEY; | ||
|
||
@InitUniqueGlob | ||
public static Glob INSTANCE; | ||
|
||
static { | ||
GlobTypeLoaderFactory.create(AutoIncrement.class, "AutoIncrement") | ||
.register(GlobCreateFromAnnotation.class, annotation -> INSTANCE) | ||
.load(); | ||
} | ||
} |
22 changes: 0 additions & 22 deletions
22
src/main/java/org/globsframework/core/metamodel/annotations/AutoIncrementAnnotationType.java
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
src/main/java/org/globsframework/core/metamodel/annotations/AutoIncrement_.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.globsframework.core.metamodel.annotations; | ||
|
||
import org.globsframework.core.metamodel.GlobType; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target({ElementType.FIELD}) | ||
public @interface AutoIncrement_ { | ||
GlobType TYPE = AutoIncrement.TYPE; | ||
} |
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 |
---|---|---|
|
@@ -11,5 +11,5 @@ | |
public @interface Comment_ { | ||
String value(); | ||
|
||
GlobType TYPE = CommentType.TYPE; | ||
GlobType TYPE = Comment.TYPE; | ||
} |
23 changes: 16 additions & 7 deletions
23
src/main/java/org/globsframework/core/metamodel/annotations/ContainmentLink.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,14 +1,23 @@ | ||
package org.globsframework.core.metamodel.annotations; | ||
|
||
import org.globsframework.core.metamodel.GlobType; | ||
import org.globsframework.core.metamodel.GlobTypeLoader; | ||
import org.globsframework.core.metamodel.GlobTypeLoaderFactory; | ||
import org.globsframework.core.model.Glob; | ||
import org.globsframework.core.model.Key; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
public class ContainmentLink { | ||
public static GlobType TYPE; | ||
|
||
import static java.lang.annotation.RetentionPolicy.RUNTIME; | ||
@InitUniqueKey | ||
public static Key UNIQUE_KEY; | ||
|
||
@Retention(RUNTIME) | ||
@java.lang.annotation.Target({ElementType.FIELD}) | ||
public @interface ContainmentLink { | ||
GlobType TYPE = ContainmentLinkAnnotationType.DESC; | ||
@InitUniqueGlob | ||
public static Glob UNIQUE_GLOB; | ||
|
||
static { | ||
GlobTypeLoader loader = GlobTypeLoaderFactory.create(ContainmentLink.class, "ContainmentLink"); | ||
loader.register(GlobCreateFromAnnotation.class, annotation -> UNIQUE_GLOB) | ||
.load(); | ||
} | ||
} |
23 changes: 0 additions & 23 deletions
23
...ain/java/org/globsframework/core/metamodel/annotations/ContainmentLinkAnnotationType.java
This file was deleted.
Oops, something went wrong.
5 changes: 4 additions & 1 deletion
5
...rk/core/metamodel/annotations/IsLink.java → ...tamodel/annotations/ContainmentLink_.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,11 +1,14 @@ | ||
package org.globsframework.core.metamodel.annotations; | ||
|
||
import org.globsframework.core.metamodel.GlobType; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
|
||
import static java.lang.annotation.RetentionPolicy.RUNTIME; | ||
|
||
@Retention(RUNTIME) | ||
@java.lang.annotation.Target({ElementType.FIELD}) | ||
public @interface IsLink { | ||
public @interface ContainmentLink_ { | ||
GlobType TYPE = ContainmentLink.TYPE; | ||
} |
31 changes: 23 additions & 8 deletions
31
src/main/java/org/globsframework/core/metamodel/annotations/DefaultBigDecimal.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,15 +1,30 @@ | ||
package org.globsframework.core.metamodel.annotations; | ||
|
||
import org.globsframework.core.metamodel.GlobType; | ||
import org.globsframework.core.metamodel.GlobTypeLoader; | ||
import org.globsframework.core.metamodel.GlobTypeLoaderFactory; | ||
import org.globsframework.core.metamodel.fields.BigDecimalField; | ||
import org.globsframework.core.model.Glob; | ||
import org.globsframework.core.model.Key; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.math.BigDecimal; | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@java.lang.annotation.Target({ElementType.FIELD}) | ||
public @interface DefaultBigDecimal { | ||
String value(); | ||
public class DefaultBigDecimal { | ||
|
||
GlobType TYPE = DefaultBigDecimalAnnotationType.DESC; | ||
public static GlobType DESC; | ||
|
||
public static BigDecimalField VALUE; | ||
|
||
@InitUniqueKey | ||
public static Key UNIQUE_KEY; | ||
|
||
public static Glob create(String defaultBigDecimal) { | ||
return DESC.instantiate().set(VALUE, new BigDecimal(defaultBigDecimal)); | ||
} | ||
|
||
static { | ||
GlobTypeLoader loader = GlobTypeLoaderFactory.create(DefaultBigDecimal.class, "DefaultBigDecimal"); | ||
loader.register(GlobCreateFromAnnotation.class, annotation -> create(((DefaultBigDecimal_) annotation).value())) | ||
.load(); | ||
} | ||
} |
31 changes: 0 additions & 31 deletions
31
...n/java/org/globsframework/core/metamodel/annotations/DefaultBigDecimalAnnotationType.java
This file was deleted.
Oops, something went wrong.
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
28 changes: 20 additions & 8 deletions
28
src/main/java/org/globsframework/core/metamodel/annotations/DefaultBoolean.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,15 +1,27 @@ | ||
package org.globsframework.core.metamodel.annotations; | ||
|
||
import org.globsframework.core.metamodel.GlobType; | ||
import org.globsframework.core.metamodel.GlobTypeLoader; | ||
import org.globsframework.core.metamodel.GlobTypeLoaderFactory; | ||
import org.globsframework.core.metamodel.fields.BooleanField; | ||
import org.globsframework.core.model.Glob; | ||
import org.globsframework.core.model.Key; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
public class DefaultBoolean { | ||
public static GlobType TYPE; | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@java.lang.annotation.Target({ElementType.FIELD}) | ||
public @interface DefaultBoolean { | ||
boolean value(); | ||
public static BooleanField VALUE; | ||
|
||
GlobType TYPE = DefaultBooleanAnnotationType.TYPE; | ||
@InitUniqueKey | ||
public static Key UNIQUE_KEY; | ||
|
||
public static Glob create(DefaultBoolean_ defaultDouble) { | ||
return TYPE.instantiate().set(VALUE, defaultDouble.value()); | ||
} | ||
|
||
static { | ||
GlobTypeLoader loader = GlobTypeLoaderFactory.create(DefaultBoolean.class, "DefaultBoolean"); | ||
loader.register(GlobCreateFromAnnotation.class, annotation -> create((DefaultBoolean_) annotation)) | ||
.load(); | ||
} | ||
} |
28 changes: 0 additions & 28 deletions
28
...main/java/org/globsframework/core/metamodel/annotations/DefaultBooleanAnnotationType.java
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
src/main/java/org/globsframework/core/metamodel/annotations/DefaultBoolean_.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.globsframework.core.metamodel.annotations; | ||
|
||
import org.globsframework.core.metamodel.GlobType; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@java.lang.annotation.Target({ElementType.FIELD}) | ||
public @interface DefaultBoolean_ { | ||
boolean value(); | ||
|
||
GlobType TYPE = DefaultBoolean.TYPE; | ||
} |
Oops, something went wrong.