rm -rf `find . -type d -name .svn`
This command will find and delete any directory with the name ".svn".
rm -rf `find . -type d -name .svn`
create or replace
package test_package as
procedure test_procedure(v varchar2);
function test_function(v varchar2) return varchar2;
end test_package;
create or replace
package body package test_package as
procedure test_procedure(v varchar2) is
begin
null;
end;
function test_function(v varchar2) return varchar2 is
begin
return v;
end;
end test_package;
DataSource ds = ...
Connection con = ds.getConnection();
CallableStatement cs =
con.prepareCall("{call test_package.test_procedure(?)}");
cs.setString(1, "Calling test_procedure!");
cs.executeUpdate();
cs.close();
DataSource ds = ...
Connection con = ds.getConnection();
CallableStatement cs =
con.prepareCall("{? = call test_package.test_function(?)}");
cs.registerOutParameter(1, java.sql.Types.VARCHAR);
cs.setString(2, "Calling test_function!");
cs.execute();
String s = cs.getString(1);
cs.close();
DataSource ds = ...
Connection con = ds.getConnection();
PreparedStatement ps =
con.prepareStatement(
"SELECT test_package.test_function(?) S FROM dual"
);
ps.setString(1, "Calling test_function!");
ResultSet r = ps.executeQuery();
String result = null;
if (r.next()) {
result = r.getString("S");
}
con.close();