English 中文(简体)
2. 默思·莱卡在要求仓储程序时
原标题:Memory Leak when calling Stored Procedure

我在我的节目中将记忆漏掉了部分地方,我认为,这是我守则中的位置。 因此,这一职能是否是错误的,储存程序如何被称作?

CustomSQLConn is given to the class when it is created.

private void flagDeleted(ABCDocument mydoc){
    try {           

        ResultSet rs1 = null;
        try{
            CallableStatement cs1;
            cs1 = CustomSQLConn.prepareCall("{ call flagFolderDeleted(?) }");
            cs1.setInt(1, mydoc.getId());
            cs1.execute();
        }catch (Exception e){
            System.out.println("Got an exception: " + e.getMessage()); 
            e.printStackTrace();
        }finally{
            if(rs1 != null) rs1.close();
            rs1 = null;
        }
    }catch (Exception e) {
        System.out.println("Got an exception: " + e.getMessage()); 
        e.printStackTrace();
    }
} // END flagDeleted    

由于这一类人利用这一联系进行其他工作,因此也没有在此关闭。

最佳回答

页: 1

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签