This commit is contained in:
Redkale
2017-11-29 14:03:53 +08:00
parent f1c4ac9e67
commit e6bc34d6f8

View File

@@ -52,6 +52,7 @@ public class DataJdbcSource extends AbstractService implements DataSource, DataC
protected final BiFunction<DataSource, Class, List> fullloader = (s, t) -> querySheet(false, false, t, null, null, (FilterNode) null).list(true); protected final BiFunction<DataSource, Class, List> fullloader = (s, t) -> querySheet(false, false, t, null, null, (FilterNode) null).list(true);
public DataJdbcSource(String unitName, Properties readprop, Properties writeprop) { public DataJdbcSource(String unitName, Properties readprop, Properties writeprop) {
this.preConstruct(unitName, readprop, writeprop);
this.initByProperties(unitName, readprop, writeprop); this.initByProperties(unitName, readprop, writeprop);
} }
@@ -85,6 +86,9 @@ public class DataJdbcSource extends AbstractService implements DataSource, DataC
} }
//构造前调用 //构造前调用
protected void preConstruct(String unitName, Properties readprop, Properties writeprop) {
}
protected void initByProperties(String unitName, Properties readprop, Properties writeprop) { protected void initByProperties(String unitName, Properties readprop, Properties writeprop) {
this.name = unitName; this.name = unitName;
this.conf = null; this.conf = null;