public class UserCredentialsConverter extends Object implements Convertible<UserEntity>
| Constructor and Description |
|---|
UserCredentialsConverter() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getAdditionalQueriesToInitialise()
Method allows providing additional queries that needs to be initialised
in
DataRepository for future use |
Optional<String> |
getMainQuery()
Principal query used to retrieve data from source repository.
|
void |
initialise(Converter.ConverterProperties properties)
Method is responsible for initialising converter based on ConverterProperties.
|
Optional<UserEntity> |
processResultSet(ResultSet rs)
|
boolean |
storeEntity(UserEntity entity)
Method stores
RowEntity in the destination repositories. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdependsOn, getParentBeanpublic void initialise(Converter.ConverterProperties properties)
Convertibleinitialise in interface Convertible<UserEntity>properties - various properties allowing determine appropriate set
of queries and applied processing.public Optional<String> getMainQuery()
ConvertiblegetMainQuery in interface Convertible<UserEntity>public Optional<UserEntity> processResultSet(ResultSet rs) throws Exception
ConvertibleprocessResultSet in interface Convertible<UserEntity>rs - result set to be processedRowEntity with all data from single RowException - indicates any problem with processing of the datapublic boolean storeEntity(UserEntity entity) throws Exception
ConvertibleRowEntity in the destination repositories.storeEntity in interface Convertible<UserEntity>entity - RowEntity to be storedException - indicates any problem with storing of the RowEntitypublic Map<String,String> getAdditionalQueriesToInitialise()
ConvertibleDataRepository for future usegetAdditionalQueriesToInitialise in interface Convertible<UserEntity>Map with key-value pair of query ID and actual query to be initialisedCopyright © 2004–2019 "Tigase, Inc.". All rights reserved.