A bunch of Javadoc fixes.

This commit is contained in:
Michael Bayne
2014-06-25 21:49:09 +00:00
parent a961f5e4c2
commit c60d8e2dde
4 changed files with 25 additions and 23 deletions
@@ -104,10 +104,10 @@ public class Transformers
}
/**
* Combines the contents of a List/Set/Collection/Iterable<String> column into a single String,
* terminating each String element with a newline. Null-tolerant.
* A backslash ('\') in Strings will be prefixed by another backslash, newlines will be
* encoded as "\n", and null elements will be encoded as "\0" (but not terminated by a newline).
* Combines the contents of a {@code List/Set/Collection/Iterable<String>} column into a single
* String, terminating each String element with a newline. Null-tolerant. A backslash ('\') in
* Strings will be prefixed by another backslash, newlines will be encoded as "\n", and null
* elements will be encoded as "\0" (but not terminated by a newline).
*/
public static class StringIterable extends StringBase<Iterable<String>>
{
@@ -123,8 +123,7 @@ public class Transformers
}
/**
* A Transformer for anything that is an Iterable<Enum>.
* Often used for Enum sets.
* A Transformer for anything that is an {@code Iterable<Enum>}. Often used for Enum sets.
*/
public static class EnumIterable<E extends Enum<E>> extends StringBase<Iterable<E>>
{
@@ -22,15 +22,18 @@ public @interface Index
* <p>If this annotation is on a field, an index is created for all fields annotated with this
* name in the order of the fields in the class.</p>
*
* <p>If this annotation is on a {@code PersistentRecord} class, a static method must be
* defined in that class that provides the index configuration. The method must match one of
* the following two signatures:
* <pre>
* <p>If this annotation is on a {@code PersistentRecord} class, a static method must be defined
* in that class that provides the index configuration. The method must match one of the
* following two signatures:</p>
*
* <pre>{@code
* public static ColumnExp<?>[] indexName ()
* public static List&lt;Tuple&lt;SQLExpression, OrderBy.Order>> indexName ()
* </pre>
* The first form will result in a simple multicolum index being created with the supplied
* columns. The second will create a function index using the supplied {@code SQLExpression}s.</p>
* public static List<Tuple<SQLExpression, OrderBy.Order>> indexName ()
* }</pre>
*
* <p>The first form will result in a simple multicolum index being created with the supplied
* columns. The second will create a function index using the supplied {@code
* SQLExpression}s.</p>
*/
String name () default "";
@@ -19,7 +19,7 @@ import com.samskivert.depot.Transformer;
* saving to the database and after loading from the database.
*
* <p> For example, one may choose to transform a particular persistent record field into a type
* supported directly by Depot:
* supported directly by Depot:</p>
*
* <pre>
* public class MyRecord extends PersistentRecord {
@@ -28,17 +28,18 @@ import com.samskivert.depot.Transformer;
* }
* </pre>
*
* or one may opt to specify a transformation for all fields that contain a value of a particular
* type:
* <p>or one may opt to specify a transformation for all fields that contain a value of a particular
* type:</p>
*
* <pre>
* &#064;Transform(ByteEnumTransformer.class)
* public interface ByteEnum { ... }
* </pre>
*
* Note that because Depot honors @Transform annotations on any interface implemented by a type, or
* on a type's superclass, it is possible that conflicting transformations may be specified. In
* this case, Depot will fail with a runtime error during initialization, to indicate the problem.
* <p>Note that because Depot honors @Transform annotations on any interface implemented by a type,
* or on a type's superclass, it is possible that conflicting transformations may be specified. In
* this case, Depot will fail with a runtime error during initialization, to indicate the
* problem.</p>
*
* @see Transformer
*/
@@ -11,9 +11,8 @@ import com.samskivert.depot.expression.SQLExpression;
import com.samskivert.depot.impl.FragmentVisitor;
/**
* Represents a DISTINCT [ON <exp>] clause.
*
* Note: You almost certainly only ever want to use this in a SELECT statement.
* Represents a {@code DISTINCT [ON <exp>]} clause. Note: You almost certainly only ever want to use
* this in a SELECT statement.
*/
public class Distinct implements QueryClause
{