fix doc and remove persist value.

This commit is contained in:
astroshim 2016-11-22 16:47:28 +09:00
parent 63f5ea7722
commit 7a92236a4a
3 changed files with 3 additions and 6 deletions

View file

@ -118,7 +118,7 @@ The JDBC interpreter properties are defined by default like below.
If you want to connect other databases such as `Mysql`, `Redshift` and `Hive`, you need to edit the property values.
You can also use [Credential](../security/datasource_authorization.html) for JDBC authentication.
If `default.user` and `default.password` are not defined for database connection in the interpreter properties,
If `default.user` and `default.password` properties are deleted(using X button) for database connection in the interpreter setting page,
the JDBC interpreter will get the account information from [Credential](../security/datasource_authorization.html).
The below example is for `Mysql` connection.

View file

@ -93,6 +93,7 @@ public class PythonCondaInterpreterTest implements InterpreterOutputListener {
return new InterpreterContext(
"noteId",
"paragraphId",
null,
"paragraphTitle",
"paragraphText",
new AuthenticationInfo(),

View file

@ -55,7 +55,6 @@ public class Paragraph extends Job implements Serializable, Cloneable {
private transient Note note;
private transient AuthenticationInfo authenticationInfo;
String replName;
String title;
String text;
String user;
@ -81,7 +80,6 @@ public class Paragraph extends Job implements Serializable, Cloneable {
this.note = note;
this.factory = factory;
title = null;
replName = null;
text = null;
authenticationInfo = null;
user = null;
@ -95,7 +93,6 @@ public class Paragraph extends Job implements Serializable, Cloneable {
this.note = note;
this.factory = factory;
title = null;
replName = null;
text = null;
authenticationInfo = null;
dateUpdated = null;
@ -295,7 +292,6 @@ public class Paragraph extends Job implements Serializable, Cloneable {
String replName = getRequiredReplName();
Interpreter repl = getRepl(replName);
logger.info("run paragraph {} using {} " + repl, getId(), replName);
this.replName = replName;
if (repl == null) {
logger.error("Can not find interpreter name " + repl);
throw new RuntimeException("Can not find interpreter for " + getRequiredReplName());
@ -477,7 +473,7 @@ public class Paragraph extends Job implements Serializable, Cloneable {
InterpreterContext interpreterContext = new InterpreterContext(
note.getId(),
getId(),
this.replName,
getRequiredReplName(),
this.getTitle(),
this.getText(),
this.getAuthenticationInfo(),