From: Vance K. <va...@us...> - 2006-01-23 05:52:06
|
User: vancek Date: 06/01/22 21:51:55 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3EntityAttributeFacadeLogicImpl.java Log: added generatorTypeAuto, generatorTypeNone and generatorTypeIdentity Revision Changes Path 1.5 +48 -0 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityAttributeFacadeLogicImpl.java Index: EJB3EntityAttributeFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityAttributeFacadeLogicImpl.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -w -r1.4 -r1.5 --- EJB3EntityAttributeFacadeLogicImpl.java 18 Jan 2006 09:19:11 -0000 1.4 +++ EJB3EntityAttributeFacadeLogicImpl.java 23 Jan 2006 05:51:55 -0000 1.5 @@ -154,6 +154,54 @@ } /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3EntityAttributeFacadeLogic#handleIsGeneratorTypeAuto() + */ + protected boolean handleIsGeneratorTypeAuto() + { + boolean isAuto = false; + if (StringUtils.isNotBlank(this.getGeneratorType())) + { + if (this.getGeneratorType().equalsIgnoreCase(EJB3Globals.GENERATOR_TYPE_AUTO)) + { + isAuto = true; + } + } + return isAuto; + } + + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3EntityAttributeFacadeLogic#handleIsGeneratorTypeNone() + */ + protected boolean handleIsGeneratorTypeNone() + { + boolean isNone = false; + if (StringUtils.isNotBlank(this.getGeneratorType())) + { + if (this.getGeneratorType().equalsIgnoreCase(EJB3Globals.GENERATOR_TYPE_NONE)) + { + isNone = true; + } + } + return isNone; + } + + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3EntityAttributeFacadeLogic#handleIsGeneratorTypeIdentity() + */ + protected boolean handleIsGeneratorTypeIdentity() + { + boolean isIdentity = false; + if (StringUtils.isNotBlank(this.getGeneratorType())) + { + if (this.getGeneratorType().equalsIgnoreCase(EJB3Globals.GENERATOR_TYPE_IDENTITY)) + { + isIdentity = true; + } + } + return isIdentity; + } + + /** * @see org.andromda.cartridges.ejb3.metafacades.EJB3EntityAttributeFacadeLogic#handleGetGeneratorName() */ protected String handleGetGeneratorName() |