Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sleuthkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Sleuthkit
Commits
8b5f7c86
Commit
8b5f7c86
authored
12 years ago
by
adam-m
Browse files
Options
Downloads
Patches
Plain Diff
java datamodel fix import warning, adjust queries, now using short/int not longs for types
parent
4dbfa245
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bindings/java/nbproject/project.xml
+1
-1
1 addition, 1 deletion
bindings/java/nbproject/project.xml
bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java
+6
-6
6 additions, 6 deletions
bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java
with
7 additions
and
7 deletions
bindings/java/nbproject/project.xml
+
1
−
1
View file @
8b5f7c86
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
<java-data
xmlns=
"http://www.netbeans.org/ns/freeform-project-java/3"
>
<java-data
xmlns=
"http://www.netbeans.org/ns/freeform-project-java/3"
>
<compilation-unit>
<compilation-unit>
<package-root>
src
</package-root>
<package-root>
src
</package-root>
<classpath
mode=
"compile"
>
lib;lib/diffutils-1.2.1.jar;lib/sqlite-jdbc-3.7.8-SNAPSHOT.jar
</classpath>
<classpath
mode=
"compile"
>
lib;lib/diffutils-1.2.1.jar;lib/sqlite-jdbc-3.7.8-SNAPSHOT.jar
;lib/junit-4.8.2.jar
</classpath>
<built-to>
build
</built-to>
<built-to>
build
</built-to>
<source-level>
1.6
</source-level>
<source-level>
1.6
</source-level>
</compilation-unit>
</compilation-unit>
...
...
This diff is collapsed.
Click to expand it.
bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java
+
6
−
6
View file @
8b5f7c86
...
@@ -1020,7 +1020,7 @@ private ArrayList<BlackboardArtifact> getArtifactsHelper(int artifactTypeID, Str
...
@@ -1020,7 +1020,7 @@ private ArrayList<BlackboardArtifact> getArtifactsHelper(int artifactTypeID, Str
try
{
try
{
ArrayList
<
BlackboardArtifact
>
artifacts
=
new
ArrayList
<
BlackboardArtifact
>();
ArrayList
<
BlackboardArtifact
>
artifacts
=
new
ArrayList
<
BlackboardArtifact
>();
getArtifactsHelper2St
.
set
Long
(
1
,
artifactTypeID
);
getArtifactsHelper2St
.
set
Int
(
1
,
artifactTypeID
);
ResultSet
rs
=
getArtifactsHelper2St
.
executeQuery
();
ResultSet
rs
=
getArtifactsHelper2St
.
executeQuery
();
while
(
rs
.
next
())
{
while
(
rs
.
next
())
{
...
@@ -1823,14 +1823,14 @@ List<AbstractFile> getAbstractFileChildren(Content parent, TSK_DB_FILES_TYPE_ENU
...
@@ -1823,14 +1823,14 @@ List<AbstractFile> getAbstractFileChildren(Content parent, TSK_DB_FILES_TYPE_ENU
try
{
try
{
getAbstractFileChildren
.
setLong
(
1
,
parent
.
getId
());
getAbstractFileChildren
.
setLong
(
1
,
parent
.
getId
());
getAbstractFileChildren
.
set
Long
(
2
,
type
.
getFileType
());
getAbstractFileChildren
.
set
Short
(
2
,
type
.
getFileType
());
final
ResultSet
rs
=
getAbstractFileChildren
.
executeQuery
();
final
ResultSet
rs
=
getAbstractFileChildren
.
executeQuery
();
while
(
rs
.
next
())
{
while
(
rs
.
next
())
{
if
(
type
==
TSK_DB_FILES_TYPE_ENUM
.
FS
)
{
if
(
type
==
TSK_DB_FILES_TYPE_ENUM
.
FS
)
{
FsContent
result
;
FsContent
result
;
if
(
rs
.
get
Long
(
"meta_type"
)
==
TSK_FS_META_TYPE_ENUM
.
TSK_FS_META_TYPE_DIR
.
getMetaType
())
{
if
(
rs
.
get
Short
(
"meta_type"
)
==
TSK_FS_META_TYPE_ENUM
.
TSK_FS_META_TYPE_DIR
.
getMetaType
())
{
result
=
rsHelper
.
directory
(
rs
,
null
);
result
=
rsHelper
.
directory
(
rs
,
null
);
}
else
{
}
else
{
result
=
rsHelper
.
file
(
rs
,
null
);
result
=
rsHelper
.
file
(
rs
,
null
);
...
@@ -1863,7 +1863,7 @@ List<Long> getAbstractFileChildrenIds(Content parent, TSK_DB_FILES_TYPE_ENUM typ
...
@@ -1863,7 +1863,7 @@ List<Long> getAbstractFileChildrenIds(Content parent, TSK_DB_FILES_TYPE_ENUM typ
try
{
try
{
getAbstractFileChildrenIds
.
setLong
(
1
,
parent
.
getId
());
getAbstractFileChildrenIds
.
setLong
(
1
,
parent
.
getId
());
getAbstractFileChildrenIds
.
set
Long
(
2
,
type
.
getFileType
());
getAbstractFileChildrenIds
.
set
Short
(
2
,
type
.
getFileType
());
ResultSet
rs
=
getAbstractFileChildrenIds
.
executeQuery
();
ResultSet
rs
=
getAbstractFileChildrenIds
.
executeQuery
();
...
@@ -2384,7 +2384,7 @@ Directory getDirectoryById(long id, FileSystem parentFs) throws TskCoreException
...
@@ -2384,7 +2384,7 @@ Directory getDirectoryById(long id, FileSystem parentFs) throws TskCoreException
ResultSet
rs
=
s
.
executeQuery
(
"select * from tsk_files "
ResultSet
rs
=
s
.
executeQuery
(
"select * from tsk_files "
+
"where obj_id = "
+
id
);
+
"where obj_id = "
+
id
);
if
(
rs
.
next
()
&&
rs
.
get
Long
(
"meta_type"
)
==
TSK_FS_META_TYPE_ENUM
.
TSK_FS_META_TYPE_DIR
.
getMetaType
())
{
if
(
rs
.
next
()
&&
rs
.
get
Short
(
"meta_type"
)
==
TSK_FS_META_TYPE_ENUM
.
TSK_FS_META_TYPE_DIR
.
getMetaType
())
{
temp
=
rsHelper
.
directory
(
rs
,
parentFs
);
temp
=
rsHelper
.
directory
(
rs
,
parentFs
);
}
else
{
}
else
{
rs
.
close
();
rs
.
close
();
...
@@ -2980,7 +2980,7 @@ public List<AbstractFile> resultSetToAbstractFiles(ResultSet rs) throws SQLExcep
...
@@ -2980,7 +2980,7 @@ public List<AbstractFile> resultSetToAbstractFiles(ResultSet rs) throws SQLExcep
final
short
type
=
rs
.
getShort
(
"type"
);
final
short
type
=
rs
.
getShort
(
"type"
);
if
(
type
==
TSK_DB_FILES_TYPE_ENUM
.
FS
.
getFileType
())
{
if
(
type
==
TSK_DB_FILES_TYPE_ENUM
.
FS
.
getFileType
())
{
FsContent
result
;
FsContent
result
;
if
(
rs
.
get
Long
(
"meta_type"
)
==
TSK_FS_META_TYPE_ENUM
.
TSK_FS_META_TYPE_DIR
.
getMetaType
())
{
if
(
rs
.
get
Short
(
"meta_type"
)
==
TSK_FS_META_TYPE_ENUM
.
TSK_FS_META_TYPE_DIR
.
getMetaType
())
{
result
=
rsHelper
.
directory
(
rs
,
null
);
result
=
rsHelper
.
directory
(
rs
,
null
);
}
else
{
}
else
{
result
=
rsHelper
.
file
(
rs
,
null
);
result
=
rsHelper
.
file
(
rs
,
null
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment