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

de.akquinet.jbosscc.guttenbase.export.zip.ZipTableMetaDataWriter Maven / Gradle / Ivy

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

import java.io.IOException;

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

/**
 * Write ZIP file entry containing information about a table such as name and row count.
 * 
 * 

* © 2012 akquinet tech@spree *

* * @author M. Dahm */ public class ZipTableMetaDataWriter extends ZipAbstractMetaDataWriter { public static final String TABLE_NAME = "Name"; public static final String COLUMN_COUNT = "Column-Count"; public static final String ROW_COUNT = "Row-Count"; public ZipTableMetaDataWriter writeTableMetaDataEntry(final TableMetaData tableMetaData) throws IOException { setProperty(TABLE_NAME, tableMetaData.getTableName()); setProperty(COLUMN_COUNT, String.valueOf(tableMetaData.getColumnCount())); setProperty(ROW_COUNT, String.valueOf(tableMetaData.getRowCount())); return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy