Search in sources :

Example 16 with EntryData

use of io.jans.orm.model.EntryData in project jans by JanssenProject.

the class SqlOperationServiceImpl method getEntryDataList.

private List<EntryData> getEntryDataList(TableMapping tableMapping, ResultSet resultSet) throws EntryConvertationException, SQLException {
    List<EntryData> entryDataList = new LinkedList<>();
    List<AttributeData> attributeDataList = null;
    while (!resultSet.isLast()) {
        attributeDataList = getAttributeDataList(tableMapping, resultSet, false);
        if (attributeDataList == null) {
            break;
        }
        EntryData entryData = new EntryData(attributeDataList);
        entryDataList.add(entryData);
    }
    return entryDataList;
}
Also used : EntryData(io.jans.orm.model.EntryData) LinkedList(java.util.LinkedList) AttributeData(io.jans.orm.model.AttributeData)

Aggregations

EntryData (io.jans.orm.model.EntryData)16 MappingException (io.jans.orm.exception.MappingException)8 SearchException (io.jans.orm.exception.operation.SearchException)8 PropertyAnnotation (io.jans.orm.reflect.property.PropertyAnnotation)8 AuthenticationException (io.jans.orm.exception.AuthenticationException)6 EntryDeleteException (io.jans.orm.exception.EntryDeleteException)6 EntryPersistenceException (io.jans.orm.exception.EntryPersistenceException)6 Filter (io.jans.orm.search.filter.Filter)6 LinkedList (java.util.LinkedList)6 ParsedKey (io.jans.orm.impl.model.ParsedKey)4 AttributeData (io.jans.orm.model.AttributeData)4 ConvertedExpression (io.jans.orm.cloud.spanner.model.ConvertedExpression)3 ConvertedExpression (io.jans.orm.sql.model.ConvertedExpression)3 DateTimeParseException (java.time.format.DateTimeParseException)3 EntryConvertationException (io.jans.orm.exception.operation.EntryConvertationException)2 PagedResult (io.jans.orm.model.PagedResult)2 Duration (java.time.Duration)2 Instant (java.time.Instant)2 ArrayList (java.util.ArrayList)2 LinkedHashMap (java.util.LinkedHashMap)2