| java.lang.Object org.apache.derby.vti.VTITemplate org.apache.derby.diag.LockTable
LockTable | public class LockTable extends VTITemplate implements VTICosting(Code) | | LockTable is a virtual table that shows all locks currently held in
the database.
This virtual table can be invoked by calling it directly
select * from SYSCS_DIAG.LOCK_TABLE
The LockTable virtual table takes a snap shot of the lock table while
the system is in flux, so it is possible that some locks may be in
transition state while the snap shot is taken. We choose to do this rather
then impose extranous timing restrictions so that the use of this tool will
not alter the normal timing and flow of execution in the application.
The LockTable virtual table has the following columns:
- XID varchar(15) - not nullable. The transaction id, this can be joined with the
TransactionTable virtual table's XID.
- TYPE varchar(5) - nullable. The type of lock, ROW, TABLE, or LATCH
- MODE varchar(4) - not nullable. The mode of the lock, "S", "U", "X", "IS", "IX".
- S is shared lock (N/A to Latch)
- U is update lock (N/A to Latch)
- X is exclusive lock
- IS is intent shared lock (N/A to Latch or Row lock)
- IX is intent exclusive lock (N/A to Latch or Row lock)
- TABLENAME varchar(128) - not nullable. The name of the base table the lock is for
- LOCKNAME varchar(20) - not nullable. The name of the lock
- STATE varchar(5) - nullable. GRANT or WAIT
- TABLETYPE varchar(9) - not nullable. 'T' for user table, 'S' for system table
- LOCKCOUNT varchar(5) - not nullable. Internal lock count.
- INDEXNAME varchar(128) - normally null. If non-null, a lock is held on
the index, this can only happen if this is not a user transaction.
|
Constructor Summary | |
public | LockTable() The normal way of instantiating a LockTable, equivalent to
LockTable(org.apache.derby.diag.LockTable->TABLE_AND_ROWLOCK).
Only shows row and table lock and not latches. | public | LockTable(int flag) This call is intrusive and should only be used under the supervision of
technical support. |
ALL | final public static int ALL(Code) | | return all locks and latches
|
LATCH | final public static int LATCH(Code) | | return only latches
|
TABLE_AND_ROWLOCK | final public static int TABLE_AND_ROWLOCK(Code) | | return only table and row locks
|
LockTable | public LockTable()(Code) | | The normal way of instantiating a LockTable, equivalent to
LockTable(org.apache.derby.diag.LockTable->TABLE_AND_ROWLOCK).
Only shows row and table lock and not latches. Latches are generally
held for very short duration and are not of interest to Cloudscape
users. Only under abnormal circumstances will one be interested in
looking at latches.
|
LockTable | public LockTable(int flag)(Code) | | This call is intrusive and should only be used under the supervision of
technical support. Create an instance of the lock table which
has transient latches as well as locks.
|
Methods inherited from org.apache.derby.vti.VTITemplate | public boolean absolute(int row) throws SQLException(Code)(Java Doc) public void afterLast() throws SQLException(Code)(Java Doc) public void beforeFirst() throws SQLException(Code)(Java Doc) public void cancelRowUpdates() throws SQLException(Code)(Java Doc) public void clearWarnings() throws SQLException(Code)(Java Doc) public void deleteRow() throws SQLException(Code)(Java Doc) public int findColumn(String columnName) throws SQLException(Code)(Java Doc) public boolean first() throws SQLException(Code)(Java Doc) public Array getArray(int i) throws SQLException(Code)(Java Doc) public Array getArray(String colName) throws SQLException(Code)(Java Doc) public java.io.InputStream getAsciiStream(int columnIndex) throws SQLException(Code)(Java Doc) public java.io.InputStream getAsciiStream(String columnName) throws SQLException(Code)(Java Doc) public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException(Code)(Java Doc) public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException(Code)(Java Doc) public BigDecimal getBigDecimal(int columnIndex) throws SQLException(Code)(Java Doc) public BigDecimal getBigDecimal(String columnName) throws SQLException(Code)(Java Doc) public java.io.InputStream getBinaryStream(int columnIndex) throws SQLException(Code)(Java Doc) public java.io.InputStream getBinaryStream(String columnName) throws SQLException(Code)(Java Doc) public Blob getBlob(int i) throws SQLException(Code)(Java Doc) public Blob getBlob(String colName) throws SQLException(Code)(Java Doc) public boolean getBoolean(int columnIndex) throws SQLException(Code)(Java Doc) public boolean getBoolean(String columnName) throws SQLException(Code)(Java Doc) public byte getByte(int columnIndex) throws SQLException(Code)(Java Doc) public byte getByte(String columnName) throws SQLException(Code)(Java Doc) public byte[] getBytes(int columnIndex) throws SQLException(Code)(Java Doc) public byte[] getBytes(String columnName) throws SQLException(Code)(Java Doc) public java.io.Reader getCharacterStream(int columnIndex) throws SQLException(Code)(Java Doc) public java.io.Reader getCharacterStream(String columnName) throws SQLException(Code)(Java Doc) public Clob getClob(int i) throws SQLException(Code)(Java Doc) public Clob getClob(String colName) throws SQLException(Code)(Java Doc) public int getConcurrency() throws SQLException(Code)(Java Doc) public String getCursorName() throws SQLException(Code)(Java Doc) public java.sql.Date getDate(int columnIndex) throws SQLException(Code)(Java Doc) public java.sql.Date getDate(String columnName) throws SQLException(Code)(Java Doc) public java.sql.Date getDate(int columnIndex, Calendar cal) throws SQLException(Code)(Java Doc) public java.sql.Date getDate(String columnName, Calendar cal) throws SQLException(Code)(Java Doc) public double getDouble(int columnIndex) throws SQLException(Code)(Java Doc) public double getDouble(String columnName) throws SQLException(Code)(Java Doc) public int getFetchDirection() throws SQLException(Code)(Java Doc) public int getFetchSize() throws SQLException(Code)(Java Doc) public float getFloat(int columnIndex) throws SQLException(Code)(Java Doc) public float getFloat(String columnName) throws SQLException(Code)(Java Doc) public int getInt(int columnIndex) throws SQLException(Code)(Java Doc) public int getInt(String columnName) throws SQLException(Code)(Java Doc) public long getLong(int columnIndex) throws SQLException(Code)(Java Doc) public long getLong(String columnName) throws SQLException(Code)(Java Doc) public Object getObject(int columnIndex) throws SQLException(Code)(Java Doc) public Object getObject(String columnName) throws SQLException(Code)(Java Doc) public Object getObject(int i, java.util.Map map) throws SQLException(Code)(Java Doc) public Object getObject(String colName, java.util.Map map) throws SQLException(Code)(Java Doc) public Ref getRef(int i) throws SQLException(Code)(Java Doc) public Ref getRef(String colName) throws SQLException(Code)(Java Doc) public int getRow() throws SQLException(Code)(Java Doc) public short getShort(int columnIndex) throws SQLException(Code)(Java Doc) public short getShort(String columnName) throws SQLException(Code)(Java Doc) public Statement getStatement() throws SQLException(Code)(Java Doc) public String getString(int columnIndex) throws SQLException(Code)(Java Doc) public String getString(String columnName) throws SQLException(Code)(Java Doc) public java.sql.Time getTime(int columnIndex) throws SQLException(Code)(Java Doc) public java.sql.Time getTime(String columnName) throws SQLException(Code)(Java Doc) public java.sql.Time getTime(int columnIndex, Calendar cal) throws SQLException(Code)(Java Doc) public java.sql.Time getTime(String columnName, Calendar cal) throws SQLException(Code)(Java Doc) public java.sql.Timestamp getTimestamp(int columnIndex) throws SQLException(Code)(Java Doc) public java.sql.Timestamp getTimestamp(String columnName) throws SQLException(Code)(Java Doc) public java.sql.Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException(Code)(Java Doc) public java.sql.Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException(Code)(Java Doc) public int getType() throws SQLException(Code)(Java Doc) public URL getURL(int columnIndex) throws SQLException(Code)(Java Doc) public URL getURL(String columnName) throws SQLException(Code)(Java Doc) public java.io.InputStream getUnicodeStream(int columnIndex) throws SQLException(Code)(Java Doc) public java.io.InputStream getUnicodeStream(String columnName) throws SQLException(Code)(Java Doc) public SQLWarning getWarnings() throws SQLException(Code)(Java Doc) public void insertRow() throws SQLException(Code)(Java Doc) public boolean isAfterLast() throws SQLException(Code)(Java Doc) public boolean isBeforeFirst() throws SQLException(Code)(Java Doc) public boolean isFirst() throws SQLException(Code)(Java Doc) public boolean isLast() throws SQLException(Code)(Java Doc) public boolean last() throws SQLException(Code)(Java Doc) public void moveToCurrentRow() throws SQLException(Code)(Java Doc) public void moveToInsertRow() throws SQLException(Code)(Java Doc) public boolean previous() throws SQLException(Code)(Java Doc) public void refreshRow() throws SQLException(Code)(Java Doc) public boolean relative(int rows) throws SQLException(Code)(Java Doc) public boolean rowDeleted() throws SQLException(Code)(Java Doc) public boolean rowInserted() throws SQLException(Code)(Java Doc) public boolean rowUpdated() throws SQLException(Code)(Java Doc) public void setFetchDirection(int direction) throws SQLException(Code)(Java Doc) public void setFetchSize(int rows) throws SQLException(Code)(Java Doc) public void updateArray(int columnIndex, Array x) throws SQLException(Code)(Java Doc) public void updateArray(String columnName, Array x) throws SQLException(Code)(Java Doc) public void updateAsciiStream(int columnIndex, java.io.InputStream x, int length) throws SQLException(Code)(Java Doc) public void updateAsciiStream(String columnName, java.io.InputStream x, int length) throws SQLException(Code)(Java Doc) public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException(Code)(Java Doc) public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException(Code)(Java Doc) public void updateBinaryStream(int columnIndex, java.io.InputStream x, int length) throws SQLException(Code)(Java Doc) public void updateBinaryStream(String columnName, java.io.InputStream x, int length) throws SQLException(Code)(Java Doc) public void updateBlob(int columnIndex, Blob x) throws SQLException(Code)(Java Doc) public void updateBlob(String columnName, Blob x) throws SQLException(Code)(Java Doc) public void updateBoolean(int columnIndex, boolean x) throws SQLException(Code)(Java Doc) public void updateBoolean(String columnName, boolean x) throws SQLException(Code)(Java Doc) public void updateByte(int columnIndex, byte x) throws SQLException(Code)(Java Doc) public void updateByte(String columnName, byte x) throws SQLException(Code)(Java Doc) public void updateBytes(int columnIndex, byte[] x) throws SQLException(Code)(Java Doc) public void updateBytes(String columnName, byte[] x) throws SQLException(Code)(Java Doc) public void updateCharacterStream(int columnIndex, java.io.Reader x, int length) throws SQLException(Code)(Java Doc) public void updateCharacterStream(String columnName, java.io.Reader x, int length) throws SQLException(Code)(Java Doc) public void updateClob(int columnIndex, Clob x) throws SQLException(Code)(Java Doc) public void updateClob(String columnName, Clob x) throws SQLException(Code)(Java Doc) public void updateDate(int columnIndex, java.sql.Date x) throws SQLException(Code)(Java Doc) public void updateDate(String columnName, java.sql.Date x) throws SQLException(Code)(Java Doc) public void updateDouble(int columnIndex, double x) throws SQLException(Code)(Java Doc) public void updateDouble(String columnName, double x) throws SQLException(Code)(Java Doc) public void updateFloat(int columnIndex, float x) throws SQLException(Code)(Java Doc) public void updateFloat(String columnName, float x) throws SQLException(Code)(Java Doc) public void updateInt(int columnIndex, int x) throws SQLException(Code)(Java Doc) public void updateInt(String columnName, int x) throws SQLException(Code)(Java Doc) public void updateLong(int columnIndex, long x) throws SQLException(Code)(Java Doc) public void updateLong(String columnName, long x) throws SQLException(Code)(Java Doc) public void updateNull(int columnIndex) throws SQLException(Code)(Java Doc) public void updateNull(String columnName) throws SQLException(Code)(Java Doc) public void updateObject(int columnIndex, Object x, int scale) throws SQLException(Code)(Java Doc) public void updateObject(int columnIndex, Object x) throws SQLException(Code)(Java Doc) public void updateObject(String columnName, Object x, int scale) throws SQLException(Code)(Java Doc) public void updateObject(String columnName, Object x) throws SQLException(Code)(Java Doc) public void updateRef(int columnIndex, Ref x) throws SQLException(Code)(Java Doc) public void updateRef(String columnName, Ref x) throws SQLException(Code)(Java Doc) public void updateRow() throws SQLException(Code)(Java Doc) public void updateShort(int columnIndex, short x) throws SQLException(Code)(Java Doc) public void updateShort(String columnName, short x) throws SQLException(Code)(Java Doc) public void updateString(int columnIndex, String x) throws SQLException(Code)(Java Doc) public void updateString(String columnName, String x) throws SQLException(Code)(Java Doc) public void updateTime(int columnIndex, java.sql.Time x) throws SQLException(Code)(Java Doc) public void updateTime(String columnName, java.sql.Time x) throws SQLException(Code)(Java Doc) public void updateTimestamp(int columnIndex, java.sql.Timestamp x) throws SQLException(Code)(Java Doc) public void updateTimestamp(String columnName, java.sql.Timestamp x) throws SQLException(Code)(Java Doc) public boolean wasNull() throws SQLException(Code)(Java Doc)
|
|
|