鑫垚影视 v20.42版本的 MD5 值为:e3822d25ef47121f1770bb4806abacfe
以下内容为反编译后的 b.java 源代码,内容仅作参考
package n.i.d.m;
import org.dbunit.database.DatabaseConfig;
import org.dbunit.database.IDatabaseConnection;
import org.dbunit.dataset.datatype.DataType;
import org.dbunit.dataset.datatype.DataTypeException;
import org.dbunit.dataset.datatype.DefaultDataTypeFactory;
public abstract class b extends n.i.d.m.a {
public class a extends DefaultDataTypeFactory {
public a() {
}
public DataType a(int i2, String str) throws DataTypeException {
if (i2 == 16) {
return DataType.BOOLEAN;
}
return super.createDataType(i2, str);
}
}
@Override
public void a(IDatabaseConnection iDatabaseConnection) {
try {
iDatabaseConnection.getConnection().prepareStatement("set referential_integrity FALSE").execute();
} catch (Exception e2) {
throw new RuntimeException(e2);
}
}
@Override
public void c(DatabaseConfig databaseConfig) {
super.c(databaseConfig);
databaseConfig.setProperty("http://www.dbunit.org/properties/datatypeFactory", new a());
}
@Override
public void d(IDatabaseConnection iDatabaseConnection) {
try {
iDatabaseConnection.getConnection().prepareStatement("set referential_integrity TRUE").execute();
} catch (Exception e2) {
throw new RuntimeException(e2);
}
}
}