JarGeneratorService

public interface JarGeneratorService

This interface provides methods to create a bundle jar with all entities defined in MDS module.

Fields

BLUEPRINT_TEMPLATE

String BLUEPRINT_TEMPLATE

BLUEPRINT_XML

String BLUEPRINT_XML

BUNDLE_IMPORTS

String BUNDLE_IMPORTS

DATANUCLEUS_PROPERTIES

String DATANUCLEUS_PROPERTIES

ENTITY_LIST_FILE

String ENTITY_LIST_FILE

MDS_COMMON_CONTEXT

String MDS_COMMON_CONTEXT

MDS_ENTITIES_CONTEXT

String MDS_ENTITIES_CONTEXT

MDS_ENTITIES_CONTEXT_TEMPLATE

String MDS_ENTITIES_CONTEXT_TEMPLATE

MOTECH_MDS_PROPERTIES

String MOTECH_MDS_PROPERTIES

PACKAGE_JDO

String PACKAGE_JDO

Methods

generate

File generate()

Generates a jar file that contains entity class definitions, repositories, interfaces, implementations of these interfaces. The jar should also contains class related with historical data and trash.

Throws:
  • IOException – if an I/O error occurs while the jar is creating.
Returns:

file that point to an entitites bundle jar.

regenerateMdsDataBundle

void regenerateMdsDataBundle(boolean buildDDE)

Constructs entities, builds and starts the entities bundle jar

Parameters:
  • buildDDEtrue if class definitions for entities from outside bundles should also be created; otherwise false.

See also: .generate()

regenerateMdsDataBundle

void regenerateMdsDataBundle(boolean buildDDE, boolean startBundle)

Constructs entities, builds the entities bundle jar. The generated bundle will start only if the startBundle will be set to true.

Parameters:
  • buildDDEtrue if class definitions for entities from outside bundles should also be created; otherwise false.
  • startBundletrue if the generated bundle should start; otherwise false.

See also: .generate()

regenerateMdsDataBundleAfterDdeEnhancement

void regenerateMdsDataBundleAfterDdeEnhancement(String moduleName)

Constructs entities, builds and starts the entities bundle jar. This method should be used after DDE enhancement. It will build all DDE classes and refresh the module from which the DDE being enhanced comes from.

Parameters:
  • moduleName – module name of the entity from which the enhanced DDE comes from

See also: .generate()