com.j256.ormlite.field
Class DatabaseFieldConfigLoader

java.lang.Object
  extended by com.j256.ormlite.field.DatabaseFieldConfigLoader

public class DatabaseFieldConfigLoader
extends Object

Database field configuration loader which reads and writes DatabaseFieldConfig from a text file/stream.

Author:
graywatson

Constructor Summary
DatabaseFieldConfigLoader()
           
 
Method Summary
static DatabaseFieldConfig fromReader(BufferedReader reader)
          Load a configuration in from a text file.
static void write(BufferedWriter writer, DatabaseFieldConfig config)
          Write the configuration to a buffered writer.
static void writeConfig(BufferedWriter writer, DatabaseFieldConfig config)
          Print the config to the writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseFieldConfigLoader

public DatabaseFieldConfigLoader()
Method Detail

fromReader

public static DatabaseFieldConfig fromReader(BufferedReader reader)
                                      throws SQLException
Load a configuration in from a text file.

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

write

public static void write(BufferedWriter writer,
                         DatabaseFieldConfig config)
                  throws SQLException
Write the configuration to a buffered writer.

Throws:
SQLException

writeConfig

public static void writeConfig(BufferedWriter writer,
                               DatabaseFieldConfig config)
                        throws IOException
Print the config to the writer.

Throws:
IOException


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