Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
InstanceTableCallback.java
Go to the documentation of this file.
1 /*
2  * Central Repository
3  *
4  * Copyright 2015-2017 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.centralrepository.datamodel;
20 
21 import java.sql.ResultSet;
22 import java.sql.SQLException;
23 
29 public interface InstanceTableCallback {
30 
36  void process(ResultSet resultSet);
37 
38 
45  static int getId(ResultSet resultSet) throws SQLException{
46  return resultSet.getInt("id");
47  }
48 
55  static int getCaseId(ResultSet resultSet) throws SQLException {
56  return resultSet.getInt("case_id");
57  }
58 
65  static int getDataSourceId(ResultSet resultSet) throws SQLException {
66  return resultSet.getInt("data_source_id");
67  }
68 
75  static String getValue(ResultSet resultSet) throws SQLException {
76  return resultSet.getString("value");
77  }
78 
85  static String getFilePath(ResultSet resultSet) throws SQLException {
86  return resultSet.getString("file_path");
87  }
88 
95  static int getKnownStatus(ResultSet resultSet) throws SQLException {
96  return resultSet.getInt("known_status");
97  }
98 
105  static String getComment(ResultSet resultSet) throws SQLException {
106  return resultSet.getString("comment");
107  }
108 
109  static long getFileObjectId(ResultSet resultSet) throws SQLException {
110  return resultSet.getLong("file_obj_id");
111  }
112 }

Copyright © 2012-2022 Basis Technology. Generated on: Thu Dec 8 2022
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.