整点视频 v3.3.0版本的 MD5 值为:cba0457dc37421eed445b30f92de25d3
以下内容为反编译后的 H2DBUnitOperations.java 源代码,内容仅作参考
package org.seamless.util.dbunit;
import org.dbunit.database.DatabaseConfig;
import org.dbunit.database.IDatabaseConnection;
import org.dbunit.dataset.datatype.DefaultDataTypeFactory;
public abstract class H2DBUnitOperations extends DBUnitOperations {
class OooO00o extends DefaultDataTypeFactory {
OooO00o(H2DBUnitOperations h2DBUnitOperations) {
}
}
@Override
protected void disableReferentialIntegrity(IDatabaseConnection iDatabaseConnection) {
try {
iDatabaseConnection.getConnection().prepareStatement("set referential_integrity FALSE").execute();
} catch (Exception e) {
throw new RuntimeException(e);
}
}
@Override
public void editConfig(DatabaseConfig databaseConfig) {
super.editConfig(databaseConfig);
databaseConfig.setProperty("http://www.dbunit.org/properties/datatypeFactory", new OooO00o(this));
}
@Override
protected void enableReferentialIntegrity(IDatabaseConnection iDatabaseConnection) {
try {
iDatabaseConnection.getConnection().prepareStatement("set referential_integrity TRUE").execute();
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}