1 2 12 package com.versant.core.jdbc.sql.exp; 13 14 import com.versant.core.jdbc.metadata.JdbcField; 15 import com.versant.core.jdbc.metadata.JdbcColumn; 16 import com.versant.core.jdo.query.ParamNode; 17 18 import java.util.Map ; 19 20 33 public class ParamNodeUsage { 34 35 38 public void addToParamNode(ParamNode n) { 39 if (n.usageList == null) { 40 n.usageList = this; 41 } else { 42 ParamNodeUsage p = (ParamNodeUsage)n.usageList; 43 for (; p.next != null; p = p.next); 44 p.next = this; 45 } 46 } 47 48 54 public JdbcField jdbcField; 55 56 public JdbcColumn col; 57 62 public int javaTypeCode; 63 69 public int jdbcType; 70 75 public int classIndex; 76 80 public SqlExp expList; 81 88 public int expCount; 89 95 public int mod; 96 99 public ParamNodeUsage next; 100 101 public ParamNodeUsage getClone(Map cloneMap) { 102 ParamNodeUsage sqlUsage = new ParamNodeUsage(); 103 sqlUsage.jdbcField = jdbcField; 104 sqlUsage.javaTypeCode = javaTypeCode; 105 sqlUsage.jdbcType = jdbcType; 106 sqlUsage.classIndex = classIndex; 107 sqlUsage.expCount = expCount; 108 sqlUsage.mod = mod; 109 sqlUsage.expList = SqlExp.createClone(expList, cloneMap); 110 if (next != null) { 111 sqlUsage.next = next.getClone(cloneMap); 112 } 113 return sqlUsage; 114 } 115 } 116 117 | Popular Tags |