From a173bb7f7716fc2c59e56dc6fb30c1af619bb696 Mon Sep 17 00:00:00 2001 From: Simon Danner Date: Sat, 21 Mar 2020 13:04:26 +0100 Subject: [PATCH] Applied new code style to all classes --- .idea/codeStyles/Project.xml | 16 +++- .../ojcms/beans/AbstractEncapsulatedData.java | 9 ++- .../de/adito/ojcms/beans/BeanContainer.java | 11 ++- .../java/de/adito/ojcms/beans/BeanCopies.java | 28 ++++--- .../adito/ojcms/beans/BeanCreationEvents.java | 26 +++--- .../adito/ojcms/beans/BeanFieldFactory.java | 9 ++- .../adito/ojcms/beans/BeanInternalEvents.java | 41 ++++++---- .../adito/ojcms/beans/EReferableResolver.java | 20 +++-- .../beans/EncapsulatedBeanContainerData.java | 7 +- .../ojcms/beans/EncapsulatedBeanData.java | 21 ++--- .../main/java/de/adito/ojcms/beans/IBean.java | 59 ++++++++------ .../de/adito/ojcms/beans/IBeanContainer.java | 24 +++--- .../ojcms/beans/IBeanEventPublisher.java | 14 ++-- .../ojcms/beans/IEncapsulatedBeanData.java | 2 +- .../java/de/adito/ojcms/beans/IMapBean.java | 1 + .../de/adito/ojcms/beans/IModifiableBean.java | 7 +- .../java/de/adito/ojcms/beans/MapBean.java | 44 +++++++---- .../java/de/adito/ojcms/beans/OJBean.java | 1 + .../java/de/adito/ojcms/beans/OJFields.java | 20 +++-- .../ListBasedBeanContainerDataSource.java | 2 +- .../datasource/MapBasedBeanDataSource.java | 8 +- .../beans/exceptions/OJRuntimeException.java | 2 +- .../bean/InvalidChainException.java | 3 +- .../copy/BeanCopyNotSupportedException.java | 3 +- .../field/BeanFieldCreationException.java | 7 +- .../field/BeanFieldDoesNotExistException.java | 3 +- .../field/BeanFieldDuplicateException.java | 4 +- .../beans/literals/fields/FieldJavaTypes.java | 24 +++--- .../ojcms/beans/literals/fields/IField.java | 7 +- .../literals/fields/types/ContainerField.java | 2 +- .../literals/fields/types/DateField.java | 4 +- .../literals/fields/types/EnumField.java | 3 +- .../literals/fields/types/GenericField.java | 8 +- .../literals/fields/types/ListField.java | 4 +- .../beans/literals/fields/types/MapField.java | 2 +- .../ojcms/beans/references/BeanReference.java | 14 ++-- .../beans/references/IReferenceProvider.java | 21 ++--- .../beans/statistics/IStatisticData.java | 4 +- .../statistics/IntervalStatisticsMap.java | 6 +- .../ojcms/beans/statistics/StatisticData.java | 1 + .../adito/ojcms/beans/util/BeanReflector.java | 30 +++---- .../adito/ojcms/beans/BeanContainerTest.java | 28 ++++--- .../de/adito/ojcms/beans/BeanCopyTest.java | 6 +- .../ojcms/beans/BeanCreationEventsTest.java | 24 +++--- .../ojcms/beans/BeanFieldConverterTest.java | 4 +- .../adito/ojcms/beans/BeanFieldCopyTest.java | 31 ++++---- .../adito/ojcms/beans/BeanObserverTest.java | 79 ++++++++++--------- .../ojcms/beans/BeanOptionalFieldTest.java | 9 ++- .../java/de/adito/ojcms/beans/BeanTest.java | 8 +- .../literals/fields/types/MapFieldTest.java | 11 ++- .../beans/references/BeanReferenceTest.java | 9 ++- .../beans/statistics/BeanStatisticsTest.java | 20 ++--- .../de/adito/ojcms/cdi/AbstractCdiTest.java | 4 +- .../java/de/adito/ojcms/cdi/CdiContainer.java | 7 +- .../ojcms/cdi/CustomScopesExtension.java | 2 +- .../cdi/context/AbstractCustomContext.java | 4 +- .../ojcms/cdi/startup/StartupExtension.java | 6 +- .../datasource/BeanProducerExtension.java | 4 +- .../PersistentContainerDatasource.java | 4 +- .../visual/AbstractVisualTransformator.java | 6 +- .../rest/config/FileBasedDatabaseConfig.java | 4 +- .../ojcms/sqlbuilder/AbstractSQLBuilder.java | 39 ++++----- .../sqlbuilder/AbstractSQLStatement.java | 2 +- .../ojcms/sqlbuilder/OJSQLBuilderFactory.java | 2 +- .../sqlbuilder/OJSQLBuilderForTableImpl.java | 3 +- .../definition/IColumnIdentification.java | 8 +- .../definition/IColumnValueTuple.java | 7 +- .../definition/INumericValueAdaption.java | 8 +- .../definition/column/EColumnType.java | 10 +-- .../definition/column/IColumnDefinition.java | 6 +- .../definition/column/IColumnType.java | 5 +- .../AbstractStatementConcatenation.java | 6 +- .../condition/IMultipleCondition.java | 6 +- .../definition/condition/IWhereCondition.java | 34 ++++---- .../condition/IWhereConditions.java | 4 +- .../definition/condition/InConditionImpl.java | 8 +- .../definition/condition/WhereModifiers.java | 3 + .../executors/StatementExecution.java | 12 ++- .../ojcms/sqlbuilder/format/ESeparator.java | 4 +- .../sqlbuilder/format/StatementFormatter.java | 30 +++---- .../platform/AbstractDatabasePlatform.java | 2 +- .../ExternalConnectionProvider.java | 4 +- .../adito/ojcms/sqlbuilder/result/Result.java | 4 +- .../ojcms/sqlbuilder/result/ResultRow.java | 4 +- .../sqlbuilder/result/SingleColumnResult.java | 4 +- .../serialization/DefaultValueSerializer.java | 8 +- .../AbstractConditionStatement.java | 11 +-- .../types/select/AbstractSelect.java | 4 +- .../cleanup/SingleBeanRowCleanup.java | 6 +- .../connection/SQLCdiProducers.java | 12 +-- .../model/SingleBeanPersistenceModel.java | 55 +++++++------ .../column/BeanColumnIdentification.java | 16 ---- .../model/column/BeanColumnValueTuple.java | 4 +- .../model/column/BeanWhereCondition.java | 2 +- .../datasource/util/BeanSQLSerializer.java | 4 +- ...Config.java => DatabaseConfigForTest.java} | 2 +- .../model/SingleBeanPersistenceModelTest.java | 8 +- .../OverallTransactionalChanges.java | 7 +- .../annotations/ETransactionMode.java | 2 +- .../transactions/api/AbstractIndexKey.java | 6 +- .../ojcms/transactions/api/SingleBeanKey.java | 4 +- .../adito/ojcms/utils/IndexBasedIterator.java | 5 +- .../de/adito/ojcms/utils/IndexChecker.java | 1 + .../adito/ojcms/utils/OptionalNullable.java | 3 +- .../de/adito/ojcms/utils/StringUtility.java | 1 + .../utils/collections/IIndexedCache.java | 12 +-- .../collections/MapBasedIndexedCache.java | 43 +++++----- .../collections/WeakInputSortedContainer.java | 6 +- .../ojcms/utils/copy/SneakyCopyUtils.java | 21 +++-- .../readonly/ReadOnlyInvocationHandler.java | 6 +- .../ojcms/utils/IndexBasedIteratorTest.java | 46 +++++++---- .../collections/InputSortedElementsTest.java | 6 +- .../WeakInputSortedContainerTest.java | 2 +- .../ojcms/utils/copy/SneakyCopyUtilsTest.java | 10 +-- .../readonly/ReadOnlyInvocationTest.java | 2 +- 115 files changed, 718 insertions(+), 604 deletions(-) rename ojcms-sqldatasource/src/test/java/de/adito/ojcms/sql/datasource/{TestDatabaseConfig.java => DatabaseConfigForTest.java} (91%) diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 1b44fdc..4b7a1cb 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -21,6 +21,7 @@