org.ow2.jonas.resource.internal
Interface SQLManager

All Known Implementing Classes:
ConnectionManagerImpl

public interface SQLManager

SQL Manager to be used with PreparedStatement

Author:
ehardesty

Method Summary
 int getMaxPstmtPoolSize()
           
 PreparedStatement getPStatement(ManagedConnectionInfo mcinfo, Object conn, String user, String sql)
          Get the specified PreparedStatement
 PreparedStatement getPStatement(ManagedConnectionInfo mcinfo, Object conn, String user, String sql, int autoGeneratedKeys)
          Get the specified PreparedStatement
 PreparedStatement getPStatement(ManagedConnectionInfo mcinfo, Object conn, String user, String sql, int[] columnIndexes)
          Get the specified PreparedStatement
 PreparedStatement getPStatement(ManagedConnectionInfo mcinfo, Object conn, String user, String sql, int resultSetType, int resultSetConcurrency)
          Get the specified PreparedStatement
 PreparedStatement getPStatement(ManagedConnectionInfo mcinfo, Object conn, String user, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
          Get the specified PreparedStatement
 PreparedStatement getPStatement(ManagedConnectionInfo mcinfo, Object conn, String user, String sql, String[] columnNames)
          Get the specified PreparedStatement
 

Method Detail

getPStatement

PreparedStatement getPStatement(ManagedConnectionInfo mcinfo,
                                Object conn,
                                String user,
                                String sql)
                                throws SQLException
Get the specified PreparedStatement

Parameters:
mcinfo - ManagedConnectionInfo
conn - Object connection
user - String
sql - String
Returns:
PreparedStatment
Throws:
SQLException - if an Exception occurs

getPStatement

PreparedStatement getPStatement(ManagedConnectionInfo mcinfo,
                                Object conn,
                                String user,
                                String sql,
                                int resultSetType,
                                int resultSetConcurrency)
                                throws SQLException
Get the specified PreparedStatement

Parameters:
mcinfo - ManagedConnectionInfo
conn - Object connection
user - String
sql - String
resultSetType - int
resultSetConcurrency - int
Returns:
PreparedStatment
Throws:
SQLException - if an Exception occurs

getPStatement

PreparedStatement getPStatement(ManagedConnectionInfo mcinfo,
                                Object conn,
                                String user,
                                String sql,
                                int autoGeneratedKeys)
                                throws SQLException
Get the specified PreparedStatement

Parameters:
mcinfo - ManagedConnectionInfo
conn - Object connection
user - String
sql - String
autoGeneratedKeys - key
Returns:
PreparedStatment
Throws:
SQLException - if an Exception occurs

getPStatement

PreparedStatement getPStatement(ManagedConnectionInfo mcinfo,
                                Object conn,
                                String user,
                                String sql,
                                int[] columnIndexes)
                                throws SQLException
Get the specified PreparedStatement

Parameters:
mcinfo - ManagedConnectionInfo
conn - Object connection
user - String
sql - String
columnIndexes - int []
Returns:
PreparedStatment
Throws:
SQLException - if an Exception occurs

getPStatement

PreparedStatement getPStatement(ManagedConnectionInfo mcinfo,
                                Object conn,
                                String user,
                                String sql,
                                int resultSetType,
                                int resultSetConcurrency,
                                int resultSetHoldability)
                                throws SQLException
Get the specified PreparedStatement

Parameters:
mcinfo - ManagedConnectionInfo
conn - Object connection
user - String
sql - String
resultSetType - int
resultSetConcurrency - int
resultSetHoldability - int
Returns:
PreparedStatment
Throws:
SQLException - if an Exception occurs

getPStatement

PreparedStatement getPStatement(ManagedConnectionInfo mcinfo,
                                Object conn,
                                String user,
                                String sql,
                                String[] columnNames)
                                throws SQLException
Get the specified PreparedStatement

Parameters:
mcinfo - ManagedConnectionInfo
conn - Object connection
user - String
sql - String
columnNames - String []
Returns:
PreparedStatment
Throws:
SQLException - if an Exception occurs

getMaxPstmtPoolSize

int getMaxPstmtPoolSize()
Returns:
Returns the maxPstmtPoolSize


Copyright © 2010 OW2 Consortium. All Rights Reserved.