info.archinnov.achilles.compound.ThriftCompoundKeyValidator Maven / Gradle / Ivy
package info.archinnov.achilles.compound;
import static info.archinnov.achilles.type.OrderingMode.ASCENDING;
import info.archinnov.achilles.entity.metadata.PropertyMeta;
import info.archinnov.achilles.type.OrderingMode;
import info.archinnov.achilles.validation.Validator;
import java.util.Arrays;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* ThriftCompoundKeyValidator
*
* @author DuyHai DOAN
*
*/
public class ThriftCompoundKeyValidator extends CompoundKeyValidator {
private static final Logger log = LoggerFactory.getLogger(ThriftCompoundKeyValidator.class);
public void validateBoundsForQuery(PropertyMeta, ?> propertyMeta, K start, K end,
OrderingMode ordering)
{
log.trace("Check composites {} / {} with respect to ordering mode {}", start, end,
ordering.name());
if (start != null && end != null)
{
if (propertyMeta.isEmbeddedId())
{
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy