com.landawn.abacus.jdbc.dao.UncheckedNoUpdateDao Maven / Gradle / Ivy
/*
* Copyright (c) 2021, Haiyang Li.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.landawn.abacus.jdbc.dao;
import java.util.Collection;
import java.util.Map;
import com.landawn.abacus.annotation.Beta;
import com.landawn.abacus.condition.Condition;
import com.landawn.abacus.exception.UncheckedSQLException;
import com.landawn.abacus.util.SQLBuilder;
/**
* TODO
*
* @param
* @param {@code SQLBuilder} used to generate sql scripts. Only can be {@code SQLBuilder.PSC/PAC/PLC}
* @param
* @see com.landawn.abacus.condition.ConditionFactory
* @see com.landawn.abacus.condition.ConditionFactory.CF
*/
@Beta
public interface UncheckedNoUpdateDao>
extends UncheckedDao, NoUpdateDao {
/**
*
*
* @param propName
* @param propValue
* @param cond
* @return
* @throws UncheckedSQLException the unchecked SQL exception
* @throws UnsupportedOperationException
* @deprecated unsupported Operation
*/
@Override
@Deprecated
default int update(final String propName, final Object propValue, final Condition cond) throws UncheckedSQLException, UnsupportedOperationException {
throw new UnsupportedOperationException();
}
/**
*
* @param updateProps
* @param cond
* @return
* @throws UncheckedSQLException
* @throws UnsupportedOperationException
* @deprecated unsupported Operation
*/
@Deprecated
@Override
default int update(final Map updateProps, final Condition cond) throws UncheckedSQLException, UnsupportedOperationException {
throw new UnsupportedOperationException();
}
/**
* @param entity
* @param cond to verify if the record exists or not.
* @return
* @throws UncheckedSQLException
* @throws UnsupportedOperationException
* @deprecated unsupported Operation
*/
@Deprecated
@Override
default int update(final T entity, final Condition cond) throws UncheckedSQLException, UnsupportedOperationException {
throw new UnsupportedOperationException();
}
/**
*
*
* @param entity
* @param propNamesToUpdate
* @param cond
* @return
* @throws UncheckedSQLException
* @throws UnsupportedOperationException
* @deprecated unsupported Operation
*/
@Deprecated
@Override
default int update(final T entity, final Collection propNamesToUpdate, final Condition cond)
throws UncheckedSQLException, UnsupportedOperationException {
throw new UnsupportedOperationException();
}
/**
* Execute {@code add} and return the added entity if the record doesn't, otherwise, {@code update} is executed and updated db record is returned.
*
* @param entity
* @param cond to verify if the record exists or not.
* @return
* @throws UncheckedSQLException
* @throws UnsupportedOperationException
* @deprecated unsupported Operation
*/
@Deprecated
@Override
default T upsert(final T entity, final Condition cond) throws UncheckedSQLException, UnsupportedOperationException {
throw new UnsupportedOperationException();
}
/**
*
* @param cond
* @return
* @throws UncheckedSQLException
* @throws UnsupportedOperationException
* @deprecated unsupported Operation
*/
@Deprecated
@Override
default int delete(final Condition cond) throws UncheckedSQLException, UnsupportedOperationException {
throw new UnsupportedOperationException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy