Class Fertilizer
java.lang.Object
ch.autumo.beetroot.plant.Fertilizer
Fertilizer for plant.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassException thrown when the fertilizer processing fails. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]Supported CRUD operations.static final StringPlaceholder for the lower-case entity name.static final StringPlaceholder for the lower-case plural entity name.static final StringPlaceholder for the upper-case entity name.static final StringPlaceholder for the upper-case plural entity name. -
Constructor Summary
ConstructorsConstructorDescriptionFertilizer(String dbEntity, String resource, String outputBaseDir, String type) Fertilizer. -
Method Summary
-
Field Details
-
LOWER_ENTITIES_NAME
Placeholder for the lower-case entity name.- See Also:
-
UPPER_ENTITIES_NAME
Placeholder for the upper-case entity name.- See Also:
-
LOWER_ENTITIES_NAME_PLURAL
Placeholder for the lower-case plural entity name.- See Also:
-
UPPER_ENTITIES_NAME_PLURAL
Placeholder for the upper-case plural entity name.- See Also:
-
cruds
Supported CRUD operations.
-
-
Constructor Details
-
Fertilizer
public Fertilizer(String dbEntity, String resource, String outputBaseDir, String type) throws Fertilizer.FertilizerException Fertilizer.- Parameters:
dbEntity- DB entity plural name, e.g. 'properties'.resource- template resourceoutputBaseDir- output directorytype- file type (extension)- Throws:
Fertilizer.FertilizerException- fertilizer exception
-
-
Method Details
-
execute
Executes the fertilizer.- Throws:
Fertilizer.FertilizerException- if the processing fails
-
write
Writes the generated result.- Parameters:
result- the generated result- Throws:
Fertilizer.FertilizerException- if writing fails
-
parse
Parses the templates.- Returns:
- the parsed result
- Throws:
Fertilizer.FertilizerException- if parsing fails
-