com.j256.ormlite.field
Class DataPersisterManager

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

public class DataPersisterManager
extends Object

Class used to manage the various data types used by the system. The bulk of the data types come from the DataType enumerated fields although you can also register your own here using the registerDataPersisters(DataPersister...) method.

Author:
graywatson

Constructor Summary
DataPersisterManager()
           
 
Method Summary
static void clear()
          Remove any previously persisters that were registered with registerDataPersisters(DataPersister...).
static DataPersister lookupForField(Field field)
          Lookup the data-type associated with the class.
static void registerDataPersisters(DataPersister... dataPersisters)
          Register a data type with the manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataPersisterManager

public DataPersisterManager()
Method Detail

registerDataPersisters

public static void registerDataPersisters(DataPersister... dataPersisters)
Register a data type with the manager.


clear

public static void clear()
Remove any previously persisters that were registered with registerDataPersisters(DataPersister...).


lookupForField

public static DataPersister lookupForField(Field field)
Lookup the data-type associated with the class.

Returns:
The associated data-type interface or null if none found.


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