diff --git a/jOOQ/src/main/java/org/jooq/DataType.java b/jOOQ/src/main/java/org/jooq/DataType.java index d05282f63d..591a7b7d81 100644 --- a/jOOQ/src/main/java/org/jooq/DataType.java +++ b/jOOQ/src/main/java/org/jooq/DataType.java @@ -46,7 +46,7 @@ import org.jooq.types.DayToSecond; import org.jooq.types.YearToMonth; /** - * A common interface to all dialect-specific data types + * A common interface to all dialect-specific data types. * * @param The Java type associated with this SQL data type * @author Lukas Eder @@ -65,53 +65,53 @@ public interface DataType extends Serializable { DataType getDataType(Configuration configuration); /** - * Get JDBC {@link Types} value + * Get JDBC {@link Types} value. */ int getSQLType(); /** - * Retrieve the Java type associated with this data type + * Retrieve the Java type associated with this data type. */ Class getType(); /** - * Retrieve the Java type associated with ARRAYs of this data type + * Retrieve the Java type associated with ARRAYs of this data type. */ Class getArrayType(); /** - * Retrieve the data type for an ARRAY of this data type + * Retrieve the data type for an ARRAY of this data type. */ DataType getArrayDataType(); /** - * Retrieve the data type for an Oracle-style ARRAY of this data type + * Retrieve the data type for an Oracle-style ARRAY of this data type. */ > DataType asArrayDataType(Class arrayDataType); /** - * Retrieve the data type for a given enum data type + * Retrieve the data type for a given enum data type. */ DataType asEnumDataType(Class enumDataType); /** - * Retrieve the data type for a given converter + * Retrieve the data type for a given converter. */ DataType asConvertedDataType(Converter converter); /** - * Retrieve the dialect-specific type name associated with this data type + * Retrieve the dialect-specific type name associated with this data type. */ String getTypeName(); /** - * Retrieve the dialect-specific type name associated with this data type + * Retrieve the dialect-specific type name associated with this data type. */ String getTypeName(Configuration configuration); /** * Retrieve the dialect-specific type name associated with this data type - * used for casting + * used for casting. *

* This is useful for some dialects that have specialised type names for * cast expressions. Other dialects require type-length binding when @@ -121,7 +121,7 @@ public interface DataType extends Serializable { /** * Retrieve the dialect-specific type name associated with this data type - * used for casting + * used for casting. *

* This is useful for some dialects that have specialised type names for * cast expressions. Other dialects require type-length binding when @@ -130,12 +130,12 @@ public interface DataType extends Serializable { String getCastTypeName(Configuration configuration); /** - * Retrieve the underlying {@link SQLDialect} + * Retrieve the underlying {@link SQLDialect}. */ SQLDialect getDialect(); /** - * Convert an arbitrary object into <T> + * Convert an arbitrary object into <T>. * * @param object The object to be converted * @return The converted object @@ -144,7 +144,7 @@ public interface DataType extends Serializable { T convert(Object object); /** - * Convert an arbitrary set of objects into <T> + * Convert an arbitrary set of objects into <T>. * * @param objects The objects to be converted * @return The converted objects @@ -153,7 +153,7 @@ public interface DataType extends Serializable { T[] convert(Object... objects); /** - * Convert an arbitrary set of objects into <T> + * Convert an arbitrary set of objects into <T>. * * @param objects The objects to be converted * @return The converted objects @@ -162,7 +162,7 @@ public interface DataType extends Serializable { List convert(Collection objects); /** - * Return a new data type like this, with a new precision value + * Return a new data type like this, with a new precision value. *

* This will have no effect if {@link #hasPrecision()} is false *

@@ -175,7 +175,7 @@ public interface DataType extends Serializable { DataType precision(int precision); /** - * Return a new data type like this, with a new precision and scale value + * Return a new data type like this, with a new precision and scale value. *

* This will have no effect if {@link #hasPrecision()} is false * , or if scale > 0 and {@link #hasScale()} is @@ -188,21 +188,21 @@ public interface DataType extends Serializable { DataType precision(int precision, int scale); /** - * Get the precision of this data type + * Get the precision of this data type. * * @return The precision of this data type */ int precision(); /** - * Whether this data type has a precision + * Whether this data type has a precision. * * @return Whether this data type has a precision */ boolean hasPrecision(); /** - * Return a new data type like this, with a new scale value + * Return a new data type like this, with a new scale value. *

* This will have no effect if {@link #hasScale()} is false * @@ -212,21 +212,21 @@ public interface DataType extends Serializable { DataType scale(int scale); /** - * Get the scale of this data type + * Get the scale of this data type. * * @return The scale of this data type */ int scale(); /** - * Whether this data type has a scale + * Whether this data type has a scale. * * @return Whether this data type has a scale */ boolean hasScale(); /** - * Return a new data type like this, with a new length value + * Return a new data type like this, with a new length value. *

* This will have no effect if {@link #hasLength()} is false * @@ -236,14 +236,14 @@ public interface DataType extends Serializable { DataType length(int length); /** - * Get the length of this data type + * Get the length of this data type. * * @return The length of this data type */ int length(); /** - * Whether this data type has a length + * Whether this data type has a length. * * @return Whether this data type has a length */