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

de.akquinet.jbosscc.guttenbase.meta.impl.IndexMetaDataImpl Maven / Gradle / Ivy

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

import java.util.ArrayList;
import java.util.List;

import de.akquinet.jbosscc.guttenbase.meta.ColumnMetaData;
import de.akquinet.jbosscc.guttenbase.meta.InternalIndexMetaData;
import de.akquinet.jbosscc.guttenbase.meta.TableMetaData;

/**
 * Information about index in table.
 * 
 * 

* © 2012 akquinet tech@spree *

* * @author M. Dahm */ public class IndexMetaDataImpl implements InternalIndexMetaData { private static final long serialVersionUID = 1L; private final String _indexName; private final boolean _ascending; private final boolean _unique; private final List _columns = new ArrayList(); private final TableMetaData _tableMetaData; public IndexMetaDataImpl(final TableMetaData tableMetaData, final String indexName, final boolean ascending, final boolean unique) { assert indexName != null : "indexName != null"; assert tableMetaData != null : "tableMetaData != null"; _tableMetaData = tableMetaData; _indexName = indexName; _ascending = ascending; _unique = unique; } /** * {@inheritDoc} */ @Override public TableMetaData getTableMetaData() { return _tableMetaData; } /** * {@inheritDoc} */ @Override public String getIndexName() { return _indexName; } /** * {@inheritDoc} */ @Override public boolean isAscending() { return _ascending; } /** * {@inheritDoc} */ @Override public boolean isUnique() { return _unique; } /** * {@inheritDoc} */ @Override public List getColumnMetaData() { return new ArrayList(_columns); } @Override public void addColumn(final ColumnMetaData columnMetaData) { assert columnMetaData != null : "columnMetaData != null"; _columns.add(columnMetaData); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy