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

de.akquinet.jbosscc.guttenbase.hints.impl.DefaultTableOrderHint 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.TableOrderHint;
import de.akquinet.jbosscc.guttenbase.mapping.TableOrderComparatorFactory;
import de.akquinet.jbosscc.guttenbase.meta.TableMetaData;

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

* © 2012 akquinet tech@spree *

* * @author M. Dahm */ public class DefaultTableOrderHint extends TableOrderHint { @Override public TableOrderComparatorFactory getValue() { return new TableOrderComparatorFactory() { @Override public Comparator createComparator() { return new Comparator() { @Override public int compare(final TableMetaData t1, final TableMetaData t2) { return t1.compareTo(t2); } }; } }; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy