/** * <p>Copyright: Copyright (c) 2013</p> * <p>Company: �������ӹɷ����޹�˾</p> */ package com.hundsun.ares.studio.procedure.compiler.oracle.skeleton.util; /** * @author liaogc * */ public class CodeUtil { public static StringBuffer formatInsert(String str){ int haveAt = 0; if(str.indexOf("@") != -1) haveAt = 1; StringBuffer buffer = new StringBuffer(str); for(int i = 0 ;20-buffer.length()-haveAt>0;i++){ buffer.append(" "); } return buffer; } /** * format�����е�insert��� * @param str * @param strLen * @return */ public static StringBuffer formatInsert(String str,int strLen){ int haveAt = 0; if(str.indexOf("@") != -1) haveAt = 1; StringBuffer buffer = new StringBuffer(str); for(int i = 0 ;strLen-buffer.length()-haveAt>0;i++){ buffer.append(" "); } return buffer; } }