public class BPackageSymbolDAO extends Object
Modifier and Type | Field and Description |
---|---|
protected Connection |
connection |
Constructor and Description |
---|
BPackageSymbolDAO(Connection connection) |
Modifier and Type | Method and Description |
---|---|
List<BPackageSymbolDTO> |
get(BPackageSymbolDTO dto)
Get a single entry from dto.
|
BPackageSymbolDTO |
get(int id)
Get a single entry from id.
|
List<BPackageSymbolDTO> |
getAll()
Get all the entries in the corresponding table.
|
List<BObjectTypeSymbolDTO> |
getClientEndpoints(BPackageSymbolDTO dto)
Get list of client endpoints in the given Package.
|
List<BFunctionSymbolDTO> |
getFunctions(BPackageSymbolDTO dto,
int objectId,
boolean pvt,
boolean attached,
boolean action)
Get list of functions for the given Package criteria.
|
protected List<Integer> |
getGeneratedKeys(ResultSet resultSet)
Get the list of generated keys(ids) from the result set.
|
List<BObjectTypeSymbolDTO> |
getObjects(BPackageSymbolDTO dto,
boolean isPrivate)
Get list of object types for the given Package criteria.
|
List<OtherTypeSymbolDTO> |
getOtherTypes(BPackageSymbolDTO dto)
Get list of other types for the given Package criteria.
|
List<BRecordTypeSymbolDTO> |
getRecords(BPackageSymbolDTO dto,
boolean isPrivate)
Get list of records for the given Package criteria.
|
int |
insert(BPackageSymbolDTO dto)
Insert a single entry to Index DB.
|
List<Integer> |
insertBatch(List<BPackageSymbolDTO> dtoList)
Insert a list of entries in Index DB.
|
void |
releaseResources(ResultSet resultSet,
Statement statement)
Release the resources.
|
protected Connection connection
public BPackageSymbolDAO(Connection connection)
public int insert(BPackageSymbolDTO dto) throws LSIndexException
dto
- DTO to insert in to the index DBInteger
generated IDLSIndexException
- Exception while index accesspublic List<Integer> insertBatch(List<BPackageSymbolDTO> dtoList) throws LSIndexException
dtoList
- List of entries to be insertedList
List of generated IDsLSIndexException
- Exception while index accesspublic List<BPackageSymbolDTO> getAll() throws LSIndexException
List
List of retrieved entriesLSIndexException
- Exception while index accesspublic BPackageSymbolDTO get(int id) throws LSIndexException
id
- Entry ID to retrieveBPackageSymbolDTO
Retrieved entryLSIndexException
- Exception while retrieving entry from indexpublic List<BPackageSymbolDTO> get(BPackageSymbolDTO dto) throws LSIndexException
dto
- Entry ID to retrieveT
Retrieved entryLSIndexException
- Exception while retrieving entry from indexpublic List<BFunctionSymbolDTO> getFunctions(BPackageSymbolDTO dto, int objectId, boolean pvt, boolean attached, boolean action) throws LSIndexException
dto
- Package Symbol DTOobjectId
- Object ID which the function attached to, -1 if notpvt
- Whether private or public itemsattached
- Whether attached function or notaction
- Whether action or notList
List of retrieved functionsLSIndexException
- Exception while processing Index operation.public List<BRecordTypeSymbolDTO> getRecords(BPackageSymbolDTO dto, boolean isPrivate) throws LSIndexException
dto
- Package Symbol DTOisPrivate
- Whether private or public itemsList
List of retrieved recordsLSIndexException
- Exception while processing Index operation.public List<OtherTypeSymbolDTO> getOtherTypes(BPackageSymbolDTO dto) throws LSIndexException
dto
- Package Symbol DTOList
List of retrieved other typesLSIndexException
- Exception while processing Index operation.public List<BObjectTypeSymbolDTO> getObjects(BPackageSymbolDTO dto, boolean isPrivate) throws LSIndexException
dto
- Package Symbol DTOisPrivate
- Whether private objects or notList
List of retrieved object typesLSIndexException
- Exception while processing Index operation.public List<BObjectTypeSymbolDTO> getClientEndpoints(BPackageSymbolDTO dto) throws LSIndexException
dto
- Package Symbol DTOList
List of retrieved client objectsLSIndexException
- Exception while processing Index operation.public void releaseResources(ResultSet resultSet, Statement statement)
resultSet
- Result Set to closestatement
- statement to closeCopyright © 2019 WSO2. All rights reserved.