Skip to content

Commit

Permalink
copyright 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
volker committed Nov 12, 2024
1 parent 6458c2b commit 1d05ec4
Show file tree
Hide file tree
Showing 23 changed files with 25 additions and 40 deletions.
21 changes: 3 additions & 18 deletions src/com/inet/excel/ExcelConnection.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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 );
}

/**
Expand All @@ -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 );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/com/inet/excel/ExcelDatabaseMetaData.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/com/inet/excel/ExcelDatabaseResultSet.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/com/inet/excel/ExcelDriver.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/com/inet/excel/ExcelSheetResultSet.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/com/inet/excel/ExcelSheetResultSetMetaData.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/com/inet/excel/parser/ExcelParser.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/com/inet/excel/parser/FormatCodeAnalyzer.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/com/inet/excel/parser/RowData.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/com/inet/excel/parser/RowSpanData.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/com/inet/excel/parser/SheetDimension.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/com/inet/excel/parser/ValueType.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/com/inet/excel/ExcelCallableStatementTest.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/com/inet/excel/ExcelConnectionTest.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/com/inet/excel/ExcelDatabaseMetaDataTest.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/com/inet/excel/ExcelDatabaseResultSetTest.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/com/inet/excel/ExcelDriverTest.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/com/inet/excel/ExcelSheetResultSetMetaDataTest.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/com/inet/excel/ExcelSheetResultSetTest.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/com/inet/excel/parser/ExcelParserTest.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/com/inet/excel/parser/FormatCodeAnalyzerTest.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/com/inet/excel/parser/RowSpanDataTest.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/com/inet/excel/parser/SheetDimensionTest.java
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 1d05ec4

Please sign in to comment.