MCPcopy Create free account
hub / github.com/annmuor/jnode / Jscript

Class Jscript

jnode-core/src/jnode/dto/Jscript.java:33–69  ·  view source on GitHub ↗

javascript for API Java Scripting @author Manjago

Source from the content-addressed store, hash-verified

31 *
32 */
33@DatabaseTable(tableName = "jscripts")
34public class Jscript {
35 @DatabaseField(columnName = "id", generatedId = true)
36 private Long id;
37 @DatabaseField(columnName = "content", dataType = DataType.LONG_STRING)
38 private String content;
39
40 public Long getId() {
41 return id;
42 }
43 public void setId(Long id) {
44 this.id = id;
45 }
46 public String getContent() {
47 return content;
48 }
49 public void setContent(String content) {
50 this.content = content;
51 }
52 @Override
53 public String toString() {
54 StringBuilder builder = new StringBuilder();
55 builder.append("Jscript [");
56 if (id != null) {
57 builder.append("id=");
58 builder.append(id);
59 builder.append(", ");
60 }
61 if (content != null) {
62 builder.append("content=");
63 builder.append(content);
64 }
65 builder.append("]");
66 return builder.toString();
67 }
68
69}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected