You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
2.2 KiB
81 lines
2.2 KiB
package com.fr.plugin.db.procedure.entity; |
|
|
|
import com.fr.json.JSONObject; |
|
import com.fr.stable.db.entity.BaseEntity; |
|
import com.fr.third.javax.persistence.Column; |
|
import com.fr.third.javax.persistence.Entity; |
|
import com.fr.third.javax.persistence.Table; |
|
|
|
@Entity |
|
@Table(name = "template_procedure_conf") |
|
public class TemplateProcedureEntity extends BaseEntity { |
|
|
|
@Column(name = "procedureId") |
|
private String procedureId; |
|
|
|
@Column(name = "procedureName") |
|
private String procedureName; |
|
|
|
@Column(name = "reportPath") |
|
private String reportPath; |
|
|
|
@Column(name = "connectionName") |
|
private String connectionName; |
|
|
|
@Column(name = "connectionId") |
|
private String connectionId; |
|
|
|
public String toString(){ |
|
return "id:"+this.getId()+",procedureId:"+this.procedureId+",procedureName:"+this.procedureName+",reportPath:"+this.reportPath+",connectionName:"+this.connectionName+",connectionId:"+this.connectionId; |
|
} |
|
public JSONObject toJson(){ |
|
JSONObject jsonObject = new JSONObject(); |
|
jsonObject.put("id",this.getId()); |
|
jsonObject.put("procedureId",this.procedureId); |
|
jsonObject.put("procedureName",this.procedureName); |
|
jsonObject.put("reportPath",this.reportPath); |
|
jsonObject.put("connectionName",this.connectionName); |
|
jsonObject.put("connectionId",this.connectionId); |
|
return jsonObject; |
|
} |
|
|
|
public String getProcedureId() { |
|
return procedureId; |
|
} |
|
|
|
public void setProcedureId(String procedureId) { |
|
this.procedureId = procedureId; |
|
} |
|
|
|
public String getProcedureName() { |
|
return procedureName; |
|
} |
|
|
|
public void setProcedureName(String procedureName) { |
|
this.procedureName = procedureName; |
|
} |
|
|
|
public String getReportPath() { |
|
return reportPath; |
|
} |
|
|
|
public void setReportPath(String reportPath) { |
|
this.reportPath = reportPath; |
|
} |
|
|
|
public String getConnectionName() { |
|
return connectionName; |
|
} |
|
|
|
public void setConnectionName(String connectionName) { |
|
this.connectionName = connectionName; |
|
} |
|
|
|
public String getConnectionId() { |
|
return connectionId; |
|
} |
|
|
|
public void setConnectionId(String connectionId) { |
|
this.connectionId = connectionId; |
|
} |
|
}
|
|
|