Class UUIDExpression
- java.lang.Object
-
- nz.co.gregs.dbvolution.expressions.AnyExpression<B,R,D>
-
- nz.co.gregs.dbvolution.expressions.EqualExpression<B,R,D>
-
- nz.co.gregs.dbvolution.expressions.InExpression<UUID,UUIDResult,DBUUID>
-
- nz.co.gregs.dbvolution.expressions.UUIDExpression
-
- All Implemented Interfaces:
Serializable
,DBExpression
,ExpressionColumn<DBUUID>
,HasSQLString
,AnyComparable<UUID,UUIDResult>
,AnyResult<UUID>
,EqualComparable<UUID,UUIDResult>
,EqualResult<UUID>
,ExpressionCanHaveNullValues
,ExpressionHasStandardStringResult
,InComparable<UUID,UUIDResult>
,InResult<UUID>
,NullCapableResult<UUID>
,UUIDResult
- Direct Known Subclasses:
UUIDColumn
public class UUIDExpression extends InExpression<UUID,UUIDResult,DBUUID> implements InComparable<UUID,UUIDResult>, UUIDResult
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class nz.co.gregs.dbvolution.expressions.AnyExpression
AnyExpression.CountAllExpression, AnyExpression.CountDistinctExpression, AnyExpression.CountExpression, AnyExpression.NTileExpression, AnyExpression.PercentageExpression, AnyExpression.RankExpression
-
Nested classes/interfaces inherited from class nz.co.gregs.dbvolution.expressions.EqualExpression
EqualExpression.DBUnaryFunction<B,R extends EqualResult<B>,D extends QueryableDatatype<B>,X extends EqualExpression<B,R,D>>, EqualExpression.ModeSimpleExpression<B,R extends EqualResult<B>,D extends QueryableDatatype<B>,X extends EqualExpression<B,R,D>>, EqualExpression.ModeStrictExpression<B,R extends EqualResult<B>,D extends QueryableDatatype<B>,X extends EqualExpression<B,R,D>>
-
-
Constructor Summary
Constructors Modifier Constructor Description UUIDExpression()
UUIDExpression(String stringVariable)
UUIDExpression(DBString stringVariable)
UUIDExpression(DBUUID stringVariable)
protected
UUIDExpression(AnyResult<?> stringVariable)
UUIDExpression(StringResult stringVariable)
UUIDExpression(UUIDResult stringVariable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DBUUID
asExpressionColumn()
Creates a QueryableDatatype version of the expression suitable for use as a column.UUIDExpression
copy()
A Complete Copy Of This DBValue.UUIDResult
expression(UUID value)
UUIDResult
expression(DBUUID value)
UUIDResult
expression(UUIDResult value)
QueryableDatatype<?>
getQueryableDatatypeForExpressionValue()
Provides a blank instance of theQueryableDatatype
used by this expression.BooleanExpression
is(UUID anotherInstance)
Creates aBooleanExpression
that compares the 2 values using the EQUALS operation.BooleanExpression
is(UUIDResult anotherInstance)
Creates aBooleanExpression
that compares the 2 values using the EQUALS operation.BooleanExpression
isInCollection(Collection<UUIDResult> values)
BooleanExpression
isNot(UUID anotherInstance)
Creates aBooleanExpression
that compares the 2 values using the NOT EQUALS operation.BooleanExpression
isNot(UUIDResult anotherInstance)
Creates aBooleanExpression
that compares the 2 values using the NOT EQUALS operation.BooleanExpression
isNotInCollection(Collection<UUIDResult> values)
StringExpression
stringResult()
Converts the expression into the standard string/character expression representing the value.-
Methods inherited from interface nz.co.gregs.dbvolution.results.AnyComparable
isNotNull, isNull
-
Methods inherited from class nz.co.gregs.dbvolution.expressions.AnyExpression
ascending, asResult, count, countAll, countDistinctValues, countNotNull, createSQLForFromClause, createSQLForGroupByClause, denseRank, descending, getIncludesNull, getInnerResult, getTablesInvolved, highestFirst, highestLast, isAggregator, isComplexExpression, isNullSafetyTerminator, isPurelyFunctional, isWindowingFunction, lowestFirst, lowestLast, nTile, nTile, nTile, nullBoolean, nullDate, nullDateRepeat, nullDuration, nullExpression, nullInstant, nullInteger, nullLine2D, nullLineSegment2D, nullLocalDate, nullLocalDateTime, nullMultiPoint2D, nullNumber, nullPoint2D, nullPolygon2D, nullString, percentageRank, rank, rowNumber, runningCount, toSQLString, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value, value
-
Methods inherited from class nz.co.gregs.dbvolution.expressions.EqualExpression
countIf, is, isNot
-
Methods inherited from interface nz.co.gregs.dbvolution.expressions.ExpressionColumn
toExpressionColumn
-
Methods inherited from interface nz.co.gregs.dbvolution.results.InComparable
isIn
-
-
-
-
Constructor Detail
-
UUIDExpression
public UUIDExpression()
-
UUIDExpression
public UUIDExpression(StringResult stringVariable)
-
UUIDExpression
public UUIDExpression(UUIDResult stringVariable)
-
UUIDExpression
protected UUIDExpression(AnyResult<?> stringVariable)
-
UUIDExpression
public UUIDExpression(String stringVariable)
-
UUIDExpression
public UUIDExpression(DBString stringVariable)
-
UUIDExpression
public UUIDExpression(DBUUID stringVariable)
-
-
Method Detail
-
isInCollection
public BooleanExpression isInCollection(Collection<UUIDResult> values)
- Specified by:
isInCollection
in classInExpression<UUID,UUIDResult,DBUUID>
-
isNotInCollection
public BooleanExpression isNotInCollection(Collection<UUIDResult> values)
- Specified by:
isNotInCollection
in classInExpression<UUID,UUIDResult,DBUUID>
-
expression
public UUIDResult expression(UUID value)
- Specified by:
expression
in classAnyExpression<UUID,UUIDResult,DBUUID>
-
expression
public UUIDResult expression(UUIDResult value)
- Specified by:
expression
in classAnyExpression<UUID,UUIDResult,DBUUID>
-
expression
public UUIDResult expression(DBUUID value)
- Specified by:
expression
in classAnyExpression<UUID,UUIDResult,DBUUID>
-
asExpressionColumn
public DBUUID asExpressionColumn()
Description copied from interface:ExpressionColumn
Creates a QueryableDatatype version of the expression suitable for use as a column.For example:
@DBColumn public DBString title = person.column(person.fullname).substringBefore(" ").asExpressionColumn();
Support DBvolution at Patreon
- Specified by:
asExpressionColumn
in interfaceExpressionColumn<DBUUID>
- Returns:
- a QDT version of the expression
-
getQueryableDatatypeForExpressionValue
public QueryableDatatype<?> getQueryableDatatypeForExpressionValue()
Description copied from interface:DBExpression
Provides a blank instance of theQueryableDatatype
used by this expression.You are probably looking for
ExpressionColumn.asExpressionColumn()
.Note that this method is not good for use in everyday DBvolution code and should probably be reserved for meta-programming.
Support DBvolution at Patreon
- Specified by:
getQueryableDatatypeForExpressionValue
in interfaceDBExpression
- Returns:
- the QueryableDatatype subclass that corresponds to the results of this expression
-
copy
public UUIDExpression copy()
Description copied from interface:DBExpression
A Complete Copy Of This DBValue.Immutability in DBvolution is maintain by internally copying objects.
This method enables immutability by performing a deep copy of the object.
Singletons may return themselves but all other objects must return a new instance with copies of all mutable fields.
Support DBvolution at Patreon
- Specified by:
copy
in interfaceDBExpression
- Specified by:
copy
in interfaceUUIDResult
- Returns:
- a copy of this
DBValue
-
is
public BooleanExpression is(UUIDResult anotherInstance)
Description copied from interface:EqualComparable
Creates aBooleanExpression
that compares the 2 values using the EQUALS operation.- Specified by:
is
in interfaceEqualComparable<UUID,UUIDResult>
- Parameters:
anotherInstance
- an instance to compare toSupport DBvolution at Patreon
- Returns:
- a BooleanExpression
-
isNot
public BooleanExpression isNot(UUIDResult anotherInstance)
Description copied from interface:EqualComparable
Creates aBooleanExpression
that compares the 2 values using the NOT EQUALS operation.- Specified by:
isNot
in interfaceEqualComparable<UUID,UUIDResult>
- Parameters:
anotherInstance
- and instance to compare toSupport DBvolution at Patreon
- Returns:
- a BooleanExpression
-
is
public BooleanExpression is(UUID anotherInstance)
Description copied from interface:EqualComparable
Creates aBooleanExpression
that compares the 2 values using the EQUALS operation.- Specified by:
is
in interfaceEqualComparable<UUID,UUIDResult>
- Parameters:
anotherInstance
- an instance to compare toSupport DBvolution at Patreon
- Returns:
- a BooleanExpression
-
isNot
public BooleanExpression isNot(UUID anotherInstance)
Description copied from interface:EqualComparable
Creates aBooleanExpression
that compares the 2 values using the NOT EQUALS operation.- Specified by:
isNot
in interfaceEqualComparable<UUID,UUIDResult>
- Parameters:
anotherInstance
- and instance to compare toSupport DBvolution at Patreon
- Returns:
- a BooleanExpression
-
stringResult
public StringExpression stringResult()
Description copied from interface:ExpressionHasStandardStringResult
Converts the expression into the standard string/character expression representing the value.Not all types have a standard string/character representation, notably dates.
Please note that this is not the SQL version of the expression
(toSQLString() will provide that)
, nor does this provide a String of the value.To get the string value use the
stringValue method
of the appropriate QDT.Support DBvolution at Patreon
- Specified by:
stringResult
in interfaceExpressionHasStandardStringResult
- Returns:
- a StringExpression of the expression.
-
-