|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.joanju.cg.db.BytecodeTable
public class BytecodeTable
Constructor Summary | |
---|---|
BytecodeTable()
|
Method Summary | |
---|---|
static void |
delete(int cuid,
int addr)
Delete bytecode (should only be one) for cuID and address. |
static void |
deleteAll(int cuid)
Delete all bytecode for cuID. |
static Bytecode |
fetch(int cuid,
int address)
This does not populate the bytecode data field. |
static java.util.ArrayList<java.lang.Integer> |
fetchAddressesFor(int cuid,
Opcode opcode)
Fetch addresses for a particular Opcode in a cu. |
static java.util.TreeMap<java.lang.Integer,Bytecode> |
fetchAll(int cuid)
Fetch all for a CU. |
static java.util.TreeMap<java.lang.Integer,Bytecode> |
fetchAllWithData(int cuid)
Fetch all for a CU, with data bytes. |
static byte[] |
fetchData(int cuid,
int address)
Fetch the data bytes[] into a Bytecode object. |
static Opcode |
fetchOpcode(int cuid,
int address)
This fetches the matching record and returns the Opcode enum. |
static java.util.TreeMap<java.lang.Integer,java.lang.Integer> |
fetchOpcodes(int cuid)
Fetch a TreeMap of a compile unit's opcodes, sorted by address. |
static Bytecode |
fetchWithData(int cuid,
int address)
Fetch the entire bytecode record, including the data in the bytes field. |
static void |
insert(Bytecode bytecode)
Store one Bytecode record. |
static void |
insert(java.util.Collection<Bytecode> list)
Store a collection of Bytecode objects into the database. |
static void |
updateData(Bytecode bytecode)
Store changes to the parameters/data byte[] for an instruction that is already in the DB. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BytecodeTable()
Method Detail |
---|
public static void delete(int cuid, int addr) throws java.sql.SQLException
java.sql.SQLException
public static void deleteAll(int cuid) throws java.sql.SQLException
java.sql.SQLException
public static java.util.ArrayList<java.lang.Integer> fetchAddressesFor(int cuid, Opcode opcode) throws java.sql.SQLException
java.sql.SQLException
public static java.util.TreeMap<java.lang.Integer,Bytecode> fetchAll(int cuid) throws java.sql.SQLException
java.sql.SQLException
public static java.util.TreeMap<java.lang.Integer,Bytecode> fetchAllWithData(int cuid) throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public static byte[] fetchData(int cuid, int address) throws java.sql.SQLException
java.sql.SQLException
public static Bytecode fetch(int cuid, int address) throws java.sql.SQLException
java.sql.SQLException
public static Opcode fetchOpcode(int cuid, int address) throws java.sql.SQLException
java.sql.SQLException
public static java.util.TreeMap<java.lang.Integer,java.lang.Integer> fetchOpcodes(int cuid) throws java.sql.SQLException
java.sql.SQLException
public static Bytecode fetchWithData(int cuid, int address) throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public static void insert(java.util.Collection<Bytecode> list) throws java.sql.SQLException, java.io.IOException
java.io.IOException
java.sql.SQLException
public static void insert(Bytecode bytecode) throws java.sql.SQLException, java.io.IOException
java.io.IOException
java.sql.SQLException
public static void updateData(Bytecode bytecode) throws java.sql.SQLException, java.io.IOException
java.io.IOException
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |