public class InputDAO
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private org.hibernate.Session |
ss |
Constructor and Description |
---|
InputDAO()
Constructor of the class - only thing to do here is to open session to DB
|
Modifier and Type | Method and Description |
---|---|
void |
closeSession()
Method for closing the session - it flushes database connection
|
void |
deleteInput(Input input)
Method providing functionality for deleting Input entry
|
Input |
findInput(java.lang.String line)
Method returning host matching search criteria
|
java.util.List<Input> |
getAllInput()
Method returning list of all Input entries
|
java.util.List<Input> |
getFilteredInput(java.lang.String pattern)
Method returning list of Input entries filtered by pattern
|
java.util.List<Input> |
getNonBlacklisted()
Method returning entries that were not blacklisted
|
java.util.List<Input> |
getNonBlacklistedGrouped()
Method returning list of entries that are grouped by pattern
|
java.lang.Boolean |
newInput(Input input)
Method providing functionality for creating new Input entry
|
void |
updateInput(Input input)
Method providing functionality for updating single input line
|
public InputDAO()
public java.util.List<Input> getAllInput()
public java.util.List<Input> getFilteredInput(java.lang.String pattern)
pattern
- Pattern name that is used as filterpublic java.util.List<Input> getNonBlacklisted()
public java.util.List<Input> getNonBlacklistedGrouped()
public Input findInput(java.lang.String line)
line
- Line that is unique identificatior of the input entrypublic java.lang.Boolean newInput(Input input)
input
- Input entry to be createdpublic void updateInput(Input input)
input
- Input entry to be updatedpublic void deleteInput(Input input)
input
- Input entry to be deletedpublic void closeSession()