Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/main/java/com/ibatis/common/util/PaginatedArrayList.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2004-2022 the original author or authors.
* Copyright 2004-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -22,6 +22,7 @@
*
* @deprecated All paginated list features have been deprecated
*/
@Deprecated
public class PaginatedArrayList implements PaginatedList {

/** The Constant EMPTY_LIST. */
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/ibatis/common/util/PaginatedList.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2004-2022 the original author or authors.
* Copyright 2004-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -22,6 +22,7 @@
*
* @deprecated All paginated list features have been deprecated
*/
@Deprecated
public interface PaginatedList extends List {

/**
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/ibatis/sqlmap/client/SqlMapClient.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2004-2022 the original author or authors.
* Copyright 2004-2025 the original author or authors.
*
* 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 @@ -175,6 +175,7 @@ public interface SqlMapClient extends SqlMapExecutor, SqlMapTransactionManager {
*
* @deprecated Use openSession() instead. THIS METHOD WILL BE REMOVED BEFORE FINAL RELEASE.
*/
@Deprecated
public SqlMapSession getSession();

/**
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/ibatis/sqlmap/client/SqlMapExecutor.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2004-2022 the original author or authors.
* Copyright 2004-2025 the original author or authors.
*
* 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 @@ -328,6 +328,7 @@ public interface SqlMapExecutor {
*
* @deprecated All paginated list features have been deprecated
*/
@Deprecated
PaginatedList queryForPaginatedList(String id, Object parameterObject, int pageSize) throws SQLException;

/**
Expand All @@ -347,6 +348,7 @@ public interface SqlMapExecutor {
*
* @deprecated All paginated list features have been deprecated
*/
@Deprecated
PaginatedList queryForPaginatedList(String id, int pageSize) throws SQLException;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2004-2022 the original author or authors.
* Copyright 2004-2025 the original author or authors.
*
* 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 @@ -140,6 +140,7 @@ public interface SqlMapTransactionManager {
*
* @deprecated Use getCurrentConnection() instead.
*/
@Deprecated
public Connection getUserConnection() throws SQLException;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2004-2023 the original author or authors.
* Copyright 2004-2025 the original author or authors.
*
* 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 @@ -34,9 +34,10 @@
/**
* The Interface ExtendedSqlMapClient.
*
* @deprecated - this class is uneccessary and should be removed as soon as possible. Currently spring integration
* @deprecated - this class is unnecessary and should be removed as soon as possible. Currently spring integration
* depends on it.
*/
@Deprecated
public interface ExtendedSqlMapClient extends SqlMapClient {

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2004-2023 the original author or authors.
* Copyright 2004-2025 the original author or authors.
*
* 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 @@ -113,13 +113,15 @@ public List queryForList(String id, int skip, int max) throws SQLException {
/**
* @deprecated All paginated list features have been deprecated
*/
@Deprecated
public PaginatedList queryForPaginatedList(String id, Object paramObject, int pageSize) throws SQLException {
return getLocalSqlMapSession().queryForPaginatedList(id, paramObject, pageSize);
}

/**
* @deprecated All paginated list features have been deprecated
*/
@Deprecated
public PaginatedList queryForPaginatedList(String id, int pageSize) throws SQLException {
return getLocalSqlMapSession().queryForPaginatedList(id, pageSize);
}
Expand Down Expand Up @@ -184,15 +186,16 @@ public void setUserConnection(Connection connection) throws SQLException {
}

/**
* TODO Deprecated.
* Get user connection.
*
* @return Current connection
*
* @throws SQLException
* the SQL exception
*
* @deprecated
* @deprecated Use getCurrentconnection() instead.
*/
@Deprecated
public Connection getUserConnection() throws SQLException {
return getCurrentConnection();
}
Expand Down Expand Up @@ -243,10 +246,11 @@ public SqlMapSession openSession(Connection conn) {
}

/**
* TODO : DEPRECATED
* GetSession.
*
* @deprecated Use openSession()
*/
@Deprecated
public SqlMapSession getSession() {
log.warn(
"Use of a deprecated API detected. SqlMapClient.getSession() is deprecated. Use SqlMapClient.openSession() instead.");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2004-2022 the original author or authors.
* Copyright 2004-2025 the original author or authors.
*
* 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 @@ -143,6 +143,7 @@ public void setCustomExecutor(String sqlExecutorClass) {
*
* @deprecated
*/
@Deprecated
public int getMaxTransactions() {
return -1;
}
Expand Down Expand Up @@ -779,6 +780,7 @@ public void queryWithRowHandler(SessionScope sessionScope, String id, Object par
*
* @deprecated All paginated list features have been deprecated
*/
@Deprecated
public PaginatedList queryForPaginatedList(SessionScope sessionScope, String id, Object paramObject, int pageSize)
throws SQLException {
return new PaginatedDataList(sessionScope.getSqlMapExecutor(), id, paramObject, pageSize);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2004-2022 the original author or authors.
* Copyright 2004-2025 the original author or authors.
*
* 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 @@ -144,13 +144,15 @@ public List queryForList(String id, int skip, int max) throws SQLException {
/**
* @deprecated All paginated list features have been deprecated
*/
@Deprecated
public PaginatedList queryForPaginatedList(String id, Object paramObject, int pageSize) throws SQLException {
return delegate.queryForPaginatedList(sessionScope, id, paramObject, pageSize);
}

/**
* @deprecated All paginated list features have been deprecated
*/
@Deprecated
public PaginatedList queryForPaginatedList(String id, int pageSize) throws SQLException {
return queryForPaginatedList(id, null, pageSize);
}
Expand Down Expand Up @@ -204,15 +206,16 @@ public void setUserConnection(Connection connection) throws SQLException {
}

/**
* TODO Deprecated.
* Get User connection.
*
* @return Current connection
*
* @throws SQLException
* the SQL exception
*
* @deprecated
* @deprecated Use {@link #getCurrentConnection()} instead.
*/
@Deprecated
public Connection getUserConnection() throws SQLException {
return getCurrentConnection();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2004-2023 the original author or authors.
* Copyright 2004-2025 the original author or authors.
*
* 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 @@ -133,6 +133,7 @@ public int getIndex() {
* @deprecated This method should not be used to decide whether or not to add prepend and open text to the generated
* statement. Rather, use the methods isPrependEnabled() and someSubElementsHaveContent().
*/
@Deprecated
public boolean isFirst() {
return index == 0;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2004-2022 the original author or authors.
* Copyright 2004-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -26,6 +26,7 @@
*
* @deprecated All paginated list features have been deprecated
*/
@Deprecated
public class PaginatedDataList implements PaginatedList {

/** The sql map executor. */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2004-2022 the original author or authors.
* Copyright 2004-2025 the original author or authors.
*
* 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 @@ -52,6 +52,7 @@ public void setDataSource(DataSource ds) {
*
* @return -1
*/
@Deprecated
public int getMaximumConcurrentTransactions() {
return -1;
}
Expand All @@ -62,15 +63,17 @@ public int getMaximumConcurrentTransactions() {
* @param maximumConcurrentTransactions
* - do not use here for Spring integration
*/
@Deprecated
public void setMaximumConcurrentTransactions(int maximumConcurrentTransactions) {
}

/**
* @deprecated
*
* @param props
* - propertes
* - properties
*/
@Deprecated
public void initialize(Properties props) throws SQLException, TransactionException {
setProperties(props);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2004-2022 the original author or authors.
* Copyright 2004-2025 the original author or authors.
*
* 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 @@ -62,6 +62,7 @@ public interface TransactionConfig {
*
* @deprecated
*/
@Deprecated
int getMaximumConcurrentTransactions();

/**
Expand All @@ -72,6 +73,7 @@ public interface TransactionConfig {
*
* @deprecated
*/
@Deprecated
void setMaximumConcurrentTransactions(int maximumConcurrentTransactions);

/**
Expand Down Expand Up @@ -102,6 +104,7 @@ public interface TransactionConfig {
*
* @deprecated
*/
@Deprecated
void initialize(Properties props) throws SQLException, TransactionException;

/**
Expand Down
Loading