Package org.apache.torque.om
Schnittstelle ColumnAccessByName
public interface ColumnAccessByName
Define accessors by name.
- Version:
- $Id: ColumnAccessByName.java 1448414 2013-02-20 21:06:35Z tfischer $
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungRetrieves a field from the object by name.getByPeerName
(String name) Retrieves a field from the object by name passed in as a String.getByPosition
(int pos) Retrieves a field from the object by position as specified in a database schema for example.boolean
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.
-
Methodendetails
-
getByName
Retrieves a field from the object by name.- Parameter:
field
- The name of the field to retrieve.- Gibt zurück:
- The retrieved field value
-
setByName
Set a field in the object by field (Java) name.- Parameter:
name
- field name.value
- field value.- Gibt zurück:
- True if value was set, false if not (invalid name / protected field).
- Löst aus:
IllegalArgumentException
- if object type of value does not match field object type.TorqueException
- If a problem occurs with the set[Field] method.
-
getByPeerName
Retrieves a field from the object by name passed in as a String.- Parameter:
name
- field name.- Gibt zurück:
- value of the field.
-
setByPeerName
Set field values by Peer Field Name-- Parameter:
name
- field name.value
- field value.- Gibt zurück:
- True if value was set, false if not (invalid name / protected field).
- Löst aus:
IllegalArgumentException
- if object type of value does not match field object type.TorqueException
- If a problem occurs with the set[Field] method.
-
getByPosition
Retrieves a field from the object by position as specified in a database schema for example.- Parameter:
pos
- field position.- Gibt zurück:
- the value of the field.
-
setByPosition
Set field values by it's position (zero based) in the XML schema.- Parameter:
position
- The field position.value
- field value.- Gibt zurück:
- True if value was set, false if not (invalid position / protected field).
- Löst aus:
IllegalArgumentException
- if object type of value does not match field object type.TorqueException
- If a problem occurs with the set[Field] method.
-