public String loadCodeFromDatabase(DBContentType contentType) throws SQLException {
DBSourceCodeLoader loader =
contentType == DBContentType.CODE_SPEC ? new SpecSourceCodeLoader(this) :
contentType == DBContentType.CODE_BODY ? new BodySourceCodeLoader(this) : null;
return loader == null ? null : loader.load();
}
public String getCodeParseRootId(DBContentType contentType) {
if (getParentObject() instanceof DBSchema) {
return contentType == DBContentType.CODE_SPEC ? "type_spec" :