public class KernelEvaluationDaoImpl extends java.lang.Object implements KernelEvaluationDao
Modifier and Type | Field and Description |
---|---|
private static Log |
log |
private SessionFactory |
sessionFactory |
private PlatformTransactionManager |
transactionManager |
private TransactionTemplate |
txTemplate |
Constructor and Description |
---|
KernelEvaluationDaoImpl() |
Modifier and Type | Method and Description |
---|---|
java.util.List<KernelEvaluationInstance> |
getAllKernelEvaluationsForInstance(KernelEvaluation kernelEvaluation,
long instanceId) |
java.lang.Double |
getKernel(KernelEvaluation kernelEvaluation,
long instanceId1,
long instanceId2) |
KernelEvaluation |
getKernelEval(java.lang.String name,
java.lang.String experiment,
java.lang.String label,
int foldId,
double param1,
java.lang.String param2) |
java.lang.Double |
getNorm(KernelEvaluation kernelEvaluation,
long instanceId) |
SessionFactory |
getSessionFactory() |
PlatformTransactionManager |
getTransactionManager() |
void |
setSessionFactory(SessionFactory sessionFactory) |
void |
setTransactionManager(PlatformTransactionManager transactionManager) |
void |
storeKernel(KernelEvaluation kernelEvaluation,
long instanceId1,
long instanceId2,
double kernel) |
KernelEvaluation |
storeKernelEval(KernelEvaluation kernelEvaluation)
store the kernel evaluation if it doesn't exist, else return the existing
one
|
void |
storeNorm(KernelEvaluation kernelEvaluation,
long instanceId,
double norm) |
private SessionFactory sessionFactory
private static final Log log
private PlatformTransactionManager transactionManager
private TransactionTemplate txTemplate
public PlatformTransactionManager getTransactionManager()
public void setTransactionManager(PlatformTransactionManager transactionManager)
public SessionFactory getSessionFactory()
public void setSessionFactory(SessionFactory sessionFactory)
public void storeNorm(KernelEvaluation kernelEvaluation, long instanceId, double norm)
storeNorm
in interface KernelEvaluationDao
public java.lang.Double getNorm(KernelEvaluation kernelEvaluation, long instanceId)
getNorm
in interface KernelEvaluationDao
public void storeKernel(KernelEvaluation kernelEvaluation, long instanceId1, long instanceId2, double kernel)
storeKernel
in interface KernelEvaluationDao
public java.lang.Double getKernel(KernelEvaluation kernelEvaluation, long instanceId1, long instanceId2)
getKernel
in interface KernelEvaluationDao
public java.util.List<KernelEvaluationInstance> getAllKernelEvaluationsForInstance(KernelEvaluation kernelEvaluation, long instanceId)
getAllKernelEvaluationsForInstance
in interface KernelEvaluationDao
public KernelEvaluation storeKernelEval(KernelEvaluation kernelEvaluation)
KernelEvaluationDao
storeKernelEval
in interface KernelEvaluationDao
public KernelEvaluation getKernelEval(java.lang.String name, java.lang.String experiment, java.lang.String label, int foldId, double param1, java.lang.String param2)
getKernelEval
in interface KernelEvaluationDao