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

com.jpattern.orm.classmapper.ITableMap Maven / Gradle / Ivy

There is a newer version: 3.5.1
Show newest version
package com.jpattern.orm.classmapper;

import java.util.List;

import com.jpattern.orm.crud.AColumnValueGenerator;
import com.jpattern.orm.query.LockMode;

/**
 * 
 * @author Francesco Cina
 *
 * 08/giu/2011
 */
public interface ITableMap  {

	String getSchemaName();

	String getTableName();

	String getTableNameWithSchema();

	String getDBColumnName( String javaFieldName );

	AColumnValueGenerator getGeneratorByColumnName( String columnName , boolean ignoreGenerators);

	AColumnValueGenerator getGeneratorByJavaFieldName( String javaFieldName );

	List getPrimaryKeyFieldNames();

	List getAllFieldNames();

	String getJavaFieldName(String dbColumnName);

	/**
	 * 
	 * @return true if the table has a field that represents the version of the records
	 */
	boolean isVersionable();

	/**
	 * 
	 * @return the name of the db column field that represents the record's version
	 */
	String getVersionJavaFieldName();

	LockMode getVersionLoadLockMode();

	boolean hasGeneratedField();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy