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

Method setOption

jnode-core/src/jnode/ftn/FtnTools.java:1738–1747  ·  view source on GitHub ↗
(Link link, String name, String value)

Source from the content-addressed store, hash-verified

1736 }
1737
1738 public static void setOption(Link link, String name, String value) {
1739 LinkOption option = ORMManager.get(LinkOption.class).getFirstAnd(
1740 "link_id", "=", link, "name", "=", name);
1741 if (option == null) {
1742 option = new LinkOption(link, name, value);
1743 } else {
1744 option.setValue(value);
1745 }
1746 ORMManager.get(LinkOption.class).saveOrUpdate(option);
1747 }
1748
1749}

Callers 2

ignorepktpwdMethod · 0.95
afxpassMethod · 0.95

Calls 4

getMethod · 0.95
setValueMethod · 0.95
getFirstAndMethod · 0.80
saveOrUpdateMethod · 0.80

Tested by

no test coverage detected