public class BOtherTypeSymbolDAO extends Object
Modifier and Type | Field and Description |
---|---|
protected Connection |
connection |
Modifier and Type | Method and Description |
---|---|
OtherTypeSymbolDTO |
get(int id)
Get a single entry from id.
|
List<OtherTypeSymbolDTO> |
get(OtherTypeSymbolDTO dto)
Get a single entry from dto.
|
List<OtherTypeSymbolDTO> |
getAll()
Get all the entries in the corresponding table.
|
protected List<Integer> |
getGeneratedKeys(ResultSet resultSet)
Get the list of generated keys(ids) from the result set.
|
int |
insert(OtherTypeSymbolDTO dto)
Insert a single entry to Index DB.
|
List<Integer> |
insertBatch(List<OtherTypeSymbolDTO> dtoList)
Insert a list of entries in Index DB.
|
void |
releaseResources(ResultSet resultSet,
Statement statement)
Release the resources.
|
protected Connection connection
public int insert(OtherTypeSymbolDTO dto)
dto
- DTO to insert in to the index DBInteger
generated IDpublic List<Integer> insertBatch(List<OtherTypeSymbolDTO> dtoList) throws LSIndexException
dtoList
- List of entries to be insertedList
List of generated IDsLSIndexException
- Exception while index accesspublic List<OtherTypeSymbolDTO> getAll() throws LSIndexException
List
List of retrieved entriesLSIndexException
- Exception while index accesspublic OtherTypeSymbolDTO get(int id) throws LSIndexException
id
- Entry ID to retrieveOtherTypeSymbolDTO
Retrieved entryLSIndexException
- Exception while retrieving entry from indexpublic List<OtherTypeSymbolDTO> get(OtherTypeSymbolDTO dto) throws LSIndexException
dto
- Entry ID to retrieveT
Retrieved entryLSIndexException
- Exception while retrieving entry from indexpublic void releaseResources(ResultSet resultSet, Statement statement)
resultSet
- Result Set to closestatement
- statement to closeCopyright © 2019 WSO2. All rights reserved.