public abstract class BaseServiceImpl<T> extends SQLServiceImpl implements BaseService<T>
objectSQLManager, resultSetHandler, serviceClass, thisClass| Constructor and Description |
|---|
BaseServiceImpl() |
BaseServiceImpl(DataSource dataSource) |
BaseServiceImpl(ObjectSQLManager objectSQLManager) |
batchInserts, batchInserts, batchInserts, batchInserts, batchUpdates, batchUpdates, batchUpdates, batchUpdates, batchUpdates, batchUpdates, batchUpdates, batchUpdates, changeDataSource, closeConnection, columns, createOrUpdate, createOrUpdate, currentDatabaseName, currentDatabaseType, drop, execute, executeBatch, executeBatch, getConnection, getDatabaseDateTime, getDatabaseNanoTime, getDataSource, getObjectSQLManager, getOptions, getResultSetHandler, getSchema, getTableName, query, queryCount, queryMap, queryMapList, queryObject, queryObjectList, queryResult, setObjectSQLManager, setResultSetHandler, setSchema, table, table, tableColumns, tableColumns, tableColumnsClass, tableColumnsClass, tableExists, tables, tables, txCommit, txCommit, txCommit, txCommit, txCommit, txCommitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetObjectSQLManagerbatchInserts, batchInserts, batchInserts, batchInserts, batchUpdates, batchUpdates, batchUpdates, batchUpdates, batchUpdates, batchUpdates, batchUpdates, batchUpdates, changeDataSource, columns, createOrUpdate, createOrUpdate, currentDatabaseName, currentDatabaseType, drop, execute, executeBatch, executeBatch, getConnection, getDatabaseDateTime, getDatabaseNanoTime, getDataSource, getObjectSQLManager, getOptions, getSchema, getTableName, query, queryCount, queryMap, queryMapList, queryObject, queryObjectList, queryResult, setSchema, table, table, tableColumns, tableColumns, tableColumnsClass, tableColumnsClass, tableExists, tables, tables, txCommit, txCommit, txCommit, txCommit, txCommit, txCommitpublic BaseServiceImpl()
public BaseServiceImpl(ObjectSQLManager objectSQLManager)
public BaseServiceImpl(DataSource dataSource)
public Class getBaseClass()
public List<DefaultListener> getDefaultListeners()
getDefaultListeners in interface BaseService<T>public void setDefaultListeners(List<DefaultListener> defaultListeners)
setDefaultListeners in interface BaseService<T>public List<ChangeListener> getChangeListeners()
getChangeListeners in interface BaseService<T>public void setChangeListeners(List<ChangeListener> changeListeners)
setChangeListeners in interface BaseService<T>public List<ChangedListener> getChangedListeners()
getChangedListeners in interface BaseService<T>public void setChangedListeners(List<ChangedListener> changedListeners)
setChangedListeners in interface BaseService<T>public List<QueryListener> getQueryListeners()
getQueryListeners in interface BaseService<T>public void setQueryListeners(List<QueryListener> queryListeners)
setQueryListeners in interface BaseService<T>public void copyAllListeners(BaseService service)
copyAllListeners in interface BaseService<T>public void addDefaultListener(DefaultListener listener)
addDefaultListener in interface BaseService<T>public void removeDefaultListener(DefaultListener listener)
removeDefaultListener in interface BaseService<T>public void addChangeListener(ChangeListener listener)
addChangeListener in interface BaseService<T>public void removeChangeListener(ChangeListener listener)
removeChangeListener in interface BaseService<T>public void addChangedListener(ChangedListener listener)
addChangedListener in interface BaseService<T>public void removeChangedListener(ChangedListener listener)
removeChangedListener in interface BaseService<T>public void addQueryListener(QueryListener listener)
addQueryListener in interface BaseService<T>public void removeQueryListener(QueryListener listener)
removeQueryListener in interface BaseService<T>public void triggerDefaultListener(ORMType type, T t)
triggerDefaultListener in interface BaseService<T>public void changed(ORMType ormType, RowObject rowObject)
changed in interface ServiceChangedListener<T>public void triggerChangeListener(ORMType ormType, T original, T t)
triggerChangeListener in interface BaseService<T>public void triggerChangeListener(ORMType ormType, T original, T t, boolean updateNull, String[] nullColumns)
triggerChangeListener in interface BaseService<T>public void triggerChangedListenerImmediately(ORMType ormType, T original, T current)
triggerChangedListenerImmediately in interface BaseService<T>public void triggerChangedListenerImmediately(ORMType ormType, T original, T current, boolean updateNull, String[] nullColumns)
triggerChangedListenerImmediately in interface BaseService<T>public void triggerChangedListenerWhenTransactionFinish(ServiceChangedListener serviceChangedListener, ORMType ormType, T original, T current)
triggerChangedListenerWhenTransactionFinish in interface BaseService<T>public void triggerChangedListenerWhenTransactionFinish(ServiceChangedListener serviceChangedListener, ORMType ormType, T original, T current, boolean updateNull, String[] nullColumns)
triggerChangedListenerWhenTransactionFinish in interface BaseService<T>public void beforeTriggerChangedListener(ORMType ormType, T original, T t, Connection connection)
public void beforeTriggerChangedListener(ORMType ormType, T original, T t, boolean updateNull, String[] nullColumns, Connection connection)
public boolean insert(T t)
insert in interface BaseService<T>public boolean insertWithoutListener(T t)
insertWithoutListener in interface BaseService<T>public boolean update(T t)
update in interface BaseService<T>public boolean updateWithoutListener(T t)
updateWithoutListener in interface BaseService<T>public boolean updateWithoutListener(T t, boolean updateNull)
updateWithoutListener in interface BaseService<T>public boolean update(T t, boolean updateNull)
update in interface BaseService<T>public boolean updateNull(T t, String... forNullColumns)
updateNull in interface BaseService<T>public boolean updateNullWithoutListener(T t, String... forNullColumns)
updateNullWithoutListener in interface BaseService<T>public <P,R> boolean updateLambdaNull(T t, LambdaQuery<P,R>... lambdaQueries)
updateLambdaNull in interface BaseService<T>public <P,R> boolean updateLambdaNullWithoutListener(T t, LambdaQuery<P,R>... lambdaQueries)
updateLambdaNullWithoutListener in interface BaseService<T>public boolean updates(T t, Expression... expressions)
updates in interface BaseService<T>public boolean updatesWithoutListener(T t, Expression... expressions)
updatesWithoutListener in interface BaseService<T>public boolean updatesNull(T t, Expression... expressions)
updatesNull in interface BaseService<T>public boolean updatesNullWithoutListener(T t, Expression... expressions)
updatesNullWithoutListener in interface BaseService<T>public boolean updatesNull(T t, String[] forNullColumns, Expression... expressions)
updatesNull in interface BaseService<T>public boolean updatesNullWithoutListener(T t, String[] forNullColumns, Expression... expressions)
updatesNullWithoutListener in interface BaseService<T>public <P,R> boolean updatesLambdaNull(T t, LambdaQuery<P,R>[] lambdaQueries, Expression... expressions)
updatesLambdaNull in interface BaseService<T>public <P,R> boolean updatesLambdaNullWithoutListener(T t, LambdaQuery<P,R>[] lambdaQueries, Expression... expressions)
updatesLambdaNullWithoutListener in interface BaseService<T>public boolean updates(T t, Condition condition)
updates in interface BaseService<T>public boolean updatesWithoutListener(T t, Condition condition)
updatesWithoutListener in interface BaseService<T>public boolean updatesNull(T t, Condition condition)
updatesNull in interface BaseService<T>public boolean updatesNullWithoutListener(T t, Condition condition)
updatesNullWithoutListener in interface BaseService<T>public boolean updatesNull(T t, String[] forNullColumns, Condition condition)
updatesNull in interface BaseService<T>public boolean updatesNullWithoutListener(T t, String[] forNullColumns, Condition condition)
updatesNullWithoutListener in interface BaseService<T>public <P,R> boolean updatesLambdaNull(T t, LambdaQuery<P,R>[] lambdaQueries, Condition condition)
updatesLambdaNull in interface BaseService<T>public <P,R> boolean updatesLambdaNullWithoutListener(T t, LambdaQuery<P,R>[] lambdaQueries, Condition condition)
updatesLambdaNullWithoutListener in interface BaseService<T>public boolean updatesWithoutListener(Expression[] values, Expression[] conditions)
updatesWithoutListener in interface BaseService<T>public boolean delete(Object t)
delete in interface BaseService<T>public boolean deleteWithoutListener(Object object)
deleteWithoutListener in interface BaseService<T>public boolean deletes(Condition condition)
deletes in interface BaseService<T>public boolean deletesWithoutListener(Condition condition)
deletesWithoutListener in interface BaseService<T>public boolean deletes(Expression... expressions)
deletes in interface BaseService<T>public boolean deletesWithoutListener(Expression... expressions)
deletesWithoutListener in interface BaseService<T>public List<T> list()
list in interface BaseService<T>public List<T> listNames(String... names)
listNames in interface BaseService<T>public List<T> list(int start, int size)
list in interface BaseService<T>public List<T> list(Expression... expressions)
list in interface BaseService<T>public List<T> list(Condition condition, MultiOrder multiOrder)
list in interface BaseService<T>public List<T> list(Condition condition, MultiOrder multiOrder, Integer limit)
list in interface BaseService<T>public List<T> list(Names names, Condition condition)
list in interface BaseService<T>public List<T> list(Names names, Condition condition, MultiOrder multiOrder)
list in interface BaseService<T>public List<T> list(Names names, Condition condition, MultiOrder multiOrder, Integer limit)
list in interface BaseService<T>public boolean exists(Condition condition)
exists in interface BaseService<T>public boolean exists(Expression... expressions)
exists in interface BaseService<T>public int count(Expression... expressions)
count in interface BaseService<T>public <S> S get(Object object)
get in interface BaseService<T>public <S> List<S> query(IQuery q)
query in interface BaseService<T>public <S> List<S> query(IQuery q, int size)
query in interface BaseService<T>public <S> List<S> query(IQuery q, int offset, int size)
query in interface BaseService<T>public void query(IQuery query, ResultSetProcessHandler resultSetHandler)
query in interface BaseService<T>public int queryCount(IQuery q)
queryCount in interface BaseService<T>public <S> Pageable<S> queryPage(IQuery query, Pageable page)
queryPage in interface BaseService<T>public String tableName() throws ORMException
tableName in interface BaseService<T>ORMExceptionpublic void createOrUpdate()
throws ORMException
createOrUpdate in interface BaseService<T>ORMExceptionCopyright © 2024. All rights reserved.