use of org.dbflute.properties.DfBasicProperties in project dbflute-core by dbflute.
the class DfSchemaXmlReader method doCreateAs.
public static DfSchemaXmlReader doCreateAs(String schemaXml, DfGenetateXmlReadingFilter readingFilter) {
final DfBasicProperties basicProp = DfBuildProperties.getInstance().getBasicProperties();
final DfDatabaseTypeFacadeProp facadeProp = basicProp.getDatabaseTypeFacadeProp();
final String databaseType = facadeProp.getTargetDatabase();
return new DfSchemaXmlReader(schemaXml, databaseType, readingFilter);
}
use of org.dbflute.properties.DfBasicProperties in project dbflute-core by dbflute.
the class DfBasicPropertiesTest method test_extendedConditionBeanPackage_witn_conditionBeanPackage.
public void test_extendedConditionBeanPackage_witn_conditionBeanPackage() {
// ## Arrange ##
Properties prop = new Properties();
prop.setProperty("torque.packageBase", "test.base");
prop.setProperty("torque.conditionBeanPackage", "test.cbean");
prop.setProperty("torque.extendedConditionBeanPackage", "extended.cbean");
DfBasicProperties packageProperties = new DfBasicProperties(prop);
// ## Act ##
String conditionBeanPackage = packageProperties.getConditionBeanPackage();
String extendedConditionBeanPackage = packageProperties.getExtendedConditionBeanPackage();
// ## Assert ##
assertEquals("test.base.test.cbean", conditionBeanPackage);
assertEquals("test.base.extended.cbean", extendedConditionBeanPackage);
}
use of org.dbflute.properties.DfBasicProperties in project dbflute-core by dbflute.
the class DfBasicPropertiesTest method test_conditionBeanPackage.
public void test_conditionBeanPackage() {
// ## Arrange ##
Properties prop = new Properties();
prop.setProperty("torque.packageBase", "test.base");
prop.setProperty("torque.conditionBeanPackage", "test.cbean");
DfBasicProperties packageProperties = new DfBasicProperties(prop);
// ## Act ##
String conditionBeanPackage = packageProperties.getConditionBeanPackage();
// ## Assert ##
assertEquals("test.base.test.cbean", conditionBeanPackage);
}
use of org.dbflute.properties.DfBasicProperties in project dbflute-core by dbflute.
the class DfBasicPropertiesTest method test_extendedConditionBeanPackage_default_same_as_conditionBeanPackage.
public void test_extendedConditionBeanPackage_default_same_as_conditionBeanPackage() {
// ## Arrange ##
Properties prop = new Properties();
prop.setProperty("torque.packageBase", "test.base");
prop.setProperty("torque.conditionBeanPackage", "test.cbean");
DfBasicProperties packageProperties = new DfBasicProperties(prop);
// ## Act ##
String conditionBeanPackage = packageProperties.getConditionBeanPackage();
String extendedConditionBeanPackage = packageProperties.getExtendedConditionBeanPackage();
// ## Assert ##
assertEquals("test.base.test.cbean", conditionBeanPackage);
assertEquals(conditionBeanPackage, extendedConditionBeanPackage);
}
use of org.dbflute.properties.DfBasicProperties in project dbflute-core by dbflute.
the class DfSchemaHistory method createAsCore.
public static DfSchemaHistory createAsCore() {
// pure HistoryHTML
final DfBasicProperties basicProp = DfBuildProperties.getInstance().getBasicProperties();
final DfSchemaXmlFacadeProp facadeProp = basicProp.getSchemaXmlFacadeProp();
return new DfSchemaHistory(facadeProp.getProjectSchemaHistoryFile());
}
Aggregations