-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 13440 drawed templates (#13441)
- Loading branch information
Showing
6 changed files
with
52 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
dotCMS/src/main/java/com/dotmarketing/beans/transform/OracleTreeTransformer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.dotmarketing.beans.transform; | ||
|
||
import com.dotmarketing.beans.Tree; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public class OracleTreeTransformer extends TreeTransformer { | ||
|
||
public OracleTreeTransformer(List<Map<String, Object>> list) { | ||
super(list); | ||
} | ||
|
||
@Override | ||
Tree toTree(Map<String, Object> map) { | ||
Tree tree=new Tree(); | ||
tree.setParent((String)map.getOrDefault("parent", null)); | ||
tree.setChild((String)map.getOrDefault("child", null)); | ||
tree.setRelationType((String)map.getOrDefault("relation_type", null)); | ||
tree.setTreeOrder(((BigDecimal)map.getOrDefault("tree_order", 0)).intValue()); | ||
|
||
return tree; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters