public interface IngredientBatchForm extends IngredientForm
This is the form for creating and updating ingredients in bulk.
Like all OsidForm
objects, various data elements
may be set here for use in the create and update methods in the
DirectionBatchAdminSession.
For each data element that may be set,
metadata may be examined to provide display hints or data constraints.
Modifier and Type | Method and Description |
---|---|
Id |
getDirectionId()
Gets the
Id of the direction if this is a create
transaction. |
Id |
getIngredientId()
Gets the
Id of the ingredient to be updated if this is
an update transaction. |
clearQuantity, clearStock, clearUnitType, getIngredientFormRecord, getQuantityMetadata, getStockMetadata, getUnitTypeMetadata, setQuantity, setStock, setUnitType
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
Id getDirectionId()
Id
of the direction if this is a create
transaction. Id
IllegalStateException
- isForUpdate()
is
true
mandatory
- This method must be implemented. Id getIngredientId()
Id
of the ingredient to be updated if this is
an update transaction. Id
IllegalStateException
- isForUpdate()
is
false
mandatory
- This method must be implemented.