Package org.zaproxy.zap.db.sql
Class SqlTableTag
- java.lang.Object
-
- org.zaproxy.zap.db.sql.SqlAbstractTable
-
- org.zaproxy.zap.db.sql.SqlTableTag
-
- All Implemented Interfaces:
DatabaseListener
,TableTag
public class SqlTableTag extends SqlAbstractTable implements TableTag
-
-
Constructor Summary
Constructors Constructor Description SqlTableTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(long historyId, java.lang.String tag)
void
deleteTagsForHistoryID(long historyId)
java.util.List<java.lang.String>
getAllTags()
java.util.List<RecordTag>
getTagsForHistoryID(long historyId)
RecordTag
insert(long historyId, java.lang.String tag)
RecordTag
read(long tagId)
protected void
reconnect(java.sql.Connection conn)
-
Methods inherited from class org.zaproxy.zap.db.sql.SqlAbstractTable
databaseOpen, getConnection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.parosproxy.paros.db.DatabaseListener
databaseOpen
-
-
-
-
Method Detail
-
reconnect
protected void reconnect(java.sql.Connection conn) throws DatabaseException
- Specified by:
reconnect
in classSqlAbstractTable
- Throws:
DatabaseException
-
read
public RecordTag read(long tagId) throws DatabaseException
- Specified by:
read
in interfaceTableTag
- Throws:
DatabaseException
-
insert
public RecordTag insert(long historyId, java.lang.String tag) throws DatabaseException
- Specified by:
insert
in interfaceTableTag
- Throws:
DatabaseException
-
delete
public void delete(long historyId, java.lang.String tag) throws DatabaseException
- Specified by:
delete
in interfaceTableTag
- Throws:
DatabaseException
-
getTagsForHistoryID
public java.util.List<RecordTag> getTagsForHistoryID(long historyId) throws DatabaseException
- Specified by:
getTagsForHistoryID
in interfaceTableTag
- Throws:
DatabaseException
-
getAllTags
public java.util.List<java.lang.String> getAllTags() throws DatabaseException
- Specified by:
getAllTags
in interfaceTableTag
- Throws:
DatabaseException
-
deleteTagsForHistoryID
public void deleteTagsForHistoryID(long historyId) throws DatabaseException
- Specified by:
deleteTagsForHistoryID
in interfaceTableTag
- Throws:
DatabaseException
-
-