util.LoadFile: now supports util.Filename parameters
[metux-java.git] / dbobjects / Text.java
blobdda9f0e4b7ec9b81f347cd99be5ffca499a72c8c
2 package org.de.metux.dbObjects;
4 import org.de.metux.util.*;
6 /* this interface represents datatypes for SQL-based databases */
8 public class Text extends Data
10 String value;
11 public Text ( String s )
13 value = s;
16 public String toSQL ()
18 return toSQL(value);
21 public static String toSQL(String str)
23 return "'" +
24 StrReplace.replace("'", "\\'",
25 StrReplace.replace("\\", "\\\\", str)) + "'";