public DAOMethodNameCalculator getDAOMethodNameCalculator() { if (dAOMethodNameCalculator == null) { String type = context.getJavaClientGeneratorConfiguration().getProperty( PropertyRegistry.DAO_METHOD_NAME_CALCULATOR); if (stringHasValue(type)) { if ("extended".equalsIgnoreCase(type)) { //$NON-NLS-1$ type = ExtendedDAOMethodNameCalculator.class.getName(); } else if ("default".equalsIgnoreCase(type)) { //$NON-NLS-1$ type = DefaultDAOMethodNameCalculator.class.getName(); } } else { type = DefaultDAOMethodNameCalculator.class.getName(); } try { dAOMethodNameCalculator = (DAOMethodNameCalculator) ObjectFactory.createInternalObject(type); } catch (Exception e) { dAOMethodNameCalculator = new DefaultDAOMethodNameCalculator(); warnings.add(getString("Warning.17", type, e.getMessage())); //$NON-NLS-1$ } } return dAOMethodNameCalculator; }
public DAOMethodNameCalculator getDAOMethodNameCalculator() { if (dAOMethodNameCalculator == null) { String type = context.getJavaClientGeneratorConfiguration() .getProperty(PropertyRegistry.DAO_METHOD_NAME_CALCULATOR); if (stringHasValue(type)) { if ("extended".equalsIgnoreCase(type)) { //$NON-NLS-1$ type = ExtendedDAOMethodNameCalculator.class.getName(); } else if ("default".equalsIgnoreCase(type)) { //$NON-NLS-1$ type = DefaultDAOMethodNameCalculator.class.getName(); } } else { type = DefaultDAOMethodNameCalculator.class.getName(); } try { dAOMethodNameCalculator = (DAOMethodNameCalculator) ObjectFactory .createInternalObject(type); } catch (Exception e) { dAOMethodNameCalculator = new DefaultDAOMethodNameCalculator(); warnings.add(getString( "Warning.17", type, e.getMessage())); //$NON-NLS-1$ } } return dAOMethodNameCalculator; }
public DAOMethodNameCalculator getDAOMethodNameCalculator() { if (daoMethodNameCalculator == null) { String type = context.getJavaClientGeneratorConfiguration() .getProperty(PropertyRegistry.DAO_METHOD_NAME_CALCULATOR); if (stringHasValue(type)) { if ("extended".equalsIgnoreCase(type)) { //$NON-NLS-1$ type = ExtendedDAOMethodNameCalculator.class.getName(); } else if ("default".equalsIgnoreCase(type)) { //$NON-NLS-1$ type = DefaultDAOMethodNameCalculator.class.getName(); } } else { type = DefaultDAOMethodNameCalculator.class.getName(); } try { daoMethodNameCalculator = (DAOMethodNameCalculator) ObjectFactory .createInternalObject(type); } catch (Exception e) { daoMethodNameCalculator = new DefaultDAOMethodNameCalculator(); warnings.add(getString( "Warning.17", type, e.getMessage())); //$NON-NLS-1$ } } return daoMethodNameCalculator; }
public DAOMethodNameCalculator getDAOMethodNameCalculator() { if (dAOMethodNameCalculator == null) { String type = context.getJavaClientGeneratorConfiguration() .getProperty(PropertyRegistry.DAO_METHOD_NAME_CALCULATOR); if (stringHasValue(type)) { if ("extended".equalsIgnoreCase(type)) { //$NON-NLS-1$ type = ExtendedDAOMethodNameCalculator.class.getName(); } else if ("default".equalsIgnoreCase(type)) { //$NON-NLS-1$ type = DefaultDAOMethodNameCalculator.class.getName(); } } else { type = DefaultDAOMethodNameCalculator.class.getName(); } try { dAOMethodNameCalculator = (DAOMethodNameCalculator) ObjectFactory .createInternalObject(type); } catch (Exception e) { dAOMethodNameCalculator = new DefaultDAOMethodNameCalculator(); warnings.add(getString( "Warning.17", type, e.getMessage())); //$NON-NLS-1$ } } return dAOMethodNameCalculator; }