pt.ist.fenixframework.backend.infinispan
Class InfinispanCodeGenerator
java.lang.Object
pt.ist.fenixframework.dml.CodeGenerator
pt.ist.fenixframework.dml.DefaultCodeGenerator
pt.ist.fenixframework.dml.DAPCodeGenerator
pt.ist.fenixframework.dml.TxIntrospectorCodeGenerator
pt.ist.fenixframework.dml.IndexesCodeGenerator
pt.ist.fenixframework.backend.infinispan.InfinispanCodeGenerator
public class InfinispanCodeGenerator
- extends IndexesCodeGenerator
Method Summary |
protected void |
generateBaseClassBody(DomainClass domClass,
PrintWriter out)
|
protected void |
generateDefaultConstructor(DomainClass domClass,
PrintWriter out)
|
protected void |
generateFilePreamble(String subPackageName,
PrintWriter out)
|
protected void |
generateInfinispanGetter(DomainClass domainClass,
Slot slot,
PrintWriter out)
|
protected void |
generateInfinispanGetterBody(DomainClass domainClass,
Slot slot,
PrintWriter out)
|
protected void |
generateInfinispanSetter(DomainClass domainClass,
Slot slot,
PrintWriter out)
|
protected void |
generateInfinispanSetterBody(DomainClass domainClass,
Slot slot,
PrintWriter out)
|
protected void |
generateInitInstanceMethodBody(DomainClass domClass,
PrintWriter out)
|
protected void |
generateIteratorMethod(Role role,
PrintWriter out)
|
protected void |
generateRoleMethodAdd(Role role,
Role otherRole,
PrintWriter out)
|
protected void |
generateRoleMethodRemove(Role role,
Role otherRole,
PrintWriter out)
|
protected void |
generateRoleSlotMethodsMultOne(Role role,
PrintWriter out)
|
protected void |
generateRoleSlotMethodsMultOneGetter(String slotName,
String typeName,
PrintWriter out)
|
protected void |
generateRoleSlotMethodsMultOneInternalSetter(Role role,
PrintWriter out)
|
protected void |
generateRoleSlotMethodsMultStar(Role role,
PrintWriter out)
|
protected void |
generateRoleSlotMethodsMultStarCount(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName)
|
protected void |
generateRoleSlotMethodsMultStarGetter(Role role,
PrintWriter out)
|
protected void |
generateRoleSlotMethodsMultStarHasAnyChild(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName)
|
protected void |
generateRoleSlotMethodsMultStarHasChild(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName,
String typeName,
String slotName)
|
protected void |
generateRoleSlotMethodsMultStarRemover(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName,
String typeName,
String slotName)
|
protected void |
generateRoleSlotMethodsMultStarSet(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName,
String typeName)
|
protected void |
generateRoleSlotMethodsMultStarSetter(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName,
String typeName,
String slotName)
|
protected void |
generateSlotAccessors(DomainClass domainClass,
Slot slot,
PrintWriter out)
|
protected void |
generateStaticRoleSlotsMultOne(Role role,
Role otherRole,
PrintWriter out)
|
protected Class<? extends ContextFactory> |
getAtomicContextFactoryClass()
Get the class that implements the ContextFactory for AtomicContexts |
protected String |
getBackEndName()
Get the name of the backend for which this class generates code. |
protected String |
getDefaultConfigClassName()
Get the name of the default configuration class of the backend for which this class
generates code. |
protected String |
getDomainClassRoot()
|
protected String |
getNewRoleStarSlotExpression(Role role)
|
protected String |
getNewRoleStarSlotExpressionWithBackingSet(Role role,
String theSet)
|
protected String |
getRoleOneBaseType()
|
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, generateCode, generateCurrentBackEndIdClass, generateGetter, generateInitInstance, generateInitInstanceInitializer, generateInitInstanceMethod, generateInitInstanceNoArg, generateInitRoleSlot, generateOneClass, generatePackageDecl, generatePublicClass, generatePublicClassConstructors, generatePublicFilePreamble, generateRelationGetter, generateRelationGetter, generateRoleGetter, generateRoleMethodGetInverseRole, generateRoleSlot, generateRoleSlotMethods, generateRoleSlotMethodsMultOneSetter, generateRoleSlotMethodsMultStarGettersAndIterators, generateRoleSlots, generateRoleSlotsMethods, generateSetter, generateSlot, generateSlotDeclaration, generateSlotGetter, generateSlots, generateSlotsAccessors, generateSlotSetter, generateStaticRelationSlots, generateStaticRoleSlots, generateStaticRoleSlotsMultStar, generateStaticSlots, getAdderMethodName, getBaseDirectoryFor, getCollectionTypeFor, getConcreteSetTypeDeclarationFor, getDefaultCollectionFor, getDirectoryFor, getDirectRelationType, getDomainModel, getEntityFullName, getMethodModifiers, getPackageName, getPackagePrefix, getReferenceType, getRelationAwareBaseTypeFor, getRelationAwareTypeFor, getRelationSlotNameFor, getRemoverMethodName, getRoleArgs, getRoleBaseType, getRoleHandlerName, getRoleManyBaseType, 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 |
VT_SERIALIZER
protected static final String VT_SERIALIZER
- See Also:
- Constant Field Values
VT_DESERIALIZER
protected static final String VT_DESERIALIZER
- See Also:
- Constant Field Values
InfinispanCodeGenerator
public InfinispanCodeGenerator(CompilerArgs compArgs,
DomainModel domainModel)
getDomainClassRoot
protected String getDomainClassRoot()
- Overrides:
getDomainClassRoot
in class CodeGenerator
getBackEndName
protected String getBackEndName()
- Description copied from class:
CodeGenerator
- Get the name of the backend for which this class generates code. This method is used during
the execution of
CodeGenerator.generateBackEndId()
.
- Overrides:
getBackEndName
in class DefaultCodeGenerator
getDefaultConfigClassName
protected String getDefaultConfigClassName()
- Description copied from class:
CodeGenerator
- Get the name of the default configuration class of the backend for which this class
generates code. This method is used during the execution of
CodeGenerator.generateBackEndId()
.
- Overrides:
getDefaultConfigClassName
in class DefaultCodeGenerator
getAtomicContextFactoryClass
protected Class<? extends ContextFactory> getAtomicContextFactoryClass()
- Description copied from class:
CodeGenerator
- Get the class that implements the ContextFactory for AtomicContexts
- Overrides:
getAtomicContextFactoryClass
in class DefaultCodeGenerator
generateFilePreamble
protected void generateFilePreamble(String subPackageName,
PrintWriter out)
- Overrides:
generateFilePreamble
in class CodeGenerator
generateBaseClassBody
protected void generateBaseClassBody(DomainClass domClass,
PrintWriter out)
- Overrides:
generateBaseClassBody
in class IndexesCodeGenerator
generateInitInstanceMethodBody
protected void generateInitInstanceMethodBody(DomainClass domClass,
PrintWriter out)
- Overrides:
generateInitInstanceMethodBody
in class CodeGenerator
generateDefaultConstructor
protected void generateDefaultConstructor(DomainClass domClass,
PrintWriter out)
generateStaticRoleSlotsMultOne
protected void generateStaticRoleSlotsMultOne(Role role,
Role otherRole,
PrintWriter out)
- Overrides:
generateStaticRoleSlotsMultOne
in class CodeGenerator
generateRoleMethodAdd
protected void generateRoleMethodAdd(Role role,
Role otherRole,
PrintWriter out)
generateRoleMethodRemove
protected void generateRoleMethodRemove(Role role,
Role otherRole,
PrintWriter out)
generateSlotAccessors
protected void generateSlotAccessors(DomainClass domainClass,
Slot slot,
PrintWriter out)
- Overrides:
generateSlotAccessors
in class CodeGenerator
generateInfinispanGetter
protected void generateInfinispanGetter(DomainClass domainClass,
Slot slot,
PrintWriter out)
generateInfinispanSetter
protected void generateInfinispanSetter(DomainClass domainClass,
Slot slot,
PrintWriter out)
generateInfinispanGetterBody
protected void generateInfinispanGetterBody(DomainClass domainClass,
Slot slot,
PrintWriter out)
generateInfinispanSetterBody
protected void generateInfinispanSetterBody(DomainClass domainClass,
Slot slot,
PrintWriter out)
generateRoleSlotMethodsMultOne
protected void generateRoleSlotMethodsMultOne(Role role,
PrintWriter out)
- Overrides:
generateRoleSlotMethodsMultOne
in class CodeGenerator
generateRoleSlotMethodsMultOneInternalSetter
protected void generateRoleSlotMethodsMultOneInternalSetter(Role role,
PrintWriter out)
generateRoleSlotMethodsMultOneGetter
protected void generateRoleSlotMethodsMultOneGetter(String slotName,
String typeName,
PrintWriter out)
- Overrides:
generateRoleSlotMethodsMultOneGetter
in class CodeGenerator
generateRoleSlotMethodsMultStar
protected void generateRoleSlotMethodsMultStar(Role role,
PrintWriter out)
- Overrides:
generateRoleSlotMethodsMultStar
in class CodeGenerator
generateRoleSlotMethodsMultStarGetter
protected void generateRoleSlotMethodsMultStarGetter(Role role,
PrintWriter out)
generateRoleSlotMethodsMultStarSetter
protected void generateRoleSlotMethodsMultStarSetter(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName,
String typeName,
String slotName)
generateRoleSlotMethodsMultStarRemover
protected void generateRoleSlotMethodsMultStarRemover(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName,
String typeName,
String slotName)
generateRoleSlotMethodsMultStarCount
protected void generateRoleSlotMethodsMultStarCount(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName)
generateRoleSlotMethodsMultStarHasAnyChild
protected void generateRoleSlotMethodsMultStarHasAnyChild(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName)
generateRoleSlotMethodsMultStarHasChild
protected void generateRoleSlotMethodsMultStarHasChild(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName,
String typeName,
String slotName)
generateRoleSlotMethodsMultStarSet
protected void generateRoleSlotMethodsMultStarSet(Role role,
PrintWriter out,
String methodModifiers,
String capitalizedSlotName,
String typeName)
generateIteratorMethod
protected void generateIteratorMethod(Role role,
PrintWriter out)
- Overrides:
generateIteratorMethod
in class CodeGenerator
getNewRoleStarSlotExpression
protected String getNewRoleStarSlotExpression(Role role)
- Overrides:
getNewRoleStarSlotExpression
in class CodeGenerator
getNewRoleStarSlotExpressionWithBackingSet
protected String getNewRoleStarSlotExpressionWithBackingSet(Role role,
String theSet)
getRoleOneBaseType
protected String getRoleOneBaseType()
- Overrides:
getRoleOneBaseType
in class CodeGenerator
Copyright © 2013. All Rights Reserved.