Google


StatementBridge

SQLʸ¤ò¡Ö»ý¤Ä¡×Statement¥ª¥Ö¥¸¥§¥¯¥È¤È ¼ÂºÝ¤ÎDBMSÀ½ÉʤÎStatement¤ËÁêÅö¤¹¤ëµ¡Ç½¤ÎÉôʬ¤È¤ò ¤Ä¤Ê¤²¤ë¥¯¥é¥¹¡£Driverºî¼Ô¤¬¥«¥¹¥¿¥Þ¥¤¥º¤·¤ÆÄ󶡤¹¤ë¥¯¥é¥¹¡£

¥¯¥é¥¹¥á¥½¥Ã¥É:

¥á¥½¥Ã¥É:

initialize(st)

Statement¤ÎƱ̾¥á¥½¥Ã¥É»²¾È¡£ st¤ÏBridge¤µ¤ì¤ëStatement¥ª¥Ö¥¸¥§¥¯¥È¡£ ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¡ÖStatement¤¬prepareable¤Ê¤é¤Ð¡¢sqlʸ¤ò ¼«Ê¬¤Î¤È¤³¤í¤Ë¥³¥Ô¤Ã¤Æµ­²±¤·¤Æ¤ª¤¯¡×¤È¤¤¤¦½èÍý¤ò¤·¤Æ¤ë¡£

execute(sql)

Statement¤ÎƱ̾¥á¥½¥Ã¥É»²¾È¡£ ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢(Driver¼ï¤´¤È¤Ë·è¤Þ¤ë)ŬÀÚ¤ÊResultSet¥¯¥é¥¹¤Î ¥¤¥ó¥¹¥¿¥ó¥¹¤ònew¤¹¤ë¡¢¤È¤¤¤¦½èÍý¤ò¤·¤Æ¤¤¤ë¡£

close

Statement¤ÎƱ̾¥á¥½¥Ã¥É»²¾È¡£ ¤³¤ÎStatementBridge¤ò¡¢ÊĤ¸¤ë¡£

setParam(index, data)

Statement¤ÎƱ̾¥á¥½¥Ã¥É»²¾È¡£ ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¤Ê¤Ë¤â¤·¤Ê¤¤¡£

getParam(index)

Statement¤ÎƱ̾¥á¥½¥Ã¥É»²¾È¡£ ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ïnil¤òÊÖ¤¹¤À¤±¡£