[#6441] Improve TableLike.field(Field) Javadoc
This commit is contained in:
parent
36eba8110e
commit
339fa0db3e
@ -85,8 +85,19 @@ public interface Cursor<R extends Record> extends Iterable<R> , AutoCloseable {
|
||||
/**
|
||||
* Get a specific field from this Cursor.
|
||||
* <p>
|
||||
* Usually, this will return the field itself. However, if this is a row
|
||||
* from an aliased table, the field will be aliased accordingly.
|
||||
* This will return:
|
||||
* <ul>
|
||||
* <li>A field that is the same as the argument field (by identity
|
||||
* comparison).</li>
|
||||
* <li>A field that is equal to the argument field (exact matching fully
|
||||
* qualified name).</li>
|
||||
* <li>A field that is equal to the argument field (partially matching
|
||||
* qualified name).</li>
|
||||
* <li>A field whose name is equal to the name of the argument field.</li>
|
||||
* <li><code>null</code> otherwise.
|
||||
* </ul>
|
||||
* If several fields have the same name, the first one is returned and a
|
||||
* warning is logged.
|
||||
*
|
||||
* @see Row#field(Field)
|
||||
*/
|
||||
|
||||
@ -112,8 +112,19 @@ public interface Record extends Attachable, Comparable<Record> {
|
||||
/**
|
||||
* Get a specific field from this Record.
|
||||
* <p>
|
||||
* Usually, this will return the field itself. However, if this is a row
|
||||
* from an aliased table, the field will be aliased accordingly.
|
||||
* This will return:
|
||||
* <ul>
|
||||
* <li>A field that is the same as the argument field (by identity
|
||||
* comparison).</li>
|
||||
* <li>A field that is equal to the argument field (exact matching fully
|
||||
* qualified name).</li>
|
||||
* <li>A field that is equal to the argument field (partially matching
|
||||
* qualified name).</li>
|
||||
* <li>A field whose name is equal to the name of the argument field.</li>
|
||||
* <li><code>null</code> otherwise.
|
||||
* </ul>
|
||||
* If several fields have the same name, the first one is returned and a
|
||||
* warning is logged.
|
||||
*
|
||||
* @see Row#field(Field)
|
||||
*/
|
||||
|
||||
@ -58,8 +58,19 @@ public interface RecordType<R extends Record> {
|
||||
/**
|
||||
* Get a specific field from this record type.
|
||||
* <p>
|
||||
* Usually, this will return the field itself. However, if this is a row
|
||||
* type from an aliased table, the field will be aliased accordingly.
|
||||
* This will return:
|
||||
* <ul>
|
||||
* <li>A field that is the same as the argument field (by identity
|
||||
* comparison).</li>
|
||||
* <li>A field that is equal to the argument field (exact matching fully
|
||||
* qualified name).</li>
|
||||
* <li>A field that is equal to the argument field (partially matching
|
||||
* qualified name).</li>
|
||||
* <li>A field whose name is equal to the name of the argument field.</li>
|
||||
* <li><code>null</code> otherwise.
|
||||
* </ul>
|
||||
* If several fields have the same name, the first one is returned and a
|
||||
* warning is logged.
|
||||
*
|
||||
* @param <T> The generic field type
|
||||
* @param field The field to fetch
|
||||
|
||||
@ -79,8 +79,19 @@ public interface Result<R extends Record> extends List<R>, Attachable {
|
||||
/**
|
||||
* Get a specific field from this Result.
|
||||
* <p>
|
||||
* Usually, this will return the field itself. However, if this is a row
|
||||
* from an aliased table, the field will be aliased accordingly.
|
||||
* This will return:
|
||||
* <ul>
|
||||
* <li>A field that is the same as the argument field (by identity
|
||||
* comparison).</li>
|
||||
* <li>A field that is equal to the argument field (exact matching fully
|
||||
* qualified name).</li>
|
||||
* <li>A field that is equal to the argument field (partially matching
|
||||
* qualified name).</li>
|
||||
* <li>A field whose name is equal to the name of the argument field.</li>
|
||||
* <li><code>null</code> otherwise.
|
||||
* </ul>
|
||||
* If several fields have the same name, the first one is returned and a
|
||||
* warning is logged.
|
||||
*
|
||||
* @see Row#field(Field)
|
||||
*/
|
||||
|
||||
@ -62,8 +62,19 @@ public interface Row extends FieldOrRow {
|
||||
/**
|
||||
* Get a specific field from this row.
|
||||
* <p>
|
||||
* Usually, this will return the field itself. However, if this is a row
|
||||
* from an aliased table, the field will be aliased accordingly.
|
||||
* This will return:
|
||||
* <ul>
|
||||
* <li>A field that is the same as the argument field (by identity
|
||||
* comparison).</li>
|
||||
* <li>A field that is equal to the argument field (exact matching fully
|
||||
* qualified name).</li>
|
||||
* <li>A field that is equal to the argument field (partially matching
|
||||
* qualified name).</li>
|
||||
* <li>A field whose name is equal to the name of the argument field.</li>
|
||||
* <li><code>null</code> otherwise.
|
||||
* </ul>
|
||||
* If several fields have the same name, the first one is returned and a
|
||||
* warning is logged.
|
||||
*
|
||||
* @param <T> The generic field type
|
||||
* @param field The field to fetch
|
||||
|
||||
@ -61,8 +61,19 @@ public interface TableLike<R extends Record> extends QueryPart {
|
||||
/**
|
||||
* Get a specific field from this table.
|
||||
* <p>
|
||||
* Usually, this will return the field itself. However, if this is a row
|
||||
* from an aliased table, the field will be aliased accordingly.
|
||||
* This will return:
|
||||
* <ul>
|
||||
* <li>A field that is the same as the argument field (by identity
|
||||
* comparison).</li>
|
||||
* <li>A field that is equal to the argument field (exact matching fully
|
||||
* qualified name).</li>
|
||||
* <li>A field that is equal to the argument field (partially matching
|
||||
* qualified name).</li>
|
||||
* <li>A field whose name is equal to the name of the argument field.</li>
|
||||
* <li><code>null</code> otherwise.
|
||||
* </ul>
|
||||
* If several fields have the same name, the first one is returned and a
|
||||
* warning is logged.
|
||||
*
|
||||
* @see Row#field(Field)
|
||||
*/
|
||||
|
||||
@ -59,8 +59,19 @@ public interface UDT<R extends UDTRecord<R>> extends QueryPart {
|
||||
/**
|
||||
* Get a specific field from this UDT.
|
||||
* <p>
|
||||
* Usually, this will return the field itself. However, if this is a row
|
||||
* from an aliased UDT, the field will be aliased accordingly.
|
||||
* This will return:
|
||||
* <ul>
|
||||
* <li>A field that is the same as the argument field (by identity
|
||||
* comparison).</li>
|
||||
* <li>A field that is equal to the argument field (exact matching fully
|
||||
* qualified name).</li>
|
||||
* <li>A field that is equal to the argument field (partially matching
|
||||
* qualified name).</li>
|
||||
* <li>A field whose name is equal to the name of the argument field.</li>
|
||||
* <li><code>null</code> otherwise.
|
||||
* </ul>
|
||||
* If several fields have the same name, the first one is returned and a
|
||||
* warning is logged.
|
||||
*
|
||||
* @see Row#field(Field)
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user