public interface ColumnAccessByName
Modifier and Type | Method and Description |
---|---|
Object |
getByName(String field)
Retrieves a field from the object by name.
|
Object |
getByPeerName(String name)
Retrieves a field from the object by name passed in as a String.
|
Object |
getByPosition(int pos)
Retrieves a field from the object by position as specified in a database
schema for example.
|
boolean |
setByName(String name,
Object value)
Set a field in the object by field (Java) name.
|
boolean |
setByPeerName(String name,
Object value)
Set field values by Peer Field Name-
|
boolean |
setByPosition(int position,
Object value)
Set field values by it's position (zero based) in the XML schema.
|
Object getByName(String field)
field
- The name of the field to retrieve.boolean setByName(String name, Object value) throws TorqueException
name
- field name.value
- field value.IllegalArgumentException
- if object type of value does not match
field object type.TorqueException
- If a problem occurs with the set[Field] method.Object getByPeerName(String name)
name
- field name.boolean setByPeerName(String name, Object value) throws TorqueException
name
- field name.value
- field value.IllegalArgumentException
- if object type of value does not match
field object type.TorqueException
- If a problem occurs with the set[Field] method.Object getByPosition(int pos)
pos
- field position.boolean setByPosition(int position, Object value) throws TorqueException
position
- The field position.value
- field value.IllegalArgumentException
- if object type of value does not match
field object type.TorqueException
- If a problem occurs with the set[Field] method.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.