com.jpattern.orm.generator.IOrmPersistor Maven / Gradle / Ivy
package com.jpattern.orm.generator;
import java.sql.ResultSet;
/**
* @author Francesco Cina
*
* 22/mag/2011
*
* The bytecode of classes that implement this interface is generated at runtime using cojen
*
*/
public interface IOrmPersistor {
T mapRow(String rowNamePrefix, ResultSet rs, int rowNum);
Object[] allValues(T entity);
Object[] allNotGeneratedValues(T entity);
Object[] primaryKeyValues(T entity);
Object[] notPrimaryKeyValues(T entity);
Object[] primaryKeyAndVersionValues(T entity);
void increaseVersion(T entity, boolean firstVersionNumber);
/**
* Return whether in the save query there are automatically
* generated key (for example using a call to a Sequence in the
* insert query)
* @return
*/
boolean useKeyGenerators(T entity);
void updateGeneratedValues(ResultSet rs, T entity);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy