Package org.jboss.ejb.plugins.cmp.jdbc.metadata

Examples of org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCFunctionMappingMetaData


/*      */   }
/*      */
/*      */   public Object visit(ASTLength node, Object data)
/*      */   {
/* 1092 */     StringBuffer buf = (StringBuffer)data;
/* 1093 */     JDBCFunctionMappingMetaData function = this.typeMapping.getFunctionMapping("length");
/* 1094 */     Object[] args = childrenToStringArr(1, node);
/* 1095 */     function.getFunctionSql(args, buf);
/* 1096 */     return data;
/*      */   }
View Full Code Here


/*      */   }
/*      */
/*      */   public Object visit(ASTLocate node, Object data)
/*      */   {
/* 1101 */     StringBuffer buf = (StringBuffer)data;
/* 1102 */     JDBCFunctionMappingMetaData function = this.typeMapping.getFunctionMapping("locate");
/* 1103 */     Object[] args = new Object[3];
/* 1104 */     args[0] = node.jjtGetChild(0).jjtAccept(this, new StringBuffer()).toString();
/* 1105 */     args[1] = node.jjtGetChild(1).jjtAccept(this, new StringBuffer()).toString();
/* 1106 */     if (node.jjtGetNumChildren() == 3)
/*      */     {
/* 1108 */       args[2] = node.jjtGetChild(2).jjtAccept(this, new StringBuffer()).toString();
/*      */     }
/*      */     else
/*      */     {
/* 1112 */       args[2] = "1";
/*      */     }
/* 1114 */     function.getFunctionSql(args, buf);
/* 1115 */     return data;
/*      */   }
View Full Code Here

/*      */   }
/*      */
/*      */   public Object visit(ASTAbs node, Object data)
/*      */   {
/* 1120 */     StringBuffer buf = (StringBuffer)data;
/* 1121 */     JDBCFunctionMappingMetaData function = this.typeMapping.getFunctionMapping("abs");
/* 1122 */     Object[] args = childrenToStringArr(1, node);
/* 1123 */     function.getFunctionSql(args, buf);
/* 1124 */     return data;
/*      */   }
View Full Code Here

/*      */   }
/*      */
/*      */   public Object visit(ASTSqrt node, Object data)
/*      */   {
/* 1129 */     StringBuffer buf = (StringBuffer)data;
/* 1130 */     JDBCFunctionMappingMetaData function = this.typeMapping.getFunctionMapping("sqrt");
/* 1131 */     Object[] args = childrenToStringArr(1, node);
/* 1132 */     function.getFunctionSql(args, buf);
/* 1133 */     return data;
/*      */   }
View Full Code Here

/*      */   }
/*      */
/*      */   public Object visit(ASTMod node, Object data)
/*      */   {
/* 1138 */     StringBuffer buf = (StringBuffer)data;
/* 1139 */     JDBCFunctionMappingMetaData function = this.typeMapping.getFunctionMapping("mod");
/* 1140 */     Object[] args = childrenToStringArr(2, node);
/* 1141 */     function.getFunctionSql(args, buf);
/* 1142 */     return data;
/*      */   }
View Full Code Here

/*      */     }
/*      */
/*  666 */     StringBuffer buf = (StringBuffer)data;
/*  667 */     if (this.selectManager.getMetaData().hasRowLocking())
/*      */     {
/*  669 */       JDBCFunctionMappingMetaData rowLockingTemplate = this.typeMapping.getRowLockingTemplate();
/*  670 */       Object[] args = { select, from, where.length() == 0 ? null : where, orderBy.length() == 0 ? null : orderBy };
/*      */
/*  676 */       rowLockingTemplate.getFunctionSql(args, buf);
/*      */     }
/*      */     else
/*      */     {
/*  680 */       buf.append("SELECT ").append(select).append(" FROM ").append(from);
/*      */
View Full Code Here

/*      */   }
/*      */
/*      */   public Object visit(ASTConcat node, Object data)
/*      */   {
/* 1411 */     StringBuffer buf = (StringBuffer)data;
/* 1412 */     JDBCFunctionMappingMetaData function = this.typeMapping.getFunctionMapping("concat");
/* 1413 */     Object[] args = { new NodeStringWrapper(node.jjtGetChild(0)), new NodeStringWrapper(node.jjtGetChild(1)) };
/*      */
/* 1417 */     function.getFunctionSql(args, buf);
/* 1418 */     return buf;
/*      */   }
View Full Code Here

/*      */   }
/*      */
/*      */   public Object visit(ASTSubstring node, Object data)
/*      */   {
/* 1426 */     StringBuffer buf = (StringBuffer)data;
/* 1427 */     JDBCFunctionMappingMetaData function = this.typeMapping.getFunctionMapping("substring");
/* 1428 */     Object[] args = { new NodeStringWrapper(node.jjtGetChild(0)), new NodeStringWrapper(node.jjtGetChild(1)), new NodeStringWrapper(node.jjtGetChild(2)) };
/*      */
/* 1433 */     function.getFunctionSql(args, buf);
/* 1434 */     return buf;
/*      */   }
View Full Code Here

/*      */   }
/*      */
/*      */   public Object visit(ASTLCase node, Object data)
/*      */   {
/* 1442 */     StringBuffer buf = (StringBuffer)data;
/* 1443 */     JDBCFunctionMappingMetaData function = this.typeMapping.getFunctionMapping("lcase");
/* 1444 */     Object[] args = { new NodeStringWrapper(node.jjtGetChild(0)) };
/*      */
/* 1447 */     function.getFunctionSql(args, buf);
/* 1448 */     return buf;
/*      */   }
View Full Code Here

/*      */   }
/*      */
/*      */   public Object visit(ASTUCase node, Object data)
/*      */   {
/* 1456 */     StringBuffer buf = (StringBuffer)data;
/* 1457 */     JDBCFunctionMappingMetaData function = this.typeMapping.getFunctionMapping("ucase");
/* 1458 */     Object[] args = { new NodeStringWrapper(node.jjtGetChild(0)) };
/*      */
/* 1461 */     function.getFunctionSql(args, buf);
/* 1462 */     return buf;
/*      */   }
View Full Code Here

TOP

Related Classes of org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCFunctionMappingMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.