1 9 package com.ziclix.python.sql.procedure; 10 11 import com.ziclix.python.sql.Procedure; 12 import com.ziclix.python.sql.PyCursor; 13 import org.python.core.Py; 14 import org.python.core.PyObject; 15 16 import java.sql.SQLException ; 17 18 25 public class SQLServerProcedure extends Procedure { 26 27 public SQLServerProcedure(PyCursor cursor, PyObject name) throws SQLException { 28 super(cursor, name); 29 } 30 31 protected PyObject getDefault() { 32 return Py.None; 33 } 34 35 protected String getProcedureName() { 36 37 StringBuffer proc = new StringBuffer (); 38 39 if (this.procedureSchema.__nonzero__()) { 40 proc.append(this.procedureSchema.toString()).append("."); 41 } 42 43 return proc.append(this.procedureName.toString()).toString(); 44 } 45 } 46 | Popular Tags |