Skip to content

Commit

Permalink
runtime-field: Regenerate field classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyknic committed Mar 3, 2017
1 parent 898e45c commit b4802e1
Show file tree
Hide file tree
Showing 149 changed files with 1,009 additions and 789 deletions.
@@ -1,13 +1,13 @@
/**
*
*
* Copyright (c) 2006-2017, Speedment, Inc. All Rights Reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); You may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at:
*
* the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
Expand Down Expand Up @@ -50,7 +50,12 @@ public interface BooleanField<ENTITY, D> extends Field<ENTITY>, HasBooleanValue<
* @param unique if column only contains unique values
* @return the created field
*/
static <ENTITY, D> BooleanField<ENTITY, D> create(ColumnIdentifier<ENTITY> identifier, BooleanGetter<ENTITY> getter, BooleanSetter<ENTITY> setter, TypeMapper<D, Boolean> typeMapper, boolean unique) {
static <ENTITY, D> BooleanField<ENTITY, D> create(
ColumnIdentifier<ENTITY> identifier,
BooleanGetter<ENTITY> getter,
BooleanSetter<ENTITY> setter,
TypeMapper<D, Boolean> typeMapper,
boolean unique) {
return new BooleanFieldImpl<>(
identifier, getter, setter, typeMapper, unique
);
Expand Down
@@ -1,13 +1,13 @@
/**
*
*
* Copyright (c) 2006-2017, Speedment, Inc. All Rights Reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); You may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at:
*
* the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
Expand Down Expand Up @@ -51,7 +51,12 @@ public interface ByteField<ENTITY, D> extends Field<ENTITY>, HasByteValue<ENTITY
* @param unique if column only contains unique values
* @return the created field
*/
static <ENTITY, D> ByteField<ENTITY, D> create(ColumnIdentifier<ENTITY> identifier, ByteGetter<ENTITY> getter, ByteSetter<ENTITY> setter, TypeMapper<D, Byte> typeMapper, boolean unique) {
static <ENTITY, D> ByteField<ENTITY, D> create(
ColumnIdentifier<ENTITY> identifier,
ByteGetter<ENTITY> getter,
ByteSetter<ENTITY> setter,
TypeMapper<D, Byte> typeMapper,
boolean unique) {
return new ByteFieldImpl<>(
identifier, getter, setter, typeMapper, unique
);
Expand Down
@@ -1,13 +1,13 @@
/**
*
*
* Copyright (c) 2006-2017, Speedment, Inc. All Rights Reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); You may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at:
*
* the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
Expand Down Expand Up @@ -56,7 +56,13 @@ public interface ByteForeignKeyField<ENTITY, D, FK_ENTITY> extends ByteField<ENT
* @param unique if represented column only contains unique values
* @return the created field
*/
static <ENTITY, D, FK_ENTITY> ByteForeignKeyField<ENTITY, D, FK_ENTITY> create(ColumnIdentifier<ENTITY> identifier, ByteGetter<ENTITY> getter, ByteSetter<ENTITY> setter, ByteField<FK_ENTITY, D> referenced, TypeMapper<D, Byte> typeMapper, boolean unique) {
static <ENTITY, D, FK_ENTITY> ByteForeignKeyField<ENTITY, D, FK_ENTITY> create(
ColumnIdentifier<ENTITY> identifier,
ByteGetter<ENTITY> getter,
ByteSetter<ENTITY> setter,
ByteField<FK_ENTITY, D> referenced,
TypeMapper<D, Byte> typeMapper,
boolean unique) {
return new ByteForeignKeyFieldImpl<>(
identifier, getter, setter, referenced, typeMapper, unique
);
Expand Down
@@ -1,13 +1,13 @@
/**
*
*
* Copyright (c) 2006-2017, Speedment, Inc. All Rights Reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); You may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at:
*
* the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
Expand Down Expand Up @@ -51,7 +51,12 @@ public interface CharField<ENTITY, D> extends Field<ENTITY>, HasCharValue<ENTITY
* @param unique if column only contains unique values
* @return the created field
*/
static <ENTITY, D> CharField<ENTITY, D> create(ColumnIdentifier<ENTITY> identifier, CharGetter<ENTITY> getter, CharSetter<ENTITY> setter, TypeMapper<D, Character> typeMapper, boolean unique) {
static <ENTITY, D> CharField<ENTITY, D> create(
ColumnIdentifier<ENTITY> identifier,
CharGetter<ENTITY> getter,
CharSetter<ENTITY> setter,
TypeMapper<D, Character> typeMapper,
boolean unique) {
return new CharFieldImpl<>(
identifier, getter, setter, typeMapper, unique
);
Expand Down
@@ -1,13 +1,13 @@
/**
*
*
* Copyright (c) 2006-2017, Speedment, Inc. All Rights Reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); You may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at:
*
* the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
Expand Down Expand Up @@ -56,7 +56,13 @@ public interface CharForeignKeyField<ENTITY, D, FK_ENTITY> extends CharField<ENT
* @param unique if represented column only contains unique values
* @return the created field
*/
static <ENTITY, D, FK_ENTITY> CharForeignKeyField<ENTITY, D, FK_ENTITY> create(ColumnIdentifier<ENTITY> identifier, CharGetter<ENTITY> getter, CharSetter<ENTITY> setter, CharField<FK_ENTITY, D> referenced, TypeMapper<D, Character> typeMapper, boolean unique) {
static <ENTITY, D, FK_ENTITY> CharForeignKeyField<ENTITY, D, FK_ENTITY> create(
ColumnIdentifier<ENTITY> identifier,
CharGetter<ENTITY> getter,
CharSetter<ENTITY> setter,
CharField<FK_ENTITY, D> referenced,
TypeMapper<D, Character> typeMapper,
boolean unique) {
return new CharForeignKeyFieldImpl<>(
identifier, getter, setter, referenced, typeMapper, unique
);
Expand Down
@@ -1,13 +1,13 @@
/**
*
*
* Copyright (c) 2006-2017, Speedment, Inc. All Rights Reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); You may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at:
*
* the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
Expand Down Expand Up @@ -51,7 +51,12 @@ public interface DoubleField<ENTITY, D> extends Field<ENTITY>, HasDoubleValue<EN
* @param unique if column only contains unique values
* @return the created field
*/
static <ENTITY, D> DoubleField<ENTITY, D> create(ColumnIdentifier<ENTITY> identifier, DoubleGetter<ENTITY> getter, DoubleSetter<ENTITY> setter, TypeMapper<D, Double> typeMapper, boolean unique) {
static <ENTITY, D> DoubleField<ENTITY, D> create(
ColumnIdentifier<ENTITY> identifier,
DoubleGetter<ENTITY> getter,
DoubleSetter<ENTITY> setter,
TypeMapper<D, Double> typeMapper,
boolean unique) {
return new DoubleFieldImpl<>(
identifier, getter, setter, typeMapper, unique
);
Expand Down
@@ -1,13 +1,13 @@
/**
*
*
* Copyright (c) 2006-2017, Speedment, Inc. All Rights Reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); You may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at:
*
* the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
Expand Down Expand Up @@ -56,7 +56,13 @@ public interface DoubleForeignKeyField<ENTITY, D, FK_ENTITY> extends DoubleField
* @param unique if represented column only contains unique values
* @return the created field
*/
static <ENTITY, D, FK_ENTITY> DoubleForeignKeyField<ENTITY, D, FK_ENTITY> create(ColumnIdentifier<ENTITY> identifier, DoubleGetter<ENTITY> getter, DoubleSetter<ENTITY> setter, DoubleField<FK_ENTITY, D> referenced, TypeMapper<D, Double> typeMapper, boolean unique) {
static <ENTITY, D, FK_ENTITY> DoubleForeignKeyField<ENTITY, D, FK_ENTITY> create(
ColumnIdentifier<ENTITY> identifier,
DoubleGetter<ENTITY> getter,
DoubleSetter<ENTITY> setter,
DoubleField<FK_ENTITY, D> referenced,
TypeMapper<D, Double> typeMapper,
boolean unique) {
return new DoubleForeignKeyFieldImpl<>(
identifier, getter, setter, referenced, typeMapper, unique
);
Expand Down
@@ -1,13 +1,13 @@
/**
*
*
* Copyright (c) 2006-2017, Speedment, Inc. All Rights Reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); You may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at:
*
* the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
Expand Down Expand Up @@ -51,7 +51,12 @@ public interface FloatField<ENTITY, D> extends Field<ENTITY>, HasFloatValue<ENTI
* @param unique if column only contains unique values
* @return the created field
*/
static <ENTITY, D> FloatField<ENTITY, D> create(ColumnIdentifier<ENTITY> identifier, FloatGetter<ENTITY> getter, FloatSetter<ENTITY> setter, TypeMapper<D, Float> typeMapper, boolean unique) {
static <ENTITY, D> FloatField<ENTITY, D> create(
ColumnIdentifier<ENTITY> identifier,
FloatGetter<ENTITY> getter,
FloatSetter<ENTITY> setter,
TypeMapper<D, Float> typeMapper,
boolean unique) {
return new FloatFieldImpl<>(
identifier, getter, setter, typeMapper, unique
);
Expand Down
@@ -1,13 +1,13 @@
/**
*
*
* Copyright (c) 2006-2017, Speedment, Inc. All Rights Reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); You may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at:
*
* the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
Expand Down Expand Up @@ -56,7 +56,13 @@ public interface FloatForeignKeyField<ENTITY, D, FK_ENTITY> extends FloatField<E
* @param unique if represented column only contains unique values
* @return the created field
*/
static <ENTITY, D, FK_ENTITY> FloatForeignKeyField<ENTITY, D, FK_ENTITY> create(ColumnIdentifier<ENTITY> identifier, FloatGetter<ENTITY> getter, FloatSetter<ENTITY> setter, FloatField<FK_ENTITY, D> referenced, TypeMapper<D, Float> typeMapper, boolean unique) {
static <ENTITY, D, FK_ENTITY> FloatForeignKeyField<ENTITY, D, FK_ENTITY> create(
ColumnIdentifier<ENTITY> identifier,
FloatGetter<ENTITY> getter,
FloatSetter<ENTITY> setter,
FloatField<FK_ENTITY, D> referenced,
TypeMapper<D, Float> typeMapper,
boolean unique) {
return new FloatForeignKeyFieldImpl<>(
identifier, getter, setter, referenced, typeMapper, unique
);
Expand Down
@@ -1,13 +1,13 @@
/**
*
*
* Copyright (c) 2006-2017, Speedment, Inc. All Rights Reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); You may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at:
*
* the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
Expand Down Expand Up @@ -51,7 +51,12 @@ public interface IntField<ENTITY, D> extends Field<ENTITY>, HasIntValue<ENTITY,
* @param unique if column only contains unique values
* @return the created field
*/
static <ENTITY, D> IntField<ENTITY, D> create(ColumnIdentifier<ENTITY> identifier, IntGetter<ENTITY> getter, IntSetter<ENTITY> setter, TypeMapper<D, Integer> typeMapper, boolean unique) {
static <ENTITY, D> IntField<ENTITY, D> create(
ColumnIdentifier<ENTITY> identifier,
IntGetter<ENTITY> getter,
IntSetter<ENTITY> setter,
TypeMapper<D, Integer> typeMapper,
boolean unique) {
return new IntFieldImpl<>(
identifier, getter, setter, typeMapper, unique
);
Expand Down
@@ -1,13 +1,13 @@
/**
*
*
* Copyright (c) 2006-2017, Speedment, Inc. All Rights Reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); You may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at:
*
* the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
Expand Down Expand Up @@ -56,7 +56,13 @@ public interface IntForeignKeyField<ENTITY, D, FK_ENTITY> extends IntField<ENTIT
* @param unique if represented column only contains unique values
* @return the created field
*/
static <ENTITY, D, FK_ENTITY> IntForeignKeyField<ENTITY, D, FK_ENTITY> create(ColumnIdentifier<ENTITY> identifier, IntGetter<ENTITY> getter, IntSetter<ENTITY> setter, IntField<FK_ENTITY, D> referenced, TypeMapper<D, Integer> typeMapper, boolean unique) {
static <ENTITY, D, FK_ENTITY> IntForeignKeyField<ENTITY, D, FK_ENTITY> create(
ColumnIdentifier<ENTITY> identifier,
IntGetter<ENTITY> getter,
IntSetter<ENTITY> setter,
IntField<FK_ENTITY, D> referenced,
TypeMapper<D, Integer> typeMapper,
boolean unique) {
return new IntForeignKeyFieldImpl<>(
identifier, getter, setter, referenced, typeMapper, unique
);
Expand Down

0 comments on commit b4802e1

Please sign in to comment.