com.j256.ormlite.table
Class DatabaseTableConfigLoader

java.lang.Object
  extended by com.j256.ormlite.table.DatabaseTableConfigLoader

public class DatabaseTableConfigLoader
extends Object

Database table configuration loader which reads and writes DatabaseTableConfig from a text file/stream.

Author:
graywatson

Constructor Summary
DatabaseTableConfigLoader()
           
 
Method Summary
static
<T> DatabaseTableConfig<T>
fromReader(BufferedReader reader)
          Load a table configuration in from a text-file reader.
static List<DatabaseTableConfig<?>> loadDatabaseConfigFromReader(BufferedReader reader)
          Load in a number of database configuration entries from a buffered reader.
static
<T> void
write(BufferedWriter writer, DatabaseTableConfig<T> config)
          Write the table configuration to a buffered writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseTableConfigLoader

public DatabaseTableConfigLoader()
Method Detail

loadDatabaseConfigFromReader

public static List<DatabaseTableConfig<?>> loadDatabaseConfigFromReader(BufferedReader reader)
                                                                 throws SQLException
Load in a number of database configuration entries from a buffered reader.

Throws:
SQLException

fromReader

public static <T> DatabaseTableConfig<T> fromReader(BufferedReader reader)
                                         throws SQLException
Load a table configuration in from a text-file reader.

Returns:
A config if any of the fields were set otherwise null if we reach EOF.
Throws:
SQLException

write

public static <T> void write(BufferedWriter writer,
                             DatabaseTableConfig<T> config)
                  throws SQLException
Write the table configuration to a buffered writer.

Throws:
SQLException


This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.