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)protectedUUIDExpression(AnyResult<?> stringVariable)UUIDExpression(StringResult stringVariable)UUIDExpression(UUIDResult stringVariable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DBUUIDasExpressionColumn()Creates a QueryableDatatype version of the expression suitable for use as a column.UUIDExpressioncopy()A Complete Copy Of This DBValue.UUIDResultexpression(UUID value)UUIDResultexpression(DBUUID value)UUIDResultexpression(UUIDResult value)QueryableDatatype<?>getQueryableDatatypeForExpressionValue()Provides a blank instance of theQueryableDatatypeused by this expression.BooleanExpressionis(UUID anotherInstance)Creates aBooleanExpressionthat compares the 2 values using the EQUALS operation.BooleanExpressionis(UUIDResult anotherInstance)Creates aBooleanExpressionthat compares the 2 values using the EQUALS operation.BooleanExpressionisInCollection(Collection<UUIDResult> values)BooleanExpressionisNot(UUID anotherInstance)Creates aBooleanExpressionthat compares the 2 values using the NOT EQUALS operation.BooleanExpressionisNot(UUIDResult anotherInstance)Creates aBooleanExpressionthat compares the 2 values using the NOT EQUALS operation.BooleanExpressionisNotInCollection(Collection<UUIDResult> values)StringExpressionstringResult()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:
isInCollectionin classInExpression<UUID,UUIDResult,DBUUID>
-
isNotInCollection
public BooleanExpression isNotInCollection(Collection<UUIDResult> values)
- Specified by:
isNotInCollectionin classInExpression<UUID,UUIDResult,DBUUID>
-
expression
public UUIDResult expression(UUID value)
- Specified by:
expressionin classAnyExpression<UUID,UUIDResult,DBUUID>
-
expression
public UUIDResult expression(UUIDResult value)
- Specified by:
expressionin classAnyExpression<UUID,UUIDResult,DBUUID>
-
expression
public UUIDResult expression(DBUUID value)
- Specified by:
expressionin classAnyExpression<UUID,UUIDResult,DBUUID>
-
asExpressionColumn
public DBUUID asExpressionColumn()
Description copied from interface:ExpressionColumnCreates 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:
asExpressionColumnin interfaceExpressionColumn<DBUUID>- Returns:
- a QDT version of the expression
-
getQueryableDatatypeForExpressionValue
public QueryableDatatype<?> getQueryableDatatypeForExpressionValue()
Description copied from interface:DBExpressionProvides a blank instance of theQueryableDatatypeused 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:
getQueryableDatatypeForExpressionValuein interfaceDBExpression- Returns:
- the QueryableDatatype subclass that corresponds to the results of this expression
-
copy
public UUIDExpression copy()
Description copied from interface:DBExpressionA 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:
copyin interfaceDBExpression- Specified by:
copyin interfaceUUIDResult- Returns:
- a copy of this
DBValue
-
is
public BooleanExpression is(UUIDResult anotherInstance)
Description copied from interface:EqualComparableCreates aBooleanExpressionthat compares the 2 values using the EQUALS operation.- Specified by:
isin 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:EqualComparableCreates aBooleanExpressionthat compares the 2 values using the NOT EQUALS operation.- Specified by:
isNotin 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:EqualComparableCreates aBooleanExpressionthat compares the 2 values using the EQUALS operation.- Specified by:
isin 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:EqualComparableCreates aBooleanExpressionthat compares the 2 values using the NOT EQUALS operation.- Specified by:
isNotin interfaceEqualComparable<UUID,UUIDResult>- Parameters:
anotherInstance- and instance to compare toSupport DBvolution at Patreon
- Returns:
- a BooleanExpression
-
stringResult
public StringExpression stringResult()
Description copied from interface:ExpressionHasStandardStringResultConverts 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 methodof the appropriate QDT.Support DBvolution at Patreon
- Specified by:
stringResultin interfaceExpressionHasStandardStringResult- Returns:
- a StringExpression of the expression.
-
-