@Test public void testGetPropertyAsList() { System.out.println("getPropertyAsList"); Properties props = new Properties(); String key = "testProp"; props.setProperty(key, "alpha, beta, gamma"); List<String> expResult = Arrays.asList("alpha", "beta", "gamma"); List<String> result = EngineConfiguration.getPropertyAsList(props, key); assertEquals(expResult, result); }
static protected List<String> getPropertyAsList(Properties props, String key) { List<String> retVal = null; String listProp = props.getProperty(key); if (listProp != null) { String[] valueArray = listProp.split(",\\s*"); retVal = Arrays.asList(valueArray); } return retVal; }
EngineConfiguration { static protected List<String> getPropertyAsList(Properties props, String key) { List<String> retVal = null; String listProp = props.getProperty(key); if (listProp != null) { String[] valueArray = listProp.split(",\\s*"); retVal = Arrays.asList(valueArray); } return retVal; } }
EngineConfiguration { static protected List<String> getPropertyAsList(Properties props, String key) { List<String> retVal = null; String listProp = props.getProperty(key); if (listProp != null) { String[] valueArray = listProp.split(",\\s*"); retVal = Arrays.asList(valueArray); } return retVal; } EngineConfiguration(
            String databaseName, DATABASE_TYPE databaseType, String url, String username, String password,
            boolean tablePrefix, boolean tableSuffix, boolean fieldPrefix, boolean fieldSuffix,
            String generatedSourcePath, String packageOfJavaModel,
            String packageOfJavaDao, String daoSuffix,
            boolean generateModelToString,
            SEQUENCE_NAME_CONVENTION sequenceNameConvention,
            String replacementTableFilename, String replacementFieldFilename, String enumFieldFilename, String replacementTypeMapFilename,
            String licenseFilename,
            List<String> tableNameIncludes,
            String encoding,
            boolean silent,
            boolean addDbNameToPackageNames); }
EngineConfiguration { static protected List<String> getPropertyAsList(Properties props, String key) { List<String> retVal = null; String listProp = props.getProperty(key); if (listProp != null) { String[] valueArray = listProp.split(",\\s*"); retVal = Arrays.asList(valueArray); } return retVal; } EngineConfiguration(
            String databaseName, DATABASE_TYPE databaseType, String url, String username, String password,
            boolean tablePrefix, boolean tableSuffix, boolean fieldPrefix, boolean fieldSuffix,
            String generatedSourcePath, String packageOfJavaModel,
            String packageOfJavaDao, String daoSuffix,
            boolean generateModelToString,
            SEQUENCE_NAME_CONVENTION sequenceNameConvention,
            String replacementTableFilename, String replacementFieldFilename, String enumFieldFilename, String replacementTypeMapFilename,
            String licenseFilename,
            List<String> tableNameIncludes,
            String encoding,
            boolean silent,
            boolean addDbNameToPackageNames); static EngineConfiguration createFromProperties(String propertiesName); static EngineConfiguration createFromProperties(Properties props); Database getDatabase(); DATABASE_TYPE getDatabaseType(); SEQUENCE_NAME_CONVENTION getSequenceNameConvention(); void setSequenceNameConvention(SEQUENCE_NAME_CONVENTION sequenceNameConvention); String getUrl(); String getUsername(); String getPassword(); boolean isTablePrefix(); boolean isTableSuffix(); boolean isFieldPrefix(); boolean isFieldSuffix(); boolean isSilent(); boolean isAddDbNameToPackageNames(); String getGeneratedSourcePath(); String getPackageOfJavaModel(); String getPackageOfJavaDao(); String getDaoSuffix(); boolean isGenerateModelToString(); void setGenerateModelToString(boolean generateModelToString); List<String> getTableNameIncludes(); void setTableNameIncludes(List<String> tableNameIncludes); String getReplacementTableFilename(); String getReplacementFieldFilename(); String getEnumFieldFilename(); String getReplacementTypeMapFilename(); String getLicenseFilename(); String getLicenseText(); Map<String, String> getReplacementTableMap(); void setReplacementTableMap(Map<String, String> replacementTableMap); Map<String, String> getReplacementFieldMap(); void setReplacementFieldMap(Map<String, String> replacementFieldMap); Map<String, String> getEnumFieldMap(); void setEnumFieldMap(Map<String, String> enumFieldMap); Map<String, String> getReplacementTypeMap(); void setTypeMap(Map<String, String> replacementTypeMap); Locale getLocale(); void setLocale(Locale locale); String getEncoding(); @Override String toString(); }
EngineConfiguration { static protected List<String> getPropertyAsList(Properties props, String key) { List<String> retVal = null; String listProp = props.getProperty(key); if (listProp != null) { String[] valueArray = listProp.split(",\\s*"); retVal = Arrays.asList(valueArray); } return retVal; } EngineConfiguration(
            String databaseName, DATABASE_TYPE databaseType, String url, String username, String password,
            boolean tablePrefix, boolean tableSuffix, boolean fieldPrefix, boolean fieldSuffix,
            String generatedSourcePath, String packageOfJavaModel,
            String packageOfJavaDao, String daoSuffix,
            boolean generateModelToString,
            SEQUENCE_NAME_CONVENTION sequenceNameConvention,
            String replacementTableFilename, String replacementFieldFilename, String enumFieldFilename, String replacementTypeMapFilename,
            String licenseFilename,
            List<String> tableNameIncludes,
            String encoding,
            boolean silent,
            boolean addDbNameToPackageNames); static EngineConfiguration createFromProperties(String propertiesName); static EngineConfiguration createFromProperties(Properties props); Database getDatabase(); DATABASE_TYPE getDatabaseType(); SEQUENCE_NAME_CONVENTION getSequenceNameConvention(); void setSequenceNameConvention(SEQUENCE_NAME_CONVENTION sequenceNameConvention); String getUrl(); String getUsername(); String getPassword(); boolean isTablePrefix(); boolean isTableSuffix(); boolean isFieldPrefix(); boolean isFieldSuffix(); boolean isSilent(); boolean isAddDbNameToPackageNames(); String getGeneratedSourcePath(); String getPackageOfJavaModel(); String getPackageOfJavaDao(); String getDaoSuffix(); boolean isGenerateModelToString(); void setGenerateModelToString(boolean generateModelToString); List<String> getTableNameIncludes(); void setTableNameIncludes(List<String> tableNameIncludes); String getReplacementTableFilename(); String getReplacementFieldFilename(); String getEnumFieldFilename(); String getReplacementTypeMapFilename(); String getLicenseFilename(); String getLicenseText(); Map<String, String> getReplacementTableMap(); void setReplacementTableMap(Map<String, String> replacementTableMap); Map<String, String> getReplacementFieldMap(); void setReplacementFieldMap(Map<String, String> replacementFieldMap); Map<String, String> getEnumFieldMap(); void setEnumFieldMap(Map<String, String> enumFieldMap); Map<String, String> getReplacementTypeMap(); void setTypeMap(Map<String, String> replacementTypeMap); Locale getLocale(); void setLocale(Locale locale); String getEncoding(); @Override String toString(); static final String MISSING_LICENSE_TEXT; }