com.j256.ormlite.table
Interface ObjectFactory<T>


public interface ObjectFactory<T>

Interface that allows you to inject a factory class that creates objects of this class. You sert it on the Dao using: Dao.setObjectFactory(ObjectFactory).

Author:
graywatson

Method Summary
 T createObject(Constructor<T> construcor, Class<T> dataClass)
          Construct and return an object of a certain class.
 

Method Detail

createObject

T createObject(Constructor<T> construcor,
               Class<T> dataClass)
               throws SQLException
Construct and return an object of a certain class.

Throws:
SQLException - if there was a problem creating the object.


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