de.smartics.properties.config.transfer.templatestream
Class TableDescriptor.Builder

Package class diagram package TableDescriptor.Builder
java.lang.Object
  extended by de.smartics.properties.config.transfer.templatestream.TableDescriptor.Builder
Enclosing class:
TableDescriptor

public static final class TableDescriptor.Builder
     
     
extends Object

The builder of descriptor instances.


Constructor Summary
TableDescriptor.Builder()
           
 
Method Summary
 TableDescriptor build()
          Builds an instance of the descriptor.
 void setConfigColumn(String configColumn)
          Sets the name of the optional configuration key column.
 void setNameColumn(String nameColumn)
          Sets the name of the property name column.
 void setTable(String table)
          Sets the name of the configuration table.
 void setValueColumn(String valueColumn)
          Sets the name of the property value column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableDescriptor.Builder

public TableDescriptor.Builder()
Method Detail

setTable

public void setTable(String table)
              throws NullPointerException,
                     IllegalArgumentException
Sets the name of the configuration table.

Parameters:
table - the name of the configuration table.
Throws:
NullPointerException - if table is null.
IllegalArgumentException - if table is blank.

setConfigColumn

public void setConfigColumn(String configColumn)
                     throws NullPointerException,
                            IllegalArgumentException
Sets the name of the optional configuration key column.

Parameters:
configColumn - the name of the optional configuration key column.
Throws:
NullPointerException - if configColumn is null .
IllegalArgumentException - if configColumn is blank.

setNameColumn

public void setNameColumn(String nameColumn)
                   throws NullPointerException,
                          IllegalArgumentException
Sets the name of the property name column.

Parameters:
nameColumn - the name of the property name column.
Throws:
NullPointerException - if nameColumn is null.
IllegalArgumentException - if nameColumn is blank.

setValueColumn

public void setValueColumn(String valueColumn)
                    throws NullPointerException,
                           IllegalArgumentException
Sets the name of the property value column.

Parameters:
valueColumn - the name of the property value column.
Throws:
NullPointerException - if valueColumn is null.
IllegalArgumentException - if valueColumn is blank.

build

public TableDescriptor build()
Builds an instance of the descriptor.

Returns:
an instance of the descriptor.


Copyright © 2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.