Permalink
Browse files

style: align import order with style convention

It's the first step towards #295 and #441. Closes #466
  • Loading branch information...
vlsi committed Dec 26, 2015
1 parent 77a188c commit 00c7eb32a162d9d21ab6ac23e1a9bc5f0c270d2d
Showing with 1,527 additions and 899 deletions.
  1. +17 −13 pgjdbc/src/main/java/org/postgresql/Driver.java
  2. +3 −1 pgjdbc/src/main/java/org/postgresql/PGConnection.java
  3. +3 −3 pgjdbc/src/main/java/org/postgresql/PGProperty.java
  4. +2 −2 pgjdbc/src/main/java/org/postgresql/PGResultSetMetaData.java
  5. +1 −1 pgjdbc/src/main/java/org/postgresql/PGStatement.java
  6. +8 −8 pgjdbc/src/main/java/org/postgresql/copy/CopyManager.java
  7. +4 −4 pgjdbc/src/main/java/org/postgresql/copy/PGCopyInputStream.java
  8. +3 −3 pgjdbc/src/main/java/org/postgresql/copy/PGCopyOutputStream.java
  9. +5 −2 pgjdbc/src/main/java/org/postgresql/core/BaseConnection.java
  10. +4 −1 pgjdbc/src/main/java/org/postgresql/core/BaseStatement.java
  11. +5 −5 pgjdbc/src/main/java/org/postgresql/core/ConnectionFactory.java
  12. +2 −2 pgjdbc/src/main/java/org/postgresql/core/Encoding.java
  13. +5 −5 pgjdbc/src/main/java/org/postgresql/core/Logger.java
  14. +2 −2 pgjdbc/src/main/java/org/postgresql/core/Oid.java
  15. +8 −7 pgjdbc/src/main/java/org/postgresql/core/PGStream.java
  16. +1 −1 pgjdbc/src/main/java/org/postgresql/core/ParameterList.java
  17. +2 −1 pgjdbc/src/main/java/org/postgresql/core/ProtocolConnection.java
  18. +2 −2 pgjdbc/src/main/java/org/postgresql/core/QueryExecutor.java
  19. +2 −1 pgjdbc/src/main/java/org/postgresql/core/ResultHandler.java
  20. +5 −5 pgjdbc/src/main/java/org/postgresql/core/SetupQueryRunner.java
  21. +2 −2 pgjdbc/src/main/java/org/postgresql/core/TypeInfo.java
  22. +2 −1 pgjdbc/src/main/java/org/postgresql/core/UTF8Encoding.java
  23. +4 −8 pgjdbc/src/main/java/org/postgresql/core/Utils.java
  24. +19 −14 pgjdbc/src/main/java/org/postgresql/core/v2/ConnectionFactoryImpl.java
  25. +7 −6 pgjdbc/src/main/java/org/postgresql/core/v2/FastpathParameterList.java
  26. +10 −5 pgjdbc/src/main/java/org/postgresql/core/v2/ProtocolConnectionImpl.java
  27. +20 −9 pgjdbc/src/main/java/org/postgresql/core/v2/QueryExecutorImpl.java
  28. +8 −6 pgjdbc/src/main/java/org/postgresql/core/v2/SimpleParameterList.java
  29. +6 −2 pgjdbc/src/main/java/org/postgresql/core/v2/V2Query.java
  30. +3 −3 pgjdbc/src/main/java/org/postgresql/core/v3/CompositeParameterList.java
  31. +1 −1 pgjdbc/src/main/java/org/postgresql/core/v3/CompositeQuery.java
  32. +10 −11 pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java
  33. +2 −2 pgjdbc/src/main/java/org/postgresql/core/v3/CopyInImpl.java
  34. +2 −2 pgjdbc/src/main/java/org/postgresql/core/v3/CopyOperationImpl.java
  35. +2 −2 pgjdbc/src/main/java/org/postgresql/core/v3/CopyOutImpl.java
  36. +3 −1 pgjdbc/src/main/java/org/postgresql/core/v3/Portal.java
  37. +8 −3 pgjdbc/src/main/java/org/postgresql/core/v3/ProtocolConnectionImpl.java
  38. +31 −10 pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java
  39. +11 −8 pgjdbc/src/main/java/org/postgresql/core/v3/SimpleParameterList.java
  40. +5 −1 pgjdbc/src/main/java/org/postgresql/core/v3/SimpleQuery.java
  41. +2 −1 pgjdbc/src/main/java/org/postgresql/core/v3/V3ParameterList.java
  42. +8 −9 pgjdbc/src/main/java/org/postgresql/ds/PGConnectionPoolDataSource.java
  43. +17 −4 pgjdbc/src/main/java/org/postgresql/ds/PGPooledConnection.java
  44. +14 −9 pgjdbc/src/main/java/org/postgresql/ds/PGPoolingDataSource.java
  45. +5 −6 pgjdbc/src/main/java/org/postgresql/ds/PGSimpleDataSource.java
  46. +11 −6 pgjdbc/src/main/java/org/postgresql/ds/common/BaseDataSource.java
  47. +9 −4 pgjdbc/src/main/java/org/postgresql/ds/common/PGObjectFactory.java
  48. +7 −7 pgjdbc/src/main/java/org/postgresql/fastpath/Fastpath.java
  49. +2 −1 pgjdbc/src/main/java/org/postgresql/fastpath/FastpathArg.java
  50. +1 −1 pgjdbc/src/main/java/org/postgresql/geometric/PGpoint.java
  51. +1 −0 pgjdbc/src/main/java/org/postgresql/geometric/PGpolygon.java
  52. +6 −1 pgjdbc/src/main/java/org/postgresql/gss/GSSCallbackHandler.java
  53. +17 −9 pgjdbc/src/main/java/org/postgresql/gss/MakeGSS.java
  54. +2 −2 pgjdbc/src/main/java/org/postgresql/hostchooser/GlobalHostStatusTracker.java
  55. +2 −2 pgjdbc/src/main/java/org/postgresql/hostchooser/HostChooser.java
  56. +2 −2 pgjdbc/src/main/java/org/postgresql/hostchooser/HostChooserFactory.java
  57. +3 −3 pgjdbc/src/main/java/org/postgresql/hostchooser/MultiHostChooser.java
  58. +2 −2 pgjdbc/src/main/java/org/postgresql/hostchooser/SingleHostChooser.java
  59. +8 −8 pgjdbc/src/main/java/org/postgresql/jdbc/AbstractBlobClob.java
  60. +5 −1 pgjdbc/src/main/java/org/postgresql/jdbc/BatchResultHandler.java
  61. +2 −2 pgjdbc/src/main/java/org/postgresql/jdbc/CacheMetadata.java
  62. +4 −5 pgjdbc/src/main/java/org/postgresql/jdbc/CallableBatchStatementHandler.java
  63. +5 −5 pgjdbc/src/main/java/org/postgresql/jdbc/EscapedFunctions.java
  64. +4 −3 pgjdbc/src/main/java/org/postgresql/jdbc/PSQLSavepoint.java
  65. +7 −2 pgjdbc/src/main/java/org/postgresql/jdbc/PgArray.java
  66. +13 −1 pgjdbc/src/main/java/org/postgresql/jdbc/PgCallableStatement.java
  67. +59 −9 pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java
  68. +21 −6 pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java
  69. +5 −5 pgjdbc/src/main/java/org/postgresql/jdbc/PgParameterMetaData.java
  70. +40 −5 pgjdbc/src/main/java/org/postgresql/jdbc/PgPreparedStatement.java
  71. +23 −23 pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java
  72. +9 −3 pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSetMetaData.java
  73. +29 −24 pgjdbc/src/main/java/org/postgresql/jdbc/PgSQLXML.java
  74. +15 −56 pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java
  75. +9 −6 pgjdbc/src/main/java/org/postgresql/jdbc/TypeInfoCache.java
  76. +1 −1 pgjdbc/src/main/java/org/postgresql/largeobject/BlobInputStream.java
  77. +7 −6 pgjdbc/src/main/java/org/postgresql/largeobject/LargeObject.java
  78. +5 −4 pgjdbc/src/main/java/org/postgresql/largeobject/LargeObjectManager.java
  79. +4 −3 pgjdbc/src/main/java/org/postgresql/osgi/PGBundleActivator.java
  80. +9 −9 pgjdbc/src/main/java/org/postgresql/osgi/PGDataSourceFactory.java
  81. +7 −8 pgjdbc/src/main/java/org/postgresql/ssl/MakeSSL.java
  82. +2 −2 pgjdbc/src/main/java/org/postgresql/ssl/NonValidatingFactory.java
  83. +6 −9 pgjdbc/src/main/java/org/postgresql/ssl/SingleCertValidatingFactory.java
  84. +1 −2 pgjdbc/src/main/java/org/postgresql/ssl/WrappedFactory.java
  85. +5 −6 pgjdbc/src/main/java/org/postgresql/ssl/jdbc4/LazyKeyManager.java
  86. +8 −9 pgjdbc/src/main/java/org/postgresql/ssl/jdbc4/LibPQFactory.java
  87. +0 −3 pgjdbc/src/main/java/org/postgresql/sspi/NTDSAPI.java
  88. +0 −3 pgjdbc/src/main/java/org/postgresql/sspi/NTDSAPIWrapper.java
  89. +3 −8 pgjdbc/src/main/java/org/postgresql/sspi/SSPIClient.java
  90. +2 −3 pgjdbc/src/main/java/org/postgresql/util/HStoreConverter.java
  91. +1 −1 pgjdbc/src/main/java/org/postgresql/util/MD5Digest.java
  92. +0 −1 pgjdbc/src/main/java/org/postgresql/util/PGTime.java
  93. +0 −2 pgjdbc/src/main/java/org/postgresql/util/PGTimestamp.java
  94. +1 −1 pgjdbc/src/main/java/org/postgresql/util/PGbytea.java
  95. +0 −2 pgjdbc/src/main/java/org/postgresql/util/PGobject.java
  96. +1 −1 pgjdbc/src/main/java/org/postgresql/util/ServerErrorMessage.java
  97. +2 −3 pgjdbc/src/main/java/org/postgresql/util/SharedTimer.java
  98. +10 −11 pgjdbc/src/main/java/org/postgresql/xa/PGXAConnection.java
  99. +4 −7 pgjdbc/src/main/java/org/postgresql/xa/PGXADataSource.java
  100. +4 −2 pgjdbc/src/main/java/org/postgresql/xa/PGXADataSourceFactory.java
  101. +2 −2 pgjdbc/src/main/java/org/postgresql/xa/RecoveredXid.java
  102. +2 −2 pgjdbc/src/test/java/org/postgresql/test/CursorFetchBinaryTest.java
  103. +5 −5 pgjdbc/src/test/java/org/postgresql/test/TestUtil.java
  104. +6 −2 pgjdbc/src/test/java/org/postgresql/test/extensions/ExtensionsTestSuite.java
  105. +8 −4 pgjdbc/src/test/java/org/postgresql/test/extensions/HStoreTest.java
  106. +5 −4 pgjdbc/src/test/java/org/postgresql/test/hostchooser/MultiHostTestSuite.java
  107. +8 −8 pgjdbc/src/test/java/org/postgresql/test/hostchooser/MultiHostsConnectionTest.java
  108. +11 −4 pgjdbc/src/test/java/org/postgresql/test/jdbc2/ArrayTest.java
  109. +3 −3 pgjdbc/src/test/java/org/postgresql/test/jdbc2/BaseTest.java
  110. +2 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc2/BatchExecuteTest.java
  111. +12 −4 pgjdbc/src/test/java/org/postgresql/test/jdbc2/BlobTest.java
  112. +9 −6 pgjdbc/src/test/java/org/postgresql/test/jdbc2/BlobTransactionTest.java
  113. +9 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/CallableStmtTest.java
  114. +5 −5 pgjdbc/src/test/java/org/postgresql/test/jdbc2/ColumnSanitiserDisabledTest.java
  115. +4 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/ColumnSanitiserEnabledTest.java
  116. +2 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/ConnectTimeoutTest.java
  117. +8 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/ConnectionTest.java
  118. +3 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc2/CopyLargeFileTest.java
  119. +16 −15 pgjdbc/src/test/java/org/postgresql/test/jdbc2/CopyTest.java
  120. +5 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc2/CursorFetchTest.java
  121. +7 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc2/DatabaseEncodingTest.java
  122. +5 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/DatabaseMetaDataPropertiesTest.java
  123. +7 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java
  124. +7 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/DateTest.java
  125. +3 −3 pgjdbc/src/test/java/org/postgresql/test/jdbc2/DriverTest.java
  126. +6 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc2/EncodingTest.java
  127. +13 −3 pgjdbc/src/test/java/org/postgresql/test/jdbc2/GeometricTest.java
  128. +9 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc2/GetXXXTest.java
  129. +10 −6 pgjdbc/src/test/java/org/postgresql/test/jdbc2/IntervalTest.java
  130. +4 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/JBuilderTest.java
  131. +3 −3 pgjdbc/src/test/java/org/postgresql/test/jdbc2/Jdbc2TestSuite.java
  132. +6 −4 pgjdbc/src/test/java/org/postgresql/test/jdbc2/LoginTimeoutTest.java
  133. +9 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc2/MiscTest.java
  134. +5 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc2/NotifyTest.java
  135. +6 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/OID74Test.java
  136. +9 −20 pgjdbc/src/test/java/org/postgresql/test/jdbc2/PGPropertyTest.java
  137. +6 −6 pgjdbc/src/test/java/org/postgresql/test/jdbc2/PGTimeTest.java
  138. +6 −6 pgjdbc/src/test/java/org/postgresql/test/jdbc2/PGTimestampTest.java
  139. +10 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc2/PreparedStatementTest.java
  140. +9 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/RefCursorTest.java
  141. +10 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/ResultSetMetaDataTest.java
  142. +5 −4 pgjdbc/src/test/java/org/postgresql/test/jdbc2/ResultSetTest.java
  143. +4 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc2/SearchPathLookupTest.java
  144. +4 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc2/ServerCursorTest.java
  145. +5 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/ServerErrorTest.java
  146. +3 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc2/ServerPreparedStmtTest.java
  147. +7 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc2/StatementTest.java
  148. +2 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/TestACL.java
  149. +9 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/TimeTest.java
  150. +13 −6 pgjdbc/src/test/java/org/postgresql/test/jdbc2/TimestampTest.java
  151. +14 −3 pgjdbc/src/test/java/org/postgresql/test/jdbc2/TimezoneTest.java
  152. +10 −6 pgjdbc/src/test/java/org/postgresql/test/jdbc2/UpdateableResultTest.java
  153. +12 −6 pgjdbc/src/test/java/org/postgresql/test/jdbc2/optional/BaseDataSourceTest.java
  154. +7 −7 pgjdbc/src/test/java/org/postgresql/test/jdbc2/optional/CaseOptimiserDataSourceTest.java
  155. +16 −8 pgjdbc/src/test/java/org/postgresql/test/jdbc2/optional/ConnectionPoolTest.java
  156. +6 −3 pgjdbc/src/test/java/org/postgresql/test/jdbc2/optional/PoolingDataSourceTest.java
  157. +0 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/optional/SimpleDataSourceTest.java
  158. +1 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc2/optional/SimpleDataSourceWithUrlTest.java
  159. +2 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc3/CompositeQueryParseTest.java
  160. +7 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc3/CompositeTest.java
  161. +7 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc3/DatabaseMetaDataTest.java
  162. +6 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc3/GeneratedKeysTest.java
  163. +4 −4 pgjdbc/src/test/java/org/postgresql/test/jdbc3/Jdbc3BlobTest.java
  164. +5 −5 pgjdbc/src/test/java/org/postgresql/test/jdbc3/Jdbc3CallableStatementTest.java
  165. +9 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc3/Jdbc3SavepointTest.java
  166. +10 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc3/ParameterMetaDataTest.java
  167. +7 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc3/ResultSetTest.java
  168. +5 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc3/SendRecvBufferSizeTest.java
  169. +7 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc3/StringTypeParameterTest.java
  170. +10 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc3/TypesTest.java
  171. +12 −6 pgjdbc/src/test/java/org/postgresql/test/jdbc4/ArrayTest.java
  172. +5 −5 pgjdbc/src/test/java/org/postgresql/test/jdbc4/BinaryStreamTest.java
  173. +5 −5 pgjdbc/src/test/java/org/postgresql/test/jdbc4/BinaryTest.java
  174. +5 −5 pgjdbc/src/test/java/org/postgresql/test/jdbc4/BlobTest.java
  175. +9 −3 pgjdbc/src/test/java/org/postgresql/test/jdbc4/ClientInfoTest.java
  176. +6 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc4/DatabaseMetaDataTest.java
  177. +5 −4 pgjdbc/src/test/java/org/postgresql/test/jdbc4/IsValidTest.java
  178. +6 −3 pgjdbc/src/test/java/org/postgresql/test/jdbc4/Jdbc4TestSuite.java
  179. +5 −5 pgjdbc/src/test/java/org/postgresql/test/jdbc4/PGCopyInputStreamTest.java
  180. +8 −3 pgjdbc/src/test/java/org/postgresql/test/jdbc4/UUIDTest.java
  181. +6 −3 pgjdbc/src/test/java/org/postgresql/test/jdbc4/WrapperTest.java
  182. +18 −18 pgjdbc/src/test/java/org/postgresql/test/jdbc4/XmlTest.java
  183. +7 −5 pgjdbc/src/test/java/org/postgresql/test/jdbc4/jdbc41/AbortTest.java
  184. +4 −4 pgjdbc/src/test/java/org/postgresql/test/jdbc4/jdbc41/CloseOnCompletionTest.java
  185. +5 −4 pgjdbc/src/test/java/org/postgresql/test/jdbc4/jdbc41/SchemaTest.java
  186. +6 −5 pgjdbc/src/test/java/org/postgresql/test/jdbc42/CustomizeDefaultFetchSizeTest.java
  187. +1 −1 pgjdbc/src/test/java/org/postgresql/test/jdbc42/Jdbc42TestSuite.java
  188. +3 −2 pgjdbc/src/test/java/org/postgresql/test/jdbc42/SimpleJdbc42Test.java
  189. +11 −11 pgjdbc/src/test/java/org/postgresql/test/osgi/PGDataSourceFactoryTest.java
  190. +12 −11 pgjdbc/src/test/java/org/postgresql/test/ssl/SingleCertValidatingFactoryTestSuite.java
  191. +5 −5 pgjdbc/src/test/java/org/postgresql/test/ssl/SslTest.java
  192. +2 −7 pgjdbc/src/test/java/org/postgresql/test/ssl/SslTestSuite.java
  193. +1 −1 pgjdbc/src/test/java/org/postgresql/test/util/BrokenInputStream.java
  194. +4 −1 pgjdbc/src/test/java/org/postgresql/test/util/BufferGenerator.java
  195. +2 −1 pgjdbc/src/test/java/org/postgresql/test/util/LruCacheTest.java
  196. +13 −3 pgjdbc/src/test/java/org/postgresql/test/util/MiniJndiContext.java
  197. +3 −2 pgjdbc/src/test/java/org/postgresql/test/util/MiniJndiContextFactory.java
  198. +6 −7 pgjdbc/src/test/java/org/postgresql/test/xa/XADataSourceTest.java
  199. +4 −4 pgjdbc/src/test/java/org/postgresql/test/xa/XATestSuite.java
  200. +18 −3 ubenchmark/src/main/java/org/postgresql/benchmark/connection/FinalizeConnection.java
  201. +14 −2 ubenchmark/src/main/java/org/postgresql/benchmark/encoding/UTF8Encoding.java
  202. +21 −4 ubenchmark/src/main/java/org/postgresql/benchmark/statement/BindBoolean.java
  203. +21 −4 ubenchmark/src/main/java/org/postgresql/benchmark/statement/BindTimestamp.java
  204. +15 −2 ubenchmark/src/main/java/org/postgresql/benchmark/statement/FinalizeStatement.java
  205. +20 −4 ubenchmark/src/main/java/org/postgresql/benchmark/statement/InsertBatch.java
  206. +21 −3 ubenchmark/src/main/java/org/postgresql/benchmark/statement/ParseStatement.java
  207. +21 −5 ubenchmark/src/main/java/org/postgresql/benchmark/statement/ProcessResultSet.java
  208. +11 −1 ubenchmark/src/main/java/org/postgresql/benchmark/time/AddPaddingZeros.java
  209. +11 −2 ubenchmark/src/main/java/org/postgresql/benchmark/time/TimestampToDate.java
  210. +11 −1 ubenchmark/src/main/java/org/postgresql/benchmark/time/TimestampToTime.java
@@ -7,24 +7,28 @@
*/
package org.postgresql;

import java.io.*;
import java.sql.*;
import java.util.*;
import java.net.URL;

import java.security.AccessController;
import java.security.PrivilegedActionException;
import java.security.PrivilegedExceptionAction;

import org.postgresql.core.Logger;
import org.postgresql.jdbc.PgConnection;
import org.postgresql.util.PSQLException;
import org.postgresql.util.PSQLState;
import org.postgresql.util.PSQLDriverVersion;
import org.postgresql.util.GT;
import org.postgresql.util.HostSpec;
import org.postgresql.util.PSQLException;
import org.postgresql.util.PSQLState;
import org.postgresql.util.SharedTimer;

import org.postgresql.core.Logger;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.security.AccessController;
import java.security.PrivilegedActionException;
import java.security.PrivilegedExceptionAction;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.DriverPropertyInfo;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.Properties;

/**
* The Java SQL framework allows for multiple database drivers. Each
@@ -7,12 +7,14 @@
*/
package org.postgresql;

import java.sql.*;
import org.postgresql.copy.CopyManager;
import org.postgresql.fastpath.Fastpath;
import org.postgresql.largeobject.LargeObjectManager;
import org.postgresql.util.PGobject;

import java.sql.SQLException;
import java.sql.Statement;

/**
* This interface defines the public PostgreSQL extensions to
* java.sql.Connection. All Connections returned by the PostgreSQL driver
@@ -7,13 +7,13 @@
*/
package org.postgresql;

import java.sql.DriverPropertyInfo;
import java.util.Properties;

import org.postgresql.util.GT;
import org.postgresql.util.PSQLException;
import org.postgresql.util.PSQLState;

import java.sql.DriverPropertyInfo;
import java.util.Properties;

/**
* All connection parameters that can be either set in JDBC URL, in Driver properties or in datasource setters.
*/
@@ -7,10 +7,10 @@
*/
package org.postgresql;

import java.sql.SQLException;

import org.postgresql.core.Field;

import java.sql.SQLException;

public interface PGResultSetMetaData
{

@@ -7,7 +7,7 @@
*/
package org.postgresql;

import java.sql.*;
import java.sql.SQLException;

/**
* This interface defines the public PostgreSQL extensions to
@@ -11,20 +11,20 @@
*/
package org.postgresql.copy;

import java.io.IOException;
import java.io.OutputStream;
import java.io.InputStream;
import java.io.Reader;
import java.io.Writer;
import java.sql.SQLException;

import org.postgresql.core.BaseConnection;
import org.postgresql.core.Encoding;
import org.postgresql.core.QueryExecutor;
import org.postgresql.core.BaseConnection;
import org.postgresql.util.GT;
import org.postgresql.util.PSQLException;
import org.postgresql.util.PSQLState;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Reader;
import java.io.Writer;
import java.sql.SQLException;

/**
* API for PostgreSQL COPY bulk data transfer
*/
@@ -7,15 +7,15 @@
*/
package org.postgresql.copy;

import java.io.IOException;
import java.io.InputStream;
import java.sql.SQLException;

import org.postgresql.PGConnection;
import org.postgresql.util.GT;
import org.postgresql.util.PSQLException;
import org.postgresql.util.PSQLState;

import java.io.IOException;
import java.io.InputStream;
import java.sql.SQLException;

/**
* InputStream for reading from a PostgreSQL COPY TO STDOUT operation
*/
@@ -7,13 +7,13 @@
*/
package org.postgresql.copy;

import org.postgresql.PGConnection;
import org.postgresql.util.GT;

import java.io.IOException;
import java.io.OutputStream;
import java.sql.SQLException;

import org.postgresql.PGConnection;
import org.postgresql.util.GT;

/**
* OutputStream for buffered input into a PostgreSQL COPY FROM STDIN operation
*/
@@ -7,11 +7,14 @@
*/
package org.postgresql.core;

import java.util.TimerTask;
import java.sql.*;
import org.postgresql.PGConnection;
import org.postgresql.jdbc.TimestampUtils;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.TimerTask;

/**
* Driver-internal connection interface. Application code should not use
* this interface.
@@ -8,7 +8,10 @@
package org.postgresql.core;

import org.postgresql.PGStatement;
import java.sql.*;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.List;

/**
@@ -8,16 +8,16 @@
*/
package org.postgresql.core;

import java.util.Properties;
import java.io.IOException;
import java.sql.SQLException;

import org.postgresql.PGProperty;
import org.postgresql.util.GT;
import org.postgresql.util.HostSpec;
import org.postgresql.util.PSQLException;
import org.postgresql.util.GT;
import org.postgresql.util.PSQLState;

import java.io.IOException;
import java.sql.SQLException;
import java.util.Properties;

/**
* Handles protocol-specific connection setup.
*
@@ -7,13 +7,13 @@
*/
package org.postgresql.core;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.Reader;
import java.io.Writer;
import java.io.IOException;
import java.util.HashMap;

/**
@@ -7,14 +7,14 @@
*/
package org.postgresql.core;

import java.text.SimpleDateFormat;
import java.text.FieldPosition;
import java.sql.DriverManager;
import org.postgresql.Driver;

import java.io.PrintWriter;
import java.sql.DriverManager;
import java.text.FieldPosition;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.postgresql.Driver;

/**
* Poor man's logging infrastructure. This just deals with maintaining a per-
* connection ID and log level, and timestamping output.
@@ -7,12 +7,12 @@
*/
package org.postgresql.core;

import java.lang.reflect.Field;

import org.postgresql.util.GT;
import org.postgresql.util.PSQLException;
import org.postgresql.util.PSQLState;

import java.lang.reflect.Field;

/**
* Provides constants for well-known backend OIDs for the types we commonly
* use.
@@ -7,21 +7,22 @@
*/
package org.postgresql.core;

import org.postgresql.util.GT;
import org.postgresql.util.HostSpec;
import org.postgresql.util.PSQLException;
import org.postgresql.util.PSQLState;

import java.io.BufferedOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.EOFException;
import java.io.FilterOutputStream;
import java.io.IOException;
import java.io.EOFException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Writer;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.sql.SQLException;
import javax.net.SocketFactory;
import org.postgresql.util.GT;
import org.postgresql.util.HostSpec;
import org.postgresql.util.PSQLState;
import org.postgresql.util.PSQLException;

/**
* Wrapper around the raw connection to the server that implements some basic
@@ -8,8 +8,8 @@
*/
package org.postgresql.core;

import java.sql.SQLException;
import java.io.InputStream;
import java.sql.SQLException;

/**
* Abstraction of a list of parameters to be substituted into a Query.
@@ -11,7 +11,8 @@
import org.postgresql.PGNotification;
import org.postgresql.util.HostSpec;

import java.sql.*;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.util.Set;

/**
@@ -8,10 +8,10 @@
*/
package org.postgresql.core;

import java.sql.SQLException;

import org.postgresql.copy.CopyOperation;

import java.sql.SQLException;

/**
* Abstracts the protocol-specific details of executing a query.
*<p>
@@ -8,7 +8,8 @@
*/
package org.postgresql.core;

import java.sql.*;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.util.List;

/**
@@ -8,13 +8,13 @@
*/
package org.postgresql.core;

import java.util.List;
import java.sql.SQLWarning;
import java.sql.SQLException;

import org.postgresql.util.GT;
import org.postgresql.util.PSQLState;
import org.postgresql.util.PSQLException;
import org.postgresql.util.PSQLState;

import java.sql.SQLException;
import java.sql.SQLWarning;
import java.util.List;

/**
* Poor man's Statement &amp; ResultSet, used for initial queries while we're
@@ -7,11 +7,11 @@
*/
package org.postgresql.core;

import org.postgresql.util.PGobject;

import java.sql.SQLException;
import java.util.Iterator;

import org.postgresql.util.PGobject;

public interface TypeInfo
{
public void addCoreType(String pgTypeName, Integer oid, Integer sqlType, String javaClass, Integer arrayOid);
@@ -7,9 +7,10 @@
*/
package org.postgresql.core;

import java.io.IOException;
import org.postgresql.util.GT;

import java.io.IOException;

class UTF8Encoding extends Encoding {
UTF8Encoding(String jvmEncoding) {
super(jvmEncoding);
Oops, something went wrong.

0 comments on commit 00c7eb3

Please sign in to comment.