From 1d05ec422c4217980bfaf878f5cb3ce54c5bf905 Mon Sep 17 00:00:00 2001 From: volker Date: Tue, 12 Nov 2024 13:45:57 +0100 Subject: [PATCH] copyright 2024 --- src/com/inet/excel/ExcelConnection.java | 21 +++---------------- src/com/inet/excel/ExcelDatabaseMetaData.java | 2 +- .../inet/excel/ExcelDatabaseResultSet.java | 2 +- src/com/inet/excel/ExcelDriver.java | 2 +- src/com/inet/excel/ExcelSheetResultSet.java | 2 +- .../excel/ExcelSheetResultSetMetaData.java | 2 +- src/com/inet/excel/parser/ExcelParser.java | 2 +- .../inet/excel/parser/FormatCodeAnalyzer.java | 2 +- src/com/inet/excel/parser/RowData.java | 2 +- src/com/inet/excel/parser/RowSpanData.java | 2 +- src/com/inet/excel/parser/SheetDimension.java | 2 +- src/com/inet/excel/parser/ValueType.java | 2 +- .../excel/ExcelCallableStatementTest.java | 2 +- test/com/inet/excel/ExcelConnectionTest.java | 2 +- .../inet/excel/ExcelDatabaseMetaDataTest.java | 2 +- .../excel/ExcelDatabaseResultSetTest.java | 2 +- test/com/inet/excel/ExcelDriverTest.java | 2 +- .../ExcelSheetResultSetMetaDataTest.java | 2 +- .../inet/excel/ExcelSheetResultSetTest.java | 2 +- .../inet/excel/parser/ExcelParserTest.java | 2 +- .../excel/parser/FormatCodeAnalyzerTest.java | 2 +- .../inet/excel/parser/RowSpanDataTest.java | 2 +- .../inet/excel/parser/SheetDimensionTest.java | 2 +- 23 files changed, 25 insertions(+), 40 deletions(-) diff --git a/src/com/inet/excel/ExcelConnection.java b/src/com/inet/excel/ExcelConnection.java index 3588aa3..19f99b4 100644 --- a/src/com/inet/excel/ExcelConnection.java +++ b/src/com/inet/excel/ExcelConnection.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -89,8 +89,7 @@ public boolean isWrapperFor( Class iface ) throws SQLException { */ @Override public Statement createStatement() throws SQLException { - ExcelDriver.throwExceptionAboutUnsupportedOperation(); - return null; + return new ExcelStatement( parser ); } /** @@ -108,21 +107,7 @@ public PreparedStatement prepareStatement( String sql ) throws SQLException { @Override public CallableStatement prepareCall( String sql ) throws SQLException { throwIfAlreadyClosed(); - - String procedureName = null; - - if( sql != null && sql.startsWith( "{call " ) ) { - if( sql.endsWith( "()}" ) ) { - procedureName = sql.substring( 6, sql.length() - 3 ); - } else if( sql.endsWith( "}" ) ) { - procedureName = sql.substring( 6, sql.length() - 1 ); - } - } - - if( procedureName != null ) { - return new ExcelCallableStatement( parser, procedureName ); - } - return null; + return new ExcelCallableStatement( parser, sql ); } /** diff --git a/src/com/inet/excel/ExcelDatabaseMetaData.java b/src/com/inet/excel/ExcelDatabaseMetaData.java index 20fa88a..f0d1bec 100644 --- a/src/com/inet/excel/ExcelDatabaseMetaData.java +++ b/src/com/inet/excel/ExcelDatabaseMetaData.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/com/inet/excel/ExcelDatabaseResultSet.java b/src/com/inet/excel/ExcelDatabaseResultSet.java index 73f5c32..058bd7a 100644 --- a/src/com/inet/excel/ExcelDatabaseResultSet.java +++ b/src/com/inet/excel/ExcelDatabaseResultSet.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/com/inet/excel/ExcelDriver.java b/src/com/inet/excel/ExcelDriver.java index aae42e7..dba7b2f 100644 --- a/src/com/inet/excel/ExcelDriver.java +++ b/src/com/inet/excel/ExcelDriver.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/com/inet/excel/ExcelSheetResultSet.java b/src/com/inet/excel/ExcelSheetResultSet.java index 277dfe3..7d057e3 100644 --- a/src/com/inet/excel/ExcelSheetResultSet.java +++ b/src/com/inet/excel/ExcelSheetResultSet.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/com/inet/excel/ExcelSheetResultSetMetaData.java b/src/com/inet/excel/ExcelSheetResultSetMetaData.java index 0e38b4a..41e9e00 100644 --- a/src/com/inet/excel/ExcelSheetResultSetMetaData.java +++ b/src/com/inet/excel/ExcelSheetResultSetMetaData.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/com/inet/excel/parser/ExcelParser.java b/src/com/inet/excel/parser/ExcelParser.java index daa0c3d..65c5b55 100644 --- a/src/com/inet/excel/parser/ExcelParser.java +++ b/src/com/inet/excel/parser/ExcelParser.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/com/inet/excel/parser/FormatCodeAnalyzer.java b/src/com/inet/excel/parser/FormatCodeAnalyzer.java index 1e2ec50..7cfb8b4 100644 --- a/src/com/inet/excel/parser/FormatCodeAnalyzer.java +++ b/src/com/inet/excel/parser/FormatCodeAnalyzer.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/com/inet/excel/parser/RowData.java b/src/com/inet/excel/parser/RowData.java index d9233c6..57291d6 100644 --- a/src/com/inet/excel/parser/RowData.java +++ b/src/com/inet/excel/parser/RowData.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/com/inet/excel/parser/RowSpanData.java b/src/com/inet/excel/parser/RowSpanData.java index 64bc6e4..d16b66b 100644 --- a/src/com/inet/excel/parser/RowSpanData.java +++ b/src/com/inet/excel/parser/RowSpanData.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/com/inet/excel/parser/SheetDimension.java b/src/com/inet/excel/parser/SheetDimension.java index 9a5f5b2..a51c1b7 100644 --- a/src/com/inet/excel/parser/SheetDimension.java +++ b/src/com/inet/excel/parser/SheetDimension.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/src/com/inet/excel/parser/ValueType.java b/src/com/inet/excel/parser/ValueType.java index 9d37db3..ff3243e 100644 --- a/src/com/inet/excel/parser/ValueType.java +++ b/src/com/inet/excel/parser/ValueType.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/com/inet/excel/ExcelCallableStatementTest.java b/test/com/inet/excel/ExcelCallableStatementTest.java index 940c34b..3f996ab 100644 --- a/test/com/inet/excel/ExcelCallableStatementTest.java +++ b/test/com/inet/excel/ExcelCallableStatementTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/com/inet/excel/ExcelConnectionTest.java b/test/com/inet/excel/ExcelConnectionTest.java index 045e14f..fc5057c 100644 --- a/test/com/inet/excel/ExcelConnectionTest.java +++ b/test/com/inet/excel/ExcelConnectionTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/com/inet/excel/ExcelDatabaseMetaDataTest.java b/test/com/inet/excel/ExcelDatabaseMetaDataTest.java index ab1960f..5abc4f6 100644 --- a/test/com/inet/excel/ExcelDatabaseMetaDataTest.java +++ b/test/com/inet/excel/ExcelDatabaseMetaDataTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/com/inet/excel/ExcelDatabaseResultSetTest.java b/test/com/inet/excel/ExcelDatabaseResultSetTest.java index 140ee57..6b7a0c4 100644 --- a/test/com/inet/excel/ExcelDatabaseResultSetTest.java +++ b/test/com/inet/excel/ExcelDatabaseResultSetTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/com/inet/excel/ExcelDriverTest.java b/test/com/inet/excel/ExcelDriverTest.java index 16b5081..86cc48e 100644 --- a/test/com/inet/excel/ExcelDriverTest.java +++ b/test/com/inet/excel/ExcelDriverTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/com/inet/excel/ExcelSheetResultSetMetaDataTest.java b/test/com/inet/excel/ExcelSheetResultSetMetaDataTest.java index 36055b7..794bb86 100644 --- a/test/com/inet/excel/ExcelSheetResultSetMetaDataTest.java +++ b/test/com/inet/excel/ExcelSheetResultSetMetaDataTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/com/inet/excel/ExcelSheetResultSetTest.java b/test/com/inet/excel/ExcelSheetResultSetTest.java index 56294f6..4ccb00c 100644 --- a/test/com/inet/excel/ExcelSheetResultSetTest.java +++ b/test/com/inet/excel/ExcelSheetResultSetTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/com/inet/excel/parser/ExcelParserTest.java b/test/com/inet/excel/parser/ExcelParserTest.java index d345f5d..74f2817 100644 --- a/test/com/inet/excel/parser/ExcelParserTest.java +++ b/test/com/inet/excel/parser/ExcelParserTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/com/inet/excel/parser/FormatCodeAnalyzerTest.java b/test/com/inet/excel/parser/FormatCodeAnalyzerTest.java index 8e4e1fa..044d776 100644 --- a/test/com/inet/excel/parser/FormatCodeAnalyzerTest.java +++ b/test/com/inet/excel/parser/FormatCodeAnalyzerTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/com/inet/excel/parser/RowSpanDataTest.java b/test/com/inet/excel/parser/RowSpanDataTest.java index 1147f51..1c18570 100644 --- a/test/com/inet/excel/parser/RowSpanDataTest.java +++ b/test/com/inet/excel/parser/RowSpanDataTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/test/com/inet/excel/parser/SheetDimensionTest.java b/test/com/inet/excel/parser/SheetDimensionTest.java index 60101f1..b796b73 100644 --- a/test/com/inet/excel/parser/SheetDimensionTest.java +++ b/test/com/inet/excel/parser/SheetDimensionTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 i-net software + * Copyright 2023 - 2024 i-net software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.