public FileDAO() {
super("FILE", true);
}
public File create(Directory directory, String name, Long dataLength, Long modified) {
File file = new File(directory);
file.setDataLength(dataLength);
file.setModified(modified);
file.setName(name);
file = persist(file);
String lookupKey = DIRECTORY_NAME_LOOKUP + directory.getKey() + "," + name;
putLookupKey(lookupKey, file.getKey());
return file;
}