public class JavaPersistenceCode extends AbstractCode
lk 2024-06-14: more or less a 1:1 translation from PersistenceCode.nrx - there's still room for further optimization and refactoring!
SCOPE_GLOBAL, SCOPE_LOCAL| Constructor and Description |
|---|
JavaPersistenceCode(electric.xml.Element e) |
| Modifier and Type | Method and Description |
|---|---|
void |
debugSUIDCalculation(SchemaI schema) |
boolean |
doGenerate(CBOEntity entity)
Determines whether code should be generated for the given entity.
|
CBOGeneratorResult |
generate(SchemaI schema,
SchemaI ignore)
generates classes for each entity in the provided schema.
|
void |
generateEntity(CBOEntity entity,
SchemaI schema) |
void |
generateInterface(SchemaInterfaceI interfaceI)
generates a java source file for a schema-declared interface
|
java.lang.String |
getFileExtension() |
java.lang.String |
getName()
Retrieves the name of the generator implementation.
|
compile, touchNonModulesEntityFile, writeFile, writeFile, writeFileequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgeneratepublic java.lang.String getName()
CBOGeneratorIgetName in interface CBOGeneratorIgetName in class AbstractCodepublic java.lang.String getFileExtension()
getFileExtension in class AbstractCodepublic CBOGeneratorResult generate(SchemaI schema, SchemaI ignore)
generate in interface CBOGeneratorIgenerate in class AbstractCodeschema - the schema for which entities shall be generatedignore - if given, entities from this schema are ignoredpublic void debugSUIDCalculation(SchemaI schema)
public void generateInterface(SchemaInterfaceI interfaceI)
interfaceI - the schema-declared interface to use as basis for the Java source file.public boolean doGenerate(CBOEntity entity)
Code generation is performed if the following conditions are met:
entity.isGenerate() returns true).entity.isLocal() returns true) or the generator's scope
is not restricted to local entities (scope != CBOGeneratorI.SCOPE_LOCAL).entity - The entity to check for code generation.true if code should be generated for the entity, false otherwise.Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.