All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.akquinet.jbosscc.guttenbase.hints.impl.DefaultColumnOrderHint Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package de.akquinet.jbosscc.guttenbase.hints.impl;

import java.util.Comparator;

import de.akquinet.jbosscc.guttenbase.hints.ColumnOrderHint;
import de.akquinet.jbosscc.guttenbase.mapping.ColumnOrderComparatorFactory;
import de.akquinet.jbosscc.guttenbase.meta.ColumnMetaData;

/**
 * By default order by natural order of column names.
 * 
 * 

* © 2012 akquinet tech@spree *

* * @author M. Dahm */ public class DefaultColumnOrderHint extends ColumnOrderHint { @Override public ColumnOrderComparatorFactory getValue() { return new ColumnOrderComparatorFactory() { @Override public Comparator createComparator() { return new Comparator() { @Override public int compare(final ColumnMetaData c1, final ColumnMetaData c2) { return c1.compareTo(c2); } }; } }; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy