Develop and Download Open Source Software

Browse Subversion Repository

Diff of /jdbcdebugger/trunk/src/jp/co/powerbeans/jdbcdebug/sql/PreparedStatement.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 33 by amsoft, Wed Aug 24 13:46:54 2005 UTC revision 34 by amsoft, Fri Feb 4 08:45:40 2011 UTC
# Line 9  import java.sql.Blob; Line 9  import java.sql.Blob;
9  import java.sql.Clob;  import java.sql.Clob;
10  import java.sql.Connection;  import java.sql.Connection;
11  import java.sql.Date;  import java.sql.Date;
12    import java.sql.NClob;
13  import java.sql.ParameterMetaData;  import java.sql.ParameterMetaData;
14  import java.sql.Ref;  import java.sql.Ref;
15  import java.sql.ResultSet;  import java.sql.ResultSet;
16  import java.sql.ResultSetMetaData;  import java.sql.ResultSetMetaData;
17    import java.sql.RowId;
18  import java.sql.SQLException;  import java.sql.SQLException;
19  import java.sql.SQLWarning;  import java.sql.SQLWarning;
20    import java.sql.SQLXML;
21  import java.sql.Time;  import java.sql.Time;
22  import java.sql.Timestamp;  import java.sql.Timestamp;
23  import java.util.ArrayList;  import java.util.ArrayList;
# Line 42  public class PreparedStatement implement Line 45  public class PreparedStatement implement
45          private String sql;          private String sql;
46        
47    /** バッチSQL */    /** バッチSQL */
48    private ArrayList batchSqlList = new ArrayList();    private ArrayList<String> batchSqlList = new ArrayList<String>();
49    
50    /** パラメータマップ  key:parameterIndex(1.2..), value:object of value */    /** パラメータマップ  key:parameterIndex(1.2..), value:object of value */
51    private HashMap paramMap = new HashMap();    private HashMap paramMap = new HashMap();
# Line 828  public class PreparedStatement implement Line 831  public class PreparedStatement implement
831            
832    }    }
833    
834    /**
835     * @return
836     * @throws SQLException
837     * @see java.sql.Statement#isClosed()
838     */
839    public boolean isClosed() throws SQLException {
840            return st.isClosed();
841    }
842    
843    /**
844     * @return
845     * @throws SQLException
846     * @see java.sql.Statement#isPoolable()
847     */
848    public boolean isPoolable() throws SQLException {
849            return st.isPoolable();
850    }
851    
852    /**
853     * @param iface
854     * @return
855     * @throws SQLException
856     * @see java.sql.Wrapper#isWrapperFor(java.lang.Class)
857     */
858    public boolean isWrapperFor(Class<?> iface) throws SQLException {
859            return st.isWrapperFor(iface);
860    }
861    
862    /**
863     * @param parameterIndex
864     * @param x
865     * @param length
866     * @throws SQLException
867     * @see java.sql.PreparedStatement#setAsciiStream(int, java.io.InputStream, long)
868     */
869    public void setAsciiStream(int parameterIndex, InputStream x, long length)
870                    throws SQLException {
871            st.setAsciiStream(parameterIndex, x, length);
872    }
873    
874    /**
875     * @param parameterIndex
876     * @param x
877     * @throws SQLException
878     * @see java.sql.PreparedStatement#setAsciiStream(int, java.io.InputStream)
879     */
880    public void setAsciiStream(int parameterIndex, InputStream x)
881                    throws SQLException {
882            st.setAsciiStream(parameterIndex, x);
883    }
884    
885    /**
886     * @param parameterIndex
887     * @param x
888     * @param length
889     * @throws SQLException
890     * @see java.sql.PreparedStatement#setBinaryStream(int, java.io.InputStream, long)
891     */
892    public void setBinaryStream(int parameterIndex, InputStream x, long length)
893                    throws SQLException {
894            st.setBinaryStream(parameterIndex, x, length);
895    }
896    
897    /**
898     * @param parameterIndex
899     * @param x
900     * @throws SQLException
901     * @see java.sql.PreparedStatement#setBinaryStream(int, java.io.InputStream)
902     */
903    public void setBinaryStream(int parameterIndex, InputStream x)
904                    throws SQLException {
905            st.setBinaryStream(parameterIndex, x);
906    }
907    
908    /**
909     * @param parameterIndex
910     * @param inputStream
911     * @param length
912     * @throws SQLException
913     * @see java.sql.PreparedStatement#setBlob(int, java.io.InputStream, long)
914     */
915    public void setBlob(int parameterIndex, InputStream inputStream, long length)
916                    throws SQLException {
917            st.setBlob(parameterIndex, inputStream, length);
918    }
919    
920    /**
921     * @param parameterIndex
922     * @param inputStream
923     * @throws SQLException
924     * @see java.sql.PreparedStatement#setBlob(int, java.io.InputStream)
925     */
926    public void setBlob(int parameterIndex, InputStream inputStream)
927                    throws SQLException {
928            st.setBlob(parameterIndex, inputStream);
929    }
930    
931    /**
932     * @param parameterIndex
933     * @param reader
934     * @param length
935     * @throws SQLException
936     * @see java.sql.PreparedStatement#setCharacterStream(int, java.io.Reader, long)
937     */
938    public void setCharacterStream(int parameterIndex, Reader reader, long length)
939                    throws SQLException {
940            st.setCharacterStream(parameterIndex, reader, length);
941    }
942    
943    /**
944     * @param parameterIndex
945     * @param reader
946     * @throws SQLException
947     * @see java.sql.PreparedStatement#setCharacterStream(int, java.io.Reader)
948     */
949    public void setCharacterStream(int parameterIndex, Reader reader)
950                    throws SQLException {
951            st.setCharacterStream(parameterIndex, reader);
952    }
953    
954    /**
955     * @param parameterIndex
956     * @param reader
957     * @param length
958     * @throws SQLException
959     * @see java.sql.PreparedStatement#setClob(int, java.io.Reader, long)
960     */
961    public void setClob(int parameterIndex, Reader reader, long length)
962                    throws SQLException {
963            st.setClob(parameterIndex, reader, length);
964    }
965    
966    /**
967     * @param parameterIndex
968     * @param reader
969     * @throws SQLException
970     * @see java.sql.PreparedStatement#setClob(int, java.io.Reader)
971     */
972    public void setClob(int parameterIndex, Reader reader) throws SQLException {
973            st.setClob(parameterIndex, reader);
974    }
975    
976    /**
977     * @param parameterIndex
978     * @param value
979     * @param length
980     * @throws SQLException
981     * @see java.sql.PreparedStatement#setNCharacterStream(int, java.io.Reader, long)
982     */
983    public void setNCharacterStream(int parameterIndex, Reader value, long length)
984                    throws SQLException {
985            st.setNCharacterStream(parameterIndex, value, length);
986    }
987    
988    /**
989     * @param parameterIndex
990     * @param value
991     * @throws SQLException
992     * @see java.sql.PreparedStatement#setNCharacterStream(int, java.io.Reader)
993     */
994    public void setNCharacterStream(int parameterIndex, Reader value)
995                    throws SQLException {
996            st.setNCharacterStream(parameterIndex, value);
997    }
998    
999    /**
1000     * @param parameterIndex
1001     * @param value
1002     * @throws SQLException
1003     * @see java.sql.PreparedStatement#setNClob(int, java.sql.NClob)
1004     */
1005    public void setNClob(int parameterIndex, NClob value) throws SQLException {
1006            st.setNClob(parameterIndex, value);
1007    }
1008    
1009    /**
1010     * @param parameterIndex
1011     * @param reader
1012     * @param length
1013     * @throws SQLException
1014     * @see java.sql.PreparedStatement#setNClob(int, java.io.Reader, long)
1015     */
1016    public void setNClob(int parameterIndex, Reader reader, long length)
1017                    throws SQLException {
1018            st.setNClob(parameterIndex, reader, length);
1019    }
1020    
1021    /**
1022     * @param parameterIndex
1023     * @param reader
1024     * @throws SQLException
1025     * @see java.sql.PreparedStatement#setNClob(int, java.io.Reader)
1026     */
1027    public void setNClob(int parameterIndex, Reader reader) throws SQLException {
1028            st.setNClob(parameterIndex, reader);
1029    }
1030    
1031    /**
1032     * @param parameterIndex
1033     * @param value
1034     * @throws SQLException
1035     * @see java.sql.PreparedStatement#setNString(int, java.lang.String)
1036     */
1037    public void setNString(int parameterIndex, String value) throws SQLException {
1038            st.setNString(parameterIndex, value);
1039    }
1040    
1041    /**
1042     * @param poolable
1043     * @throws SQLException
1044     * @see java.sql.Statement#setPoolable(boolean)
1045     */
1046    public void setPoolable(boolean poolable) throws SQLException {
1047            st.setPoolable(poolable);
1048    }
1049    
1050    /**
1051     * @param parameterIndex
1052     * @param x
1053     * @throws SQLException
1054     * @see java.sql.PreparedStatement#setRowId(int, java.sql.RowId)
1055     */
1056    public void setRowId(int parameterIndex, RowId x) throws SQLException {
1057            st.setRowId(parameterIndex, x);
1058    }
1059    
1060    /**
1061     * @param parameterIndex
1062     * @param xmlObject
1063     * @throws SQLException
1064     * @see java.sql.PreparedStatement#setSQLXML(int, java.sql.SQLXML)
1065     */
1066    public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException {
1067            st.setSQLXML(parameterIndex, xmlObject);
1068    }
1069    
1070    /**
1071     * @param <T>
1072     * @param iface
1073     * @return
1074     * @throws SQLException
1075     * @see java.sql.Wrapper#unwrap(java.lang.Class)
1076     */
1077    public <T> T unwrap(Class<T> iface) throws SQLException {
1078            return st.unwrap(iface);
1079    }
1080    
1081  }  }

Legend:
Removed from v.33  
changed lines
  Added in v.34

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26