com.j256.ormlite.misc.JavaxPersistenceConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ormlite-core Show documentation
Show all versions of ormlite-core Show documentation
Lightweight Object Relational Model (ORM) for persisting objects to SQL databases.
package com.j256.ormlite.misc;
import java.lang.reflect.Field;
import java.sql.SQLException;
import com.j256.ormlite.db.DatabaseType;
import com.j256.ormlite.field.DatabaseFieldConfig;
/**
* Interface that allows us to load and process javax.persistance annotations only if available.
*
* @author graywatson
*/
public interface JavaxPersistenceConfigurer {
/**
* Create and return a field config from the javax.persistence annotations associated with the field argument or
* null if no annotations present.
*/
public DatabaseFieldConfig createFieldConfig(DatabaseType databaseType, Field field) throws SQLException;
/**
* Return the javax.persistence.Entity annotation name for the class argument or null if none or if there was no
* entity name.
*/
public String getEntityName(Class clazz);
}