Skip to content
Snippets Groups Projects
Commit a0c3911c authored by Ellen Seifert's avatar Ellen Seifert
Browse files

database strucutre

parent 7ea09ce7
No related branches found
No related tags found
No related merge requests found
Showing
with 85 additions and 0 deletions
package de.uniwue.swp.sshtool.database;
public class ConnectionStatus {
}
package de.uniwue.swp.sshtool.database;
public class File {
}
package de.uniwue.swp.sshtool.database;
import de.uniwue.swp.sshtool.database.results.ClosureResult;
public class MySQLAccess {
public static ConnectionStatus connect(String hostname, int port, String databaseUser, String password){
throw new UnsupportedOperationException();
}
public static ClosureResult closeConnection(){
throw new UnsupportedOperationException();
}
}
package de.uniwue.swp.sshtool.database;
import de.uniwue.swp.sshtool.database.results.*;
import java.util.List;
public abstract class Operations {
public static List<Transaction> getIncompleteTransactions(String username){
throw new UnsupportedOperationException();
}
public static CancellationResult cancelTransaction(Transaction transaction){
throw new UnsupportedOperationException();
}
public static InsertionResult startTransaction(Transaction transaction){
throw new UnsupportedOperationException();
}
public static UpdateFileStatusResult updateFilesStatus(List<File> files){
throw new UnsupportedOperationException();
}
public static List<Session> getSessions(){
throw new UnsupportedOperationException();
}
public static List<Transaction> getTransactionForSession(int sessionId){
throw new UnsupportedOperationException();
}
public static List<Session> getSessionsForTransaction(int transactionId){
throw new UnsupportedOperationException();
}
public static List<File> getFilesForTransaction(int transactionId){
throw new UnsupportedOperationException();
}
}
package de.uniwue.swp.sshtool.database;
public class Session {
}
package de.uniwue.swp.sshtool.database;
public class Transaction {
}
package de.uniwue.swp.sshtool.database.results;
public class CancellationResult extends Result{
}
package de.uniwue.swp.sshtool.database.results;
public class ClosureResult extends Result{
}
package de.uniwue.swp.sshtool.database.results;
public class InsertionResult extends Result {
}
package de.uniwue.swp.sshtool.database.results;
public abstract class Result {
}
package de.uniwue.swp.sshtool.database.results;
public class UpdateFileStatusResult extends Result{
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment