Interface Persistable.ObjectIdFieldSupplier
- Enclosing interface:
Persistable
public static interface Persistable.ObjectIdFieldSupplier
This interface is used to provide fields to the Object id instance. It is used by the method copyKeyFieldsToObjectId.
When the method is called, the generated code calls the instance of the FieldManager for each field in the object id.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanfetchBooleanField(int fieldNumber) Fetch one field from the field manager.bytefetchByteField(int fieldNumber) Fetch one field from the field manager.charfetchCharField(int fieldNumber) Fetch one field from the field manager.doublefetchDoubleField(int fieldNumber) Fetch one field from the field manager.floatfetchFloatField(int fieldNumber) Fetch one field from the field manager.intfetchIntField(int fieldNumber) Fetch one field from the field manager.longfetchLongField(int fieldNumber) Fetch one field from the field manager.fetchObjectField(int fieldNumber) Fetch one field from the field manager.shortfetchShortField(int fieldNumber) Fetch one field from the field manager.fetchStringField(int fieldNumber) Fetch one field from the field manager.
-
Method Details
-
fetchBooleanField
boolean fetchBooleanField(int fieldNumber) Fetch one field from the field manager. This field will be stored in the proper field of the ObjectId.- Parameters:
fieldNumber- the field number of the key field.- Returns:
- the value of the field to be stored into the ObjectId.
-
fetchCharField
char fetchCharField(int fieldNumber) Fetch one field from the field manager. This field will be stored in the proper field of the ObjectId.- Parameters:
fieldNumber- the field number of the key field.- Returns:
- the value of the field to be stored into the ObjectId.
-
fetchByteField
byte fetchByteField(int fieldNumber) Fetch one field from the field manager. This field will be stored in the proper field of the ObjectId.- Parameters:
fieldNumber- the field number of the key field.- Returns:
- the value of the field to be stored into the ObjectId.
-
fetchShortField
short fetchShortField(int fieldNumber) Fetch one field from the field manager. This field will be stored in the proper field of the ObjectId.- Parameters:
fieldNumber- the field number of the key field.- Returns:
- the value of the field to be stored into the ObjectId.
-
fetchIntField
int fetchIntField(int fieldNumber) Fetch one field from the field manager. This field will be stored in the proper field of the ObjectId.- Parameters:
fieldNumber- the field number of the key field.- Returns:
- the value of the field to be stored into the ObjectId.
-
fetchLongField
long fetchLongField(int fieldNumber) Fetch one field from the field manager. This field will be stored in the proper field of the ObjectId.- Parameters:
fieldNumber- the field number of the key field.- Returns:
- the value of the field to be stored into the ObjectId.
-
fetchFloatField
float fetchFloatField(int fieldNumber) Fetch one field from the field manager. This field will be stored in the proper field of the ObjectId.- Parameters:
fieldNumber- the field number of the key field.- Returns:
- the value of the field to be stored into the ObjectId.
-
fetchDoubleField
double fetchDoubleField(int fieldNumber) Fetch one field from the field manager. This field will be stored in the proper field of the ObjectId.- Parameters:
fieldNumber- the field number of the key field.- Returns:
- the value of the field to be stored into the ObjectId.
-
fetchStringField
Fetch one field from the field manager. This field will be stored in the proper field of the ObjectId.- Parameters:
fieldNumber- the field number of the key field.- Returns:
- the value of the field to be stored into the ObjectId.
-
fetchObjectField
Fetch one field from the field manager. This field will be stored in the proper field of the ObjectId.- Parameters:
fieldNumber- the field number of the key field.- Returns:
- the value of the field to be stored into the ObjectId.
-