Rev 203 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
package pt.estgp.estgweb.domain.dao.impl;
import static org.
hibernate.
criterion.
Restrictions.
eq;
import pt.estgp.estgweb.domain.RepositoryFile;
/**
* @author Jorge Machado
* @date 28/Fev/2008
* @time 2:51:06
* @see pt.estgp.estgweb.domain.dao.impl
*/
public class RepositoryFileDaoImpl
extends RepositoryFileDao
{
private RepositoryFileDaoImpl
()
{
}
public static RepositoryFileDaoImpl getInstance
()
{
if (myInstance ==
null)
myInstance =
new RepositoryFileDaoImpl
();
return (RepositoryFileDaoImpl
) myInstance
;
}
public RepositoryFile loadByIdentifier
(1.5.0/docs/api/java/lang/String.html">String identifier
)
{
return (RepositoryFile
) createCriteria
().
add(eq
("identifier",identifier
)).
uniqueResult();
}
// public boolean hasTeacherFile(String identifier)
// {
//// getCurrentSession().createQuery("select c from c in class " + Course + " where ")
// }
}