package org.beanmaker.util;

import java.io.File;

public interface DbBeanFile extends DbBeanInterface {

    String getCode();
    String getOrigFilename();
    String getStoredFilename();
    String getAltDir();

    void setCode(final String code);
    void setOrigFilename(final String origFilename);
    void setStoredFilename(final String storedFilename);
    void setAltDir(final String altDir);

    boolean isStoredFilenameEmpty();
    boolean isAltDirEmpty();

    File getFile();
    String getInternalFilename();
    String getFileUrl();

    void makeSureFileExists();
}

@@ -42,16 +42,65 @@
 io.File;
+%0Aimport java.sql.Date;%0Aimport java.sql.Timestamp;
 %0A%0Apublic
@@ -529,24 +529,56 @@
  getFile();%0A
+    File getSafeNameFileCopy();%0A
     String g
@@ -621,24 +621,99 @@
 FileUrl();%0A%0A
+    Date getModificationDate();%0A    Timestamp getModificationTimestamp();%0A%0A
     void mak

Add functions to create a safely name copy of a DbBeanFile and get modification time information from same