All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tentackle.dbms.rmi.ModificationLogRemoteDelegate Maven / Gradle / Ivy

/*
 * Tentackle - https://tentackle.org
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package org.tentackle.dbms.rmi;

import org.tentackle.common.Timestamp;
import org.tentackle.dbms.ModificationLog;
import org.tentackle.dbms.ModificationType;

import java.rmi.RemoteException;
import java.util.List;



/**
 * Remote delegate interface for {@link ModificationLog}.
 *
 * @author  harald
 */
public interface ModificationLogRemoteDelegate extends AbstractDbObjectRemoteDelegate {

  void updateProcessed(Timestamp processed, ModificationLog obj) throws RemoteException;

  void updateDiagnostics(Timestamp processed, String comment, ModificationLog obj) throws RemoteException;

  // @wurblet inclrmi Include --missingok .$classname/methods

  ////GEN-BEGIN:inclrmi

  ModificationLog selectFirstUnprocessed() throws RemoteException;
  ModificationLog selectFirstUnprocessedGreater(long id) throws RemoteException;
  ModificationLog selectGreaterId(long id) throws RemoteException;
  ModificationLog selectLastProcessed() throws RemoteException;
  List selectByObject(int objectClassId, long objectId) throws RemoteException;
  List selectByUserAndType(long userId, ModificationType modType) throws RemoteException;
  boolean isReferencingUser(long userId) throws RemoteException;
  boolean isReferencingObject(int objectClassId, long objectId) throws RemoteException;
  int updateByObjectTypeSerial(Timestamp processed, int objectClassId, long objectId, ModificationType modType, long serial) throws RemoteException;
  int deleteByObjectTypeSerial(int objectClassId, long objectId, ModificationType modType, long serial) throws RemoteException;
  List selectByTxId(long txId) throws RemoteException;
  int updateUnprocessedByTxId(Timestamp processed, long txId) throws RemoteException;
  int deleteByTxId(long txId) throws RemoteException;
  int deleteProcessed(Timestamp processed) throws RemoteException;
  List selectUpTo(Timestamp processed) throws RemoteException;
  List selectTxIds(long fromId, long upToId) throws RemoteException;

  ////GEN-END:inclrmi

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy