All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.datastax.driver.extras.codecs.jdk8.package-info Maven / Gradle / Ivy

There is a newer version: 3.11.5
Show newest version
/*
 *      Copyright (C) 2012-2015 DataStax Inc.
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 */

/**
 * This package contains a collection of convenience
 * {@link com.datastax.driver.core.TypeCodec TypeCodec} instances useful for
 * serializing between CQL types and JDK 8 types, such as the ones from the
 * {@code java.time} API and {@link java.util.Optional}.
 * 

* The codecs in this class provide the following mappings: * *

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
CodecCQL typeJDK 8 type
{@link com.datastax.driver.extras.codecs.jdk8.OptionalCodec}Any{@link java.util.Optional Optional}
{@link com.datastax.driver.extras.codecs.jdk8.LocalTimeCodec}{@link com.datastax.driver.core.DataType#time() time}{@link java.time.LocalTime LocalTime}
{@link com.datastax.driver.extras.codecs.jdk8.LocalDateCodec}{@link com.datastax.driver.core.DataType#date() date}{@link java.time.LocalDate LocalDate}
{@link com.datastax.driver.extras.codecs.jdk8.InstantCodec}{@link com.datastax.driver.core.DataType#timestamp() timestamp}{@link java.time.Instant Instant}
{@link com.datastax.driver.extras.codecs.jdk8.ZonedDateTimeCodec}{@link com.datastax.driver.core.TupleType tuple} of * ({@link com.datastax.driver.core.DataType#timestamp() timestamp}, * {@link com.datastax.driver.core.DataType#varchar() varchar}){@link java.time.ZonedDateTime ZonedDateTime}
* */ package com.datastax.driver.extras.codecs.jdk8;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy