All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.j256.ormlite.misc.JavaxPersistenceConfigurer Maven / Gradle / Ivy

Go to download

Lightweight Object Relational Model (ORM) for persisting objects to SQL databases.

There is a newer version: 6.1
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy