Advertisement
Khadija_Assem

Untitled

Dec 5th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.67 KB | None | 0 0
  1. package eg.edu.alexu.csd.oop.JDBC.resultSet;
  2.  
  3. import java.io.InputStream;
  4. import java.io.Reader;
  5. import java.math.BigDecimal;
  6. import java.net.URL;
  7. import java.sql.*;
  8. import java.util.Calendar;
  9. import java.util.Map;
  10.  
  11. public abstract class DBResultSet implements ResultSet {
  12. @Override
  13. public abstract boolean next() throws SQLException;
  14.  
  15. @Override
  16. public abstract void close() throws SQLException;
  17.  
  18. @Override
  19. public boolean wasNull() throws SQLException {
  20. return false;
  21. }
  22.  
  23. @Override
  24. public abstract String getString(int columnIndex) throws SQLException;
  25.  
  26. @Override
  27. public boolean getBoolean(int columnIndex) throws SQLException {
  28. return false;
  29. }
  30.  
  31. @Override
  32. public byte getByte(int columnIndex) throws SQLException {
  33. return 0;
  34. }
  35.  
  36. @Override
  37. public short getShort(int columnIndex) throws SQLException {
  38. return 0;
  39. }
  40.  
  41. @Override
  42. public abstract int getInt(int columnIndex) throws SQLException;
  43.  
  44. @Override
  45. public long getLong(int columnIndex) throws SQLException {
  46. return 0;
  47. }
  48.  
  49. @Override
  50. public float getFloat(int columnIndex) throws SQLException {
  51. return 0;
  52. }
  53.  
  54. @Override
  55. public double getDouble(int columnIndex) throws SQLException {
  56. return 0;
  57. }
  58.  
  59. @Override
  60. public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException {
  61. return null;
  62. }
  63.  
  64. @Override
  65. public byte[] getBytes(int columnIndex) throws SQLException {
  66. return new byte[0];
  67. }
  68.  
  69. @Override
  70. public Date getDate(int columnIndex) throws SQLException {
  71. return null;
  72. }
  73.  
  74. @Override
  75. public Time getTime(int columnIndex) throws SQLException {
  76. return null;
  77. }
  78.  
  79. @Override
  80. public Timestamp getTimestamp(int columnIndex) throws SQLException {
  81. return null;
  82. }
  83.  
  84. @Override
  85. public InputStream getAsciiStream(int columnIndex) throws SQLException {
  86. return null;
  87. }
  88.  
  89. @Override
  90. public InputStream getUnicodeStream(int columnIndex) throws SQLException {
  91. return null;
  92. }
  93.  
  94. @Override
  95. public InputStream getBinaryStream(int columnIndex) throws SQLException {
  96. return null;
  97. }
  98.  
  99. @Override
  100. public abstract String getString(String columnLabel) throws SQLException;
  101.  
  102. @Override
  103. public boolean getBoolean(String columnLabel) throws SQLException {
  104. return false;
  105. }
  106.  
  107. @Override
  108. public byte getByte(String columnLabel) throws SQLException {
  109. return 0;
  110. }
  111.  
  112. @Override
  113. public short getShort(String columnLabel) throws SQLException {
  114. return 0;
  115. }
  116.  
  117. @Override
  118. public abstract int getInt(String columnLabel) throws SQLException;
  119.  
  120. @Override
  121. public long getLong(String columnLabel) throws SQLException {
  122. return 0;
  123. }
  124.  
  125. @Override
  126. public float getFloat(String columnLabel) throws SQLException {
  127. return 0;
  128. }
  129.  
  130. @Override
  131. public double getDouble(String columnLabel) throws SQLException {
  132. return 0;
  133. }
  134.  
  135. @Override
  136. public BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException {
  137. return null;
  138. }
  139.  
  140. @Override
  141. public byte[] getBytes(String columnLabel) throws SQLException {
  142. return new byte[0];
  143. }
  144.  
  145. @Override
  146. public Date getDate(String columnLabel) throws SQLException {
  147. return null;
  148. }
  149.  
  150. @Override
  151. public Time getTime(String columnLabel) throws SQLException {
  152. return null;
  153. }
  154.  
  155. @Override
  156. public Timestamp getTimestamp(String columnLabel) throws SQLException {
  157. return null;
  158. }
  159.  
  160. @Override
  161. public InputStream getAsciiStream(String columnLabel) throws SQLException {
  162. return null;
  163. }
  164.  
  165. @Override
  166. public InputStream getUnicodeStream(String columnLabel) throws SQLException {
  167. return null;
  168. }
  169.  
  170. @Override
  171. public InputStream getBinaryStream(String columnLabel) throws SQLException {
  172. return null;
  173. }
  174.  
  175. @Override
  176. public SQLWarning getWarnings() throws SQLException {
  177. return null;
  178. }
  179.  
  180. @Override
  181. public void clearWarnings() throws SQLException {
  182.  
  183. }
  184.  
  185. @Override
  186. public String getCursorName() throws SQLException {
  187. return null;
  188. }
  189.  
  190. @Override
  191. public abstract ResultSetMetaData getMetaData() throws SQLException;
  192. @Override
  193. public abstract Object getObject(int columnIndex) throws SQLException;
  194.  
  195. @Override
  196. public Object getObject(String columnLabel) throws SQLException {
  197. return null;
  198. }
  199.  
  200. @Override
  201. public abstract int findColumn(String columnLabel) throws SQLException;
  202.  
  203. @Override
  204. public Reader getCharacterStream(int columnIndex) throws SQLException {
  205. return null;
  206. }
  207.  
  208. @Override
  209. public Reader getCharacterStream(String columnLabel) throws SQLException {
  210. return null;
  211. }
  212.  
  213. @Override
  214. public BigDecimal getBigDecimal(int columnIndex) throws SQLException {
  215. return null;
  216. }
  217.  
  218. @Override
  219. public BigDecimal getBigDecimal(String columnLabel) throws SQLException {
  220. return null;
  221. }
  222.  
  223. @Override
  224. public abstract boolean isBeforeFirst() throws SQLException;
  225.  
  226. @Override
  227. public abstract boolean isAfterLast() throws SQLException;
  228.  
  229. @Override
  230. public abstract boolean isFirst() throws SQLException;
  231.  
  232. @Override
  233. public abstract boolean isLast() throws SQLException;
  234.  
  235. @Override
  236. public abstract void beforeFirst() throws SQLException;
  237.  
  238. @Override
  239. public abstract void afterLast() throws SQLException;
  240.  
  241. @Override
  242. public abstract boolean first() throws SQLException;
  243.  
  244. @Override
  245. public abstract boolean last() throws SQLException;
  246.  
  247. @Override
  248. public int getRow() throws SQLException {
  249. return 0;
  250. }
  251.  
  252. public abstract boolean absolute(int row) throws SQLException;
  253.  
  254. @Override
  255. public boolean relative(int rows) throws SQLException {
  256. return false;
  257. }
  258.  
  259. @Override
  260. public abstract boolean previous() throws SQLException;
  261.  
  262. @Override
  263. public void setFetchDirection(int direction) throws SQLException {
  264.  
  265. }
  266.  
  267. @Override
  268. public int getFetchDirection() throws SQLException {
  269. return 0;
  270. }
  271.  
  272. @Override
  273. public void setFetchSize(int rows) throws SQLException {
  274.  
  275. }
  276.  
  277. @Override
  278. public int getFetchSize() throws SQLException {
  279. return 0;
  280. }
  281.  
  282. @Override
  283. public int getType() throws SQLException {
  284. return 0;
  285. }
  286.  
  287. @Override
  288. public int getConcurrency() throws SQLException {
  289. return 0;
  290. }
  291.  
  292. @Override
  293. public boolean rowUpdated() throws SQLException {
  294. return false;
  295. }
  296.  
  297. @Override
  298. public boolean rowInserted() throws SQLException {
  299. return false;
  300. }
  301.  
  302. @Override
  303. public boolean rowDeleted() throws SQLException {
  304. return false;
  305. }
  306.  
  307. @Override
  308. public void updateNull(int columnIndex) throws SQLException {
  309.  
  310. }
  311.  
  312. @Override
  313. public void updateBoolean(int columnIndex, boolean x) throws SQLException {
  314.  
  315. }
  316.  
  317. @Override
  318. public void updateByte(int columnIndex, byte x) throws SQLException {
  319.  
  320. }
  321.  
  322. @Override
  323. public void updateShort(int columnIndex, short x) throws SQLException {
  324.  
  325. }
  326.  
  327. @Override
  328. public void updateInt(int columnIndex, int x) throws SQLException {
  329.  
  330. }
  331.  
  332. @Override
  333. public void updateLong(int columnIndex, long x) throws SQLException {
  334.  
  335. }
  336.  
  337. @Override
  338. public void updateFloat(int columnIndex, float x) throws SQLException {
  339.  
  340. }
  341.  
  342. @Override
  343. public void updateDouble(int columnIndex, double x) throws SQLException {
  344.  
  345. }
  346.  
  347. @Override
  348. public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException {
  349.  
  350. }
  351.  
  352. @Override
  353. public void updateString(int columnIndex, String x) throws SQLException {
  354.  
  355. }
  356.  
  357. @Override
  358. public void updateBytes(int columnIndex, byte[] x) throws SQLException {
  359.  
  360. }
  361.  
  362. @Override
  363. public void updateDate(int columnIndex, Date x) throws SQLException {
  364.  
  365. }
  366.  
  367. @Override
  368. public void updateTime(int columnIndex, Time x) throws SQLException {
  369.  
  370. }
  371.  
  372. @Override
  373. public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException {
  374.  
  375. }
  376.  
  377. @Override
  378. public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException {
  379.  
  380. }
  381.  
  382. @Override
  383. public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException {
  384.  
  385. }
  386.  
  387. @Override
  388. public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException {
  389.  
  390. }
  391.  
  392. @Override
  393. public void updateObject(int columnIndex, Object x, int scaleOrLength) throws SQLException {
  394.  
  395. }
  396.  
  397. @Override
  398. public void updateObject(int columnIndex, Object x) throws SQLException {
  399.  
  400. }
  401.  
  402. @Override
  403. public void updateNull(String columnLabel) throws SQLException {
  404.  
  405. }
  406.  
  407. @Override
  408. public void updateBoolean(String columnLabel, boolean x) throws SQLException {
  409.  
  410. }
  411.  
  412. @Override
  413. public void updateByte(String columnLabel, byte x) throws SQLException {
  414.  
  415. }
  416.  
  417. @Override
  418. public void updateShort(String columnLabel, short x) throws SQLException {
  419.  
  420. }
  421.  
  422. @Override
  423. public void updateInt(String columnLabel, int x) throws SQLException {
  424.  
  425. }
  426.  
  427. @Override
  428. public void updateLong(String columnLabel, long x) throws SQLException {
  429.  
  430. }
  431.  
  432. @Override
  433. public void updateFloat(String columnLabel, float x) throws SQLException {
  434.  
  435. }
  436.  
  437. @Override
  438. public void updateDouble(String columnLabel, double x) throws SQLException {
  439.  
  440. }
  441.  
  442. @Override
  443. public void updateBigDecimal(String columnLabel, BigDecimal x) throws SQLException {
  444.  
  445. }
  446.  
  447. @Override
  448. public void updateString(String columnLabel, String x) throws SQLException {
  449.  
  450. }
  451.  
  452. @Override
  453. public void updateBytes(String columnLabel, byte[] x) throws SQLException {
  454.  
  455. }
  456.  
  457. @Override
  458. public void updateDate(String columnLabel, Date x) throws SQLException {
  459.  
  460. }
  461.  
  462. @Override
  463. public void updateTime(String columnLabel, Time x) throws SQLException {
  464.  
  465. }
  466.  
  467. @Override
  468. public void updateTimestamp(String columnLabel, Timestamp x) throws SQLException {
  469.  
  470. }
  471.  
  472. @Override
  473. public void updateAsciiStream(String columnLabel, InputStream x, int length) throws SQLException {
  474.  
  475. }
  476.  
  477. @Override
  478. public void updateBinaryStream(String columnLabel, InputStream x, int length) throws SQLException {
  479.  
  480. }
  481.  
  482. @Override
  483. public void updateCharacterStream(String columnLabel, Reader reader, int length) throws SQLException {
  484.  
  485. }
  486.  
  487. @Override
  488. public void updateObject(String columnLabel, Object x, int scaleOrLength) throws SQLException {
  489.  
  490. }
  491.  
  492. @Override
  493. public void updateObject(String columnLabel, Object x) throws SQLException {
  494.  
  495. }
  496.  
  497. @Override
  498. public void insertRow() throws SQLException {
  499.  
  500. }
  501.  
  502. @Override
  503. public void updateRow() throws SQLException {
  504.  
  505. }
  506.  
  507. @Override
  508. public void deleteRow() throws SQLException {
  509.  
  510. }
  511.  
  512. @Override
  513. public void refreshRow() throws SQLException {
  514.  
  515. }
  516.  
  517. @Override
  518. public void cancelRowUpdates() throws SQLException {
  519.  
  520. }
  521.  
  522. @Override
  523. public void moveToInsertRow() throws SQLException {
  524.  
  525. }
  526.  
  527. @Override
  528. public void moveToCurrentRow() throws SQLException {
  529.  
  530. }
  531.  
  532. @Override
  533. public abstract Statement getStatement() throws SQLException;
  534.  
  535. @Override
  536. public Object getObject(int columnIndex, Map<String, Class<?>> map) throws SQLException {
  537. return null;
  538. }
  539.  
  540. @Override
  541. public Ref getRef(int columnIndex) throws SQLException {
  542. return null;
  543. }
  544.  
  545. @Override
  546. public Blob getBlob(int columnIndex) throws SQLException {
  547. return null;
  548. }
  549.  
  550. @Override
  551. public Clob getClob(int columnIndex) throws SQLException {
  552. return null;
  553. }
  554.  
  555. @Override
  556. public Array getArray(int columnIndex) throws SQLException {
  557. return null;
  558. }
  559.  
  560. @Override
  561. public Object getObject(String columnLabel, Map<String, Class<?>> map) throws SQLException {
  562. return null;
  563. }
  564.  
  565. @Override
  566. public Ref getRef(String columnLabel) throws SQLException {
  567. return null;
  568. }
  569.  
  570. @Override
  571. public Blob getBlob(String columnLabel) throws SQLException {
  572. return null;
  573. }
  574.  
  575. @Override
  576. public Clob getClob(String columnLabel) throws SQLException {
  577. return null;
  578. }
  579.  
  580. @Override
  581. public Array getArray(String columnLabel) throws SQLException {
  582. return null;
  583. }
  584.  
  585. @Override
  586. public Date getDate(int columnIndex, Calendar cal) throws SQLException {
  587. return null;
  588. }
  589.  
  590. @Override
  591. public Date getDate(String columnLabel, Calendar cal) throws SQLException {
  592. return null;
  593. }
  594.  
  595. @Override
  596. public Time getTime(int columnIndex, Calendar cal) throws SQLException {
  597. return null;
  598. }
  599.  
  600. @Override
  601. public Time getTime(String columnLabel, Calendar cal) throws SQLException {
  602. return null;
  603. }
  604.  
  605. @Override
  606. public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException {
  607. return null;
  608. }
  609.  
  610. @Override
  611. public Timestamp getTimestamp(String columnLabel, Calendar cal) throws SQLException {
  612. return null;
  613. }
  614.  
  615. @Override
  616. public URL getURL(int columnIndex) throws SQLException {
  617. return null;
  618. }
  619.  
  620. @Override
  621. public URL getURL(String columnLabel) throws SQLException {
  622. return null;
  623. }
  624.  
  625. @Override
  626. public void updateRef(int columnIndex, Ref x) throws SQLException {
  627.  
  628. }
  629.  
  630. @Override
  631. public void updateRef(String columnLabel, Ref x) throws SQLException {
  632.  
  633. }
  634.  
  635. @Override
  636. public void updateBlob(int columnIndex, Blob x) throws SQLException {
  637.  
  638. }
  639.  
  640. @Override
  641. public void updateBlob(String columnLabel, Blob x) throws SQLException {
  642.  
  643. }
  644.  
  645. @Override
  646. public void updateClob(int columnIndex, Clob x) throws SQLException {
  647.  
  648. }
  649.  
  650. @Override
  651. public void updateClob(String columnLabel, Clob x) throws SQLException {
  652.  
  653. }
  654.  
  655. @Override
  656. public void updateArray(int columnIndex, Array x) throws SQLException {
  657.  
  658. }
  659.  
  660. @Override
  661. public void updateArray(String columnLabel, Array x) throws SQLException {
  662.  
  663. }
  664.  
  665. @Override
  666. public RowId getRowId(int columnIndex) throws SQLException {
  667. return null;
  668. }
  669.  
  670. @Override
  671. public RowId getRowId(String columnLabel) throws SQLException {
  672. return null;
  673. }
  674.  
  675. @Override
  676. public void updateRowId(int columnIndex, RowId x) throws SQLException {
  677.  
  678. }
  679.  
  680. @Override
  681. public void updateRowId(String columnLabel, RowId x) throws SQLException {
  682.  
  683. }
  684.  
  685. @Override
  686. public int getHoldability() throws SQLException {
  687. return 0;
  688. }
  689.  
  690. @Override
  691. public abstract boolean isClosed() throws SQLException;
  692.  
  693. @Override
  694. public void updateNString(int columnIndex, String nString) throws SQLException {
  695.  
  696. }
  697.  
  698. @Override
  699. public void updateNString(String columnLabel, String nString) throws SQLException {
  700.  
  701. }
  702.  
  703. @Override
  704. public void updateNClob(int columnIndex, NClob nClob) throws SQLException {
  705.  
  706. }
  707.  
  708. @Override
  709. public void updateNClob(String columnLabel, NClob nClob) throws SQLException {
  710.  
  711. }
  712.  
  713. @Override
  714. public NClob getNClob(int columnIndex) throws SQLException {
  715. return null;
  716. }
  717.  
  718. @Override
  719. public NClob getNClob(String columnLabel) throws SQLException {
  720. return null;
  721. }
  722.  
  723. @Override
  724. public SQLXML getSQLXML(int columnIndex) throws SQLException {
  725. return null;
  726. }
  727.  
  728. @Override
  729. public SQLXML getSQLXML(String columnLabel) throws SQLException {
  730. return null;
  731. }
  732.  
  733. @Override
  734. public void updateSQLXML(int columnIndex, SQLXML xmlObject) throws SQLException {
  735.  
  736. }
  737.  
  738. @Override
  739. public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException {
  740.  
  741. }
  742.  
  743. @Override
  744. public String getNString(int columnIndex) throws SQLException {
  745. return null;
  746. }
  747.  
  748. @Override
  749. public String getNString(String columnLabel) throws SQLException {
  750. return null;
  751. }
  752.  
  753. @Override
  754. public Reader getNCharacterStream(int columnIndex) throws SQLException {
  755. return null;
  756. }
  757.  
  758. @Override
  759. public Reader getNCharacterStream(String columnLabel) throws SQLException {
  760. return null;
  761. }
  762.  
  763. @Override
  764. public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
  765.  
  766. }
  767.  
  768. @Override
  769. public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException {
  770.  
  771. }
  772.  
  773. @Override
  774. public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException {
  775.  
  776. }
  777.  
  778. @Override
  779. public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException {
  780.  
  781. }
  782.  
  783. @Override
  784. public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
  785.  
  786. }
  787.  
  788. @Override
  789. public void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException {
  790.  
  791. }
  792.  
  793. @Override
  794. public void updateBinaryStream(String columnLabel, InputStream x, long length) throws SQLException {
  795.  
  796. }
  797.  
  798. @Override
  799. public void updateCharacterStream(String columnLabel, Reader reader, long length) throws SQLException {
  800.  
  801. }
  802.  
  803. @Override
  804. public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException {
  805.  
  806. }
  807.  
  808. @Override
  809. public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException {
  810.  
  811. }
  812.  
  813. @Override
  814. public void updateClob(int columnIndex, Reader reader, long length) throws SQLException {
  815.  
  816. }
  817.  
  818. @Override
  819. public void updateClob(String columnLabel, Reader reader, long length) throws SQLException {
  820.  
  821. }
  822.  
  823. @Override
  824. public void updateNClob(int columnIndex, Reader reader, long length) throws SQLException {
  825.  
  826. }
  827.  
  828. @Override
  829. public void updateNClob(String columnLabel, Reader reader, long length) throws SQLException {
  830.  
  831. }
  832.  
  833. @Override
  834. public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException {
  835.  
  836. }
  837.  
  838. @Override
  839. public void updateNCharacterStream(String columnLabel, Reader reader) throws SQLException {
  840.  
  841. }
  842.  
  843. @Override
  844. public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException {
  845.  
  846. }
  847.  
  848. @Override
  849. public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException {
  850.  
  851. }
  852.  
  853. @Override
  854. public void updateCharacterStream(int columnIndex, Reader x) throws SQLException {
  855.  
  856. }
  857.  
  858. @Override
  859. public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException {
  860.  
  861. }
  862.  
  863. @Override
  864. public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException {
  865.  
  866. }
  867.  
  868. @Override
  869. public void updateCharacterStream(String columnLabel, Reader reader) throws SQLException {
  870.  
  871. }
  872.  
  873. @Override
  874. public void updateBlob(int columnIndex, InputStream inputStream) throws SQLException {
  875.  
  876. }
  877.  
  878. @Override
  879. public void updateBlob(String columnLabel, InputStream inputStream) throws SQLException {
  880.  
  881. }
  882.  
  883. @Override
  884. public void updateClob(int columnIndex, Reader reader) throws SQLException {
  885.  
  886. }
  887.  
  888. @Override
  889. public void updateClob(String columnLabel, Reader reader) throws SQLException {
  890.  
  891. }
  892.  
  893. @Override
  894. public void updateNClob(int columnIndex, Reader reader) throws SQLException {
  895.  
  896. }
  897.  
  898. @Override
  899. public void updateNClob(String columnLabel, Reader reader) throws SQLException {
  900.  
  901. }
  902.  
  903. @Override
  904. public <T> T getObject(int columnIndex, Class<T> type) throws SQLException {
  905. return null;
  906. }
  907.  
  908. @Override
  909. public <T> T getObject(String columnLabel, Class<T> type) throws SQLException {
  910. return null;
  911. }
  912.  
  913. @Override
  914. public <T> T unwrap(Class<T> iface) throws SQLException {
  915. return null;
  916. }
  917.  
  918. @Override
  919. public boolean isWrapperFor(Class<?> iface) throws SQLException {
  920. return false;
  921. }
  922. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement