#2318 - Refactor internals - final classes in querybean package

This commit is contained in:
rbygrave
2021-08-17 21:39:57 +12:00
parent 190a2c47e9
commit 9161e17476
51 changed files with 51 additions and 51 deletions
@@ -6,7 +6,7 @@ package io.ebean.typequery;
* @param <R> the root query bean type
* @param <E> the element type of the DbArray
*/
public class PArray<R, E> extends TQPropertyBase<R> {
public final class PArray<R, E> extends TQPropertyBase<R> {
/**
* Construct with a property name and root instance.
@@ -6,7 +6,7 @@ import java.math.BigDecimal;
* BigDecimal property.
* @param <R> the root query bean type
*/
public class PBigDecimal<R> extends PBaseNumber<R,BigDecimal> {
public final class PBigDecimal<R> extends PBaseNumber<R,BigDecimal> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.math.BigInteger;
*
* @param <R> the root query bean type
*/
public class PBigInteger<R> extends PBaseNumber<R, BigInteger> {
public final class PBigInteger<R> extends PBaseNumber<R, BigInteger> {
/**
* Construct with a property name and root instance.
@@ -5,7 +5,7 @@ package io.ebean.typequery;
*
* @param <R> the root query bean type
*/
public class PBoolean<R> extends PBaseValueEqual<R, Boolean> {
public final class PBoolean<R> extends PBaseValueEqual<R, Boolean> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.util.Calendar;
*
* @param <R> the root query bean type
*/
public class PCalendar<R> extends PBaseDate<R,Calendar> {
public final class PCalendar<R> extends PBaseDate<R,Calendar> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import io.ebean.types.Cidr;
*
* @param <R> the root query bean type
*/
public class PCidr<R> extends PBaseValueEqual<R, Cidr> {
public final class PCidr<R> extends PBaseValueEqual<R, Cidr> {
/**
* Construct with a property name and root instance.
@@ -5,7 +5,7 @@ package io.ebean.typequery;
*
* @param <R> the root query bean type
*/
public class PClass<R> extends PBaseString<R,Class> {
public final class PClass<R> extends PBaseString<R,Class> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.util.Currency;
*
* @param <R> the root query bean type
*/
public class PCurrency<R> extends PBaseValueEqual<R,Currency> {
public final class PCurrency<R> extends PBaseValueEqual<R,Currency> {
/**
* Construct with a property name and root instance.
@@ -8,7 +8,7 @@ import java.time.DayOfWeek;
*
* @param <R> the root query bean type
*/
public class PDayOfWeek<R> extends PBaseNumber<R,DayOfWeek> {
public final class PDayOfWeek<R> extends PBaseNumber<R,DayOfWeek> {
/**
* Construct with a property name and root instance.
@@ -5,7 +5,7 @@ package io.ebean.typequery;
*
* @param <R> the root query bean type
*/
public class PDouble<R> extends PBaseNumber<R,Double> {
public final class PDouble<R> extends PBaseNumber<R,Double> {
/**
* Construct with a property name and root instance.
@@ -8,7 +8,7 @@ import java.time.Duration;
*
* @param <R> the root query bean type
*/
public class PDuration<R> extends PBaseNumber<R,Duration> {
public final class PDuration<R> extends PBaseNumber<R,Duration> {
/**
* Construct with a property name and root instance.
@@ -6,7 +6,7 @@ package io.ebean.typequery;
* @param <E> the enum specific type
* @param <R> the root query bean type
*/
public class PEnum<R,E> extends PBaseValueEqual<R,E> {
public final class PEnum<R,E> extends PBaseValueEqual<R,E> {
/**
* Construct with a property name and root instance.
@@ -9,7 +9,7 @@ package io.ebean.typequery;
*
* @param <R> the root query bean type
*/
public class PFile<R> extends TQPropertyBase<R> {
public final class PFile<R> extends TQPropertyBase<R> {
/**
* Construct with a property name and root instance.
@@ -5,7 +5,7 @@ package io.ebean.typequery;
*
* @param <R> the root query bean type
*/
public class PFloat<R> extends PBaseNumber<R,Float> {
public final class PFloat<R> extends PBaseNumber<R,Float> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import io.ebean.types.Inet;
*
* @param <R> the root query bean type
*/
public class PInet<R> extends PBaseValueEqual<R, Inet> {
public final class PInet<R> extends PBaseValueEqual<R, Inet> {
/**
* Construct with a property name and root instance.
@@ -8,7 +8,7 @@ import java.net.InetAddress;
* @param <R> the root query bean type
*/
public class PInetAddress<R> extends PBaseValueEqual<R,InetAddress> {
public final class PInetAddress<R> extends PBaseValueEqual<R,InetAddress> {
/**
* Construct with a property name and root instance.
@@ -8,7 +8,7 @@ import java.time.Instant;
*
* @param <R> the root query bean type
*/
public class PInstant<R> extends PBaseDate<R,Instant> {
public final class PInstant<R> extends PBaseDate<R,Instant> {
/**
* Construct with a property name and root instance.
@@ -5,7 +5,7 @@ package io.ebean.typequery;
*
* @param <R> the root query bean type
*/
public class PInteger<R> extends PBaseNumber<R,Integer> {
public final class PInteger<R> extends PBaseNumber<R,Integer> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import org.joda.time.DateMidnight;
*
* @param <R> the root query bean type
*/
public class PJodaDateMidnight<R> extends PBaseDate<R,DateMidnight> {
public final class PJodaDateMidnight<R> extends PBaseDate<R,DateMidnight> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import org.joda.time.DateTime;
*
* @param <R> the root query bean type
*/
public class PJodaDateTime<R> extends PBaseDate<R,DateTime> {
public final class PJodaDateTime<R> extends PBaseDate<R,DateTime> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import org.joda.time.LocalDate;
*
* @param <R> the root query bean type
*/
public class PJodaLocalDate<R> extends PBaseDate<R,LocalDate> {
public final class PJodaLocalDate<R> extends PBaseDate<R,LocalDate> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import org.joda.time.LocalDateTime;
*
* @param <R> the root query bean type
*/
public class PJodaLocalDateTime<R> extends PBaseDate<R,LocalDateTime> {
public final class PJodaLocalDateTime<R> extends PBaseDate<R,LocalDateTime> {
/**
* Construct with a property name and root instance.
@@ -8,7 +8,7 @@ import org.joda.time.LocalTime;
*
* @param <R> the root query bean type
*/
public class PJodaLocalTime<R> extends PBaseNumber<R,LocalTime> {
public final class PJodaLocalTime<R> extends PBaseNumber<R,LocalTime> {
/**
* Construct with a property name and root instance.
@@ -17,7 +17,7 @@ package io.ebean.typequery;
*
* @param <R> the root query bean type
*/
public class PJson<R> extends TQPropertyBase<R> {
public final class PJson<R> extends TQPropertyBase<R> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.time.LocalDate;
*
* @param <R> the root query bean type
*/
public class PLocalDate<R> extends PBaseDate<R,LocalDate> {
public final class PLocalDate<R> extends PBaseDate<R,LocalDate> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.time.LocalDateTime;
*
* @param <R> the root query bean type
*/
public class PLocalDateTime<R> extends PBaseDate<R,LocalDateTime> {
public final class PLocalDateTime<R> extends PBaseDate<R,LocalDateTime> {
/**
* Construct with a property name and root instance.
@@ -8,7 +8,7 @@ import java.time.LocalTime;
*
* @param <R> the root query bean type
*/
public class PLocalTime<R> extends PBaseNumber<R,LocalTime> {
public final class PLocalTime<R> extends PBaseNumber<R,LocalTime> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.util.Locale;
*
* @param <R> the root query bean type
*/
public class PLocale<R> extends PBaseString<R, Locale> {
public final class PLocale<R> extends PBaseString<R, Locale> {
/**
* Construct with a property name and root instance.
@@ -5,7 +5,7 @@ package io.ebean.typequery;
*
* @param <R> the root query bean type
*/
public class PLong<R> extends PBaseNumber<R, Long> {
public final class PLong<R> extends PBaseNumber<R, Long> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.time.Month;
*
* @param <R> the root query bean type
*/
public class PMonth<R> extends PBaseDate<R,Month> {
public final class PMonth<R> extends PBaseDate<R,Month> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.time.MonthDay;
*
* @param <R> the root query bean type
*/
public class PMonthDay<R> extends PBaseDate<R,MonthDay> {
public final class PMonthDay<R> extends PBaseDate<R,MonthDay> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.time.OffsetDateTime;
*
* @param <R> the root query bean type
*/
public class POffsetDateTime<R> extends PBaseNumber<R,OffsetDateTime> {
public final class POffsetDateTime<R> extends PBaseNumber<R,OffsetDateTime> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.time.OffsetTime;
*
* @param <R> the root query bean type
*/
public class POffsetTime<R> extends PBaseNumber<R,OffsetTime> {
public final class POffsetTime<R> extends PBaseNumber<R,OffsetTime> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ package io.ebean.typequery;
* @param <R> the root query bean type
* @param <D> the scalar type
*/
public class PScalar<R, D> extends PBaseValueEqual<R, D> {
public final class PScalar<R, D> extends PBaseValueEqual<R, D> {
/**
* Construct with a property name and root instance.
@@ -8,7 +8,7 @@ package io.ebean.typequery;
* @param <R> the root query bean type
* @param <D> the scalar type
*/
public class PScalarComparable<R, D extends Comparable<D>> extends PBaseCompareable<R, D> {
public final class PScalarComparable<R, D extends Comparable<D>> extends PBaseCompareable<R, D> {
/**
* Construct with a property name and root instance.
@@ -5,7 +5,7 @@ package io.ebean.typequery;
*
* @param <R> the root query bean type
*/
public class PShort<R> extends PBaseNumber<R, Short> {
public final class PShort<R> extends PBaseNumber<R, Short> {
/**
* Construct with a property name and root instance.
@@ -8,7 +8,7 @@ import java.sql.Date;
* @param <R> the root query bean type
*/
public class PSqlDate<R> extends PBaseDate<R,Date> {
public final class PSqlDate<R> extends PBaseDate<R,Date> {
/**
* Construct with a property name and root instance.
@@ -5,7 +5,7 @@ package io.ebean.typequery;
*
* @param <R> the root query bean type
*/
public class PString<R> extends PBaseCompareable<R, String> {
public final class PString<R> extends PBaseCompareable<R, String> {
/**
* Construct with a property name and root instance.
@@ -8,7 +8,7 @@ import java.sql.Time;
*
* @param <R> the root query bean type
*/
public class PTime<R> extends PBaseNumber<R,Time> {
public final class PTime<R> extends PBaseNumber<R,Time> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.util.TimeZone;
*
* @param <R> the root query bean type
*/
public class PTimeZone<R> extends PBaseValueEqual<R,TimeZone> {
public final class PTimeZone<R> extends PBaseValueEqual<R,TimeZone> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.sql.Timestamp;
*
* @param <R> the root query bean type
*/
public class PTimestamp<R> extends PBaseDate<R,Timestamp> {
public final class PTimestamp<R> extends PBaseDate<R,Timestamp> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.net.URI;
*
* @param <R> the root query bean type
*/
public class PUri<R> extends PBaseString<R,URI> {
public final class PUri<R> extends PBaseString<R,URI> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.net.URL;
*
* @param <R> the root query bean type
*/
public class PUrl<R> extends PBaseString<R,URL> {
public final class PUrl<R> extends PBaseString<R,URL> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.util.Date;
*
* @param <R> the root query bean type
*/
public class PUtilDate<R> extends PBaseDate<R,Date> {
public final class PUtilDate<R> extends PBaseDate<R,Date> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.util.UUID;
*
* @param <R> the root query bean type
*/
public class PUuid<R> extends PBaseValueEqual<R,UUID> {
public final class PUuid<R> extends PBaseValueEqual<R,UUID> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.time.Year;
*
* @param <R> the root query bean type
*/
public class PYear<R> extends PBaseNumber<R,Year> {
public final class PYear<R> extends PBaseNumber<R,Year> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.time.YearMonth;
*
* @param <R> the root query bean type
*/
public class PYearMonth<R> extends PBaseDate<R,YearMonth> {
public final class PYearMonth<R> extends PBaseDate<R,YearMonth> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.time.ZoneId;
*
* @param <R> the root query bean type
*/
public class PZoneId<R> extends PBaseValueEqual<R,ZoneId> {
public final class PZoneId<R> extends PBaseValueEqual<R,ZoneId> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.time.ZoneOffset;
*
* @param <R> the root query bean type
*/
public class PZoneOffset<R> extends PBaseValueEqual<R,ZoneOffset> {
public final class PZoneOffset<R> extends PBaseValueEqual<R,ZoneOffset> {
/**
* Construct with a property name and root instance.
@@ -7,7 +7,7 @@ import java.time.ZonedDateTime;
*
* @param <R> the root query bean type
*/
public class PZonedDateTime<R> extends PBaseCompareable<R, ZonedDateTime> {
public final class PZonedDateTime<R> extends PBaseCompareable<R, ZonedDateTime> {
/**
* Construct with a property name and root instance.
@@ -3,7 +3,7 @@ package io.ebean.typequery;
/**
* Helper for adding a path prefix to a property.
*/
public class TQPath {
public final class TQPath {
/**
* Return the full path by adding the prefix to the property name (null safe).