pt.ist.fenixframework.dml
Class TxIntrospectorCodeGenerator
java.lang.Object
pt.ist.fenixframework.dml.CodeGenerator
pt.ist.fenixframework.dml.DefaultCodeGenerator
pt.ist.fenixframework.dml.DAPCodeGenerator
pt.ist.fenixframework.dml.TxIntrospectorCodeGenerator
- Direct Known Subclasses:
- IndexesCodeGenerator
public class TxIntrospectorCodeGenerator
- extends DAPCodeGenerator
Code generator used for TxIntrospector information gathering.
Disabled by default. You can enable it by adding
true
to the configuration section of the dml-maven-plugin plugin in your pom.xml.
Note that this code generator will only work with backends which use TxStats
as its TxIntrospector.
Methods inherited from class pt.ist.fenixframework.dml.DAPCodeGenerator |
generateClasses, generateGetterBody, generateGetterDAPStatement, generateIteratorMethod, generateRelationAddMethodCall, generateRelationGetter, generateRelationRemoveMethodCall, generateRoleSlotMethodsMultOneHas, generateRoleSlotMethodsMultOneRemove, generateRoleSlotMethodsMultStarCount, generateRoleSlotMethodsMultStarHasAnyChild, generateRoleSlotMethodsMultStarHasChild, generateRoleSlotMethodsMultStarSet, generateSetterDAPStatement, getGetterDAPStatement, getSetterDAPStatement |
Methods inherited from class pt.ist.fenixframework.dml.CodeGenerator |
capitalize, closeBlock, closeBlock, comment, endMethodBody, findWrapperEntry, generateBackEndId, generateBaseClass, generateBaseClassBody, generateCode, generateCurrentBackEndIdClass, generateFilePreamble, generateGetter, generateInitInstance, generateInitInstanceInitializer, generateInitInstanceMethod, generateInitInstanceMethodBody, generateInitInstanceNoArg, generateInitRoleSlot, generateIteratorMethod, generateOneClass, generatePackageDecl, generatePublicClass, generatePublicClassConstructors, generatePublicFilePreamble, generateRelationGetter, generateRelationGetter, generateRoleGetter, generateRoleMethodGetInverseRole, generateRoleSlot, generateRoleSlotMethods, generateRoleSlotMethodsMultOne, generateRoleSlotMethodsMultOneGetter, generateRoleSlotMethodsMultOneSetter, generateRoleSlotMethodsMultStar, generateRoleSlotMethodsMultStarGettersAndIterators, generateRoleSlots, generateRoleSlotsMethods, generateSetter, generateSlot, generateSlotAccessors, generateSlotDeclaration, generateSlotGetter, generateSlots, generateSlotsAccessors, generateSlotSetter, generateStaticRelationSlots, generateStaticRoleSlots, generateStaticRoleSlotsMultOne, generateStaticRoleSlotsMultStar, generateStaticSlots, getAdderMethodName, getBaseDirectoryFor, getCollectionTypeFor, getConcreteSetTypeDeclarationFor, getDefaultCollectionFor, getDirectoryFor, getDirectRelationType, getDomainClassRoot, getDomainModel, getEntityFullName, getMethodModifiers, getNewRoleStarSlotExpression, getPackageName, getPackagePrefix, getReferenceType, getRelationAwareBaseTypeFor, getRelationAwareTypeFor, getRelationSlotNameFor, getRemoverMethodName, getRoleArgs, getRoleBaseType, getRoleHandlerName, getRoleManyBaseType, getRoleOneBaseType, getRoleType, getSetTypeDeclarationFor, getSlotExpression, getTypeFullName, makeArg, makeGenericType, newBlock, newline, onNewline, print, printFinalMethod, println, printMethod, printWords, setCollectionToUse, startMethodBody, writeToFile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TXINTROSPECTOR_ON_CONFIG_KEY
public static final String TXINTROSPECTOR_ON_CONFIG_KEY
- See Also:
- Constant Field Values
TXINTROSPECTOR_ON_CONFIG_VALUE
public static final String TXINTROSPECTOR_ON_CONFIG_VALUE
- See Also:
- Constant Field Values
TxIntrospectorCodeGenerator
public TxIntrospectorCodeGenerator(CompilerArgs compArgs,
DomainModel domainModel)
generateDefaultRelationListeners
protected void generateDefaultRelationListeners(Role role,
PrintWriter out)
- Overrides:
generateDefaultRelationListeners
in class CodeGenerator
generateBaseClassConstructorsBody
protected void generateBaseClassConstructorsBody(DomainClass domClass,
PrintWriter out)
- Overrides:
generateBaseClassConstructorsBody
in class CodeGenerator
generateSetterBody
protected void generateSetterBody(DomainClass domainClass,
String setterName,
Slot slot,
PrintWriter out)
- Overrides:
generateSetterBody
in class DAPCodeGenerator
generateSetterTxIntrospectorStatement
protected void generateSetterTxIntrospectorStatement(DomainClass domainClass,
Slot slot,
PrintWriter out)
generateBackEndIdClassBody
protected void generateBackEndIdClassBody(PrintWriter out)
- Overrides:
generateBackEndIdClassBody
in class DAPCodeGenerator
Copyright © 2013. All Rights Reserved.