Package ghidra.util.database
Class SchemaBuilder
java.lang.Object
ghidra.util.database.SchemaBuilder
A builder for
Schema
Provides a more fluent syntax for creating table schemas. For example:
new Schema(1, StringField.class, "UUID",
new Class[] { StringField.class, IntField.class }, new String[] { "Name", "Flags" },
new int[] { 1 });
Can be expressed using the builder:
new SchemaBuilder().keyField("UUID", StringField.class)
.field("Name", StringField.class)
.field("Flags", IntField.class, true)
.build();
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()intstatic intgetColumnIndex(Schema schema, String name) static int[]toIntArray(List<Integer> list) version(int version)
-
Constructor Details
-
SchemaBuilder
public SchemaBuilder()
-
-
Method Details
-
toIntArray
-
getColumnIndex
-
version
-
keyField
-
field
-
field
-
fieldCount
public int fieldCount() -
build
-