Class MongoDbColumn
java.lang.Object
io.helidon.dbclient.DbColumnBase
io.helidon.dbclient.mongodb.MongoDbColumn
- All Implemented Interfaces:
OptionalValue<Object>, Value<Object>, DbColumn
Mongo implementation of
DbColumn.-
Method Summary
Methods inherited from class DbColumnBase
as, as, as, asBoolean, asDouble, asInt, asLong, asOptional, asString, get, get, map, map, rawValueModifier and TypeMethodDescription<N> OptionalValue<N> as(GenericType<N> type) Convert this value to a different type using a mapper.<N> OptionalValue<N> Convert this value to a different type using a mapper.<N> OptionalValue<N> Convert thisValueto a different type using a mapper function.Boolean typed value.asDouble()Double typed value.asInt()Integer typed value.asLong()Long typed value.Typed value asOptional.asString()String typed value.<T> Tget(GenericType<T> type) Value of this column as a generic type.<T> TTyped value of this column.protected <SRC,T> T map(SRC value, GenericType<T> type) Map value to target type usingMapper.protected <SRC,T> T Map value to target type usingMapper.protected ObjectrawValue()Get raw value of the database column.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface OptionalValue
ifPresent, ifPresentOrElse, isEmpty, isPresent, map, or, orElse, orElseGet, orElseThrow, orElseThrowModifier and TypeMethodDescriptiondefault voidIf a value is present, invoke the specified consumer with the value, otherwise do nothing.default voidifPresentOrElse(Consumer<Object> action, Runnable emptyAction) If a value is present, performs the given action with the value, otherwise performs the given empty-based action.default booleanisEmpty()Returnfalseif there is a value present, otherwisetrue.default booleanReturntrueif there is a value present, otherwisefalse.default <U> Optional<U> If a value is present, apply the provided mapping function to it, and if the result is non-null, return anOptionaldescribing the result.If the underlyingOptionaldoes not have a value, set it to theOptionalproduced by the supplying function.default ObjectReturn the value if present, otherwise returnother.default ObjectReturn the value if present, otherwise invokeotherand return the result of that invocation.default ObjectIf a value is present, returns the value, otherwise throwsNoSuchElementException.orElseThrow(Supplier<? extends X> exceptionSupplier) Return the contained value, if present, otherwise throw an exception to be created by the provided supplier.Methods inherited from interface Value
filter, flatMap, getBoolean, getDouble, getInt, getLong, getString, streamModifier and TypeMethodDescriptionIf a value is present, and the value matches the given predicate, return anOptionaldescribing the value, otherwise return an emptyOptional.default <U> Optional<U> Apply the providedOptional-bearing mapping function to this value, return that result.default booleanBoolean typed value.default doubleDouble typed value.default intgetInt()Integer typed value.default longgetLong()Long typed value.default StringString typed value.stream()If a value is present, returns a sequentialStreamcontaining only that value, otherwise returns an emptyStream.
-
Method Details
-
javaType
-
dbType
Description copied from interface:DbColumnType of the column in the language of the database.Example for SQL - if a column is declared as
VARCHAR(256)in the database, this method would returnVARCHARand methodDbColumn.javaType()would returnString.- Returns:
- column type as the database understands it
-
name
-