public QuotedID createFromString(String s) { if (s == null) return new QuotedID(s, QuotedID.NO_QUOTATION); if (s.startsWith("\"") && s.endsWith("\"")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); if (s.startsWith("`") && s.endsWith("`")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); if (s.startsWith("[") && s.endsWith("]")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); if (s.startsWith("'") && s.endsWith("'")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); return new QuotedID(s.toLowerCase(), QuotedID.NO_QUOTATION); }
public QuotedID createFromString(String s) { if (s == null) return new QuotedID(s, QuotedID.NO_QUOTATION); if (s.startsWith("\"") && s.endsWith("\"")) return new QuotedID(s.substring(1, s.length() - 1), quotationString, caseSensitiveTableNames); if (s.startsWith("`") && s.endsWith("`")) return new QuotedID(s.substring(1, s.length() - 1), quotationString, caseSensitiveTableNames); if (s.startsWith("[") && s.endsWith("]")) return new QuotedID(s.substring(1, s.length() - 1), quotationString, caseSensitiveTableNames); if (s.startsWith("'") && s.endsWith("'")) return new QuotedID(s.substring(1, s.length() - 1), quotationString, caseSensitiveTableNames); return new QuotedID(s, QuotedID.NO_QUOTATION, caseSensitiveTableNames); }
@Override public QuotedID createAttributeID(String s) { if (s == null) return new QuotedID(s, QuotedID.NO_QUOTATION); if (s.startsWith("\"") && s.endsWith("\"")) return new QuotedID(s.substring(1, s.length() - 1), quotationString, false); if (s.startsWith("`") && s.endsWith("`")) return new QuotedID(s.substring(1, s.length() - 1), quotationString, false); if (s.startsWith("[") && s.endsWith("]")) return new QuotedID(s.substring(1, s.length() - 1), quotationString, false); if (s.startsWith("'") && s.endsWith("'")) return new QuotedID(s.substring(1, s.length() - 1), quotationString, false); return new QuotedID(s, QuotedID.NO_QUOTATION, false); }
public QuotedID createFromString(String s) { if (s == null) return new QuotedID(s, QuotedID.NO_QUOTATION); if (s.startsWith("\"") && s.endsWith("\"")) return new QuotedID(s.substring(1, s.length() - 1), quotationString, caseSensitiveTableNames); if (s.startsWith("`") && s.endsWith("`")) return new QuotedID(s.substring(1, s.length() - 1), quotationString, caseSensitiveTableNames); if (s.startsWith("[") && s.endsWith("]")) return new QuotedID(s.substring(1, s.length() - 1), quotationString, caseSensitiveTableNames); if (s.startsWith("'") && s.endsWith("'")) return new QuotedID(s.substring(1, s.length() - 1), quotationString, caseSensitiveTableNames); return new QuotedID(s, QuotedID.NO_QUOTATION, caseSensitiveTableNames); }
private QuotedID createFromString(String s) { if (s == null) return new QuotedID(s, QuotedID.NO_QUOTATION); if (s.startsWith("\"") && s.endsWith("\"")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); if (s.startsWith("`") && s.endsWith("`")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); if (s.startsWith("[") && s.endsWith("]")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); if (s.startsWith("'") && s.endsWith("'")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); return new QuotedID(s, QuotedID.NO_QUOTATION); }
public QuotedID createFromString(String s) { if (s == null) return new QuotedID(s, QuotedID.NO_QUOTATION); if (s.startsWith("\"") && s.endsWith("\"")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); if (s.startsWith("`") && s.endsWith("`")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); if (s.startsWith("[") && s.endsWith("]")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); if (s.startsWith("'") && s.endsWith("'")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); return new QuotedID(s.toLowerCase(), QuotedID.NO_QUOTATION); }
private QuotedID createFromString(String s) { if (s == null) return new QuotedID(s, QuotedID.NO_QUOTATION); if (s.startsWith("\"") && s.endsWith("\"")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); if (s.startsWith("`") && s.endsWith("`")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); if (s.startsWith("[") && s.endsWith("]")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); if (s.startsWith("'") && s.endsWith("'")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); return new QuotedID(s.toUpperCase(), QuotedID.NO_QUOTATION); }
private QuotedID createFromString(String s) { if (s == null) return new QuotedID(s, QuotedID.NO_QUOTATION); if (s.startsWith("\"") && s.endsWith("\"")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); if (s.startsWith("`") && s.endsWith("`")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); if (s.startsWith("[") && s.endsWith("]")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); if (s.startsWith("'") && s.endsWith("'")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); return new QuotedID(s, QuotedID.NO_QUOTATION); }
private QuotedID createFromString(String s) { if (s == null) return new QuotedID(s, QuotedID.NO_QUOTATION); if (s.startsWith("\"") && s.endsWith("\"")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); if (s.startsWith("`") && s.endsWith("`")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); if (s.startsWith("[") && s.endsWith("]")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); if (s.startsWith("'") && s.endsWith("'")) return new QuotedID(s.substring(1, s.length() - 1), quotationString); return new QuotedID(s.toUpperCase(), QuotedID.NO_QUOTATION); }
@Override public QuotedID createAttributeID(String s) { if (s == null) return new QuotedID(s, QuotedID.NO_QUOTATION); if (s.startsWith("\"") && s.endsWith("\"")) return new QuotedID(s.substring(1, s.length() - 1), quotationString, false); if (s.startsWith("`") && s.endsWith("`")) return new QuotedID(s.substring(1, s.length() - 1), quotationString, false); if (s.startsWith("[") && s.endsWith("]")) return new QuotedID(s.substring(1, s.length() - 1), quotationString, false); if (s.startsWith("'") && s.endsWith("'")) return new QuotedID(s.substring(1, s.length() - 1), quotationString, false); return new QuotedID(s, QuotedID.NO_QUOTATION, false); }
/** * creates attribute ID from the database record (as though it is a quoted name) * * @param s * @return */ public static QuotedID createIdFromDatabaseRecord(QuotedIDFactory idfac, String s) { // ID is as though it is quoted -- DB stores names as is return new QuotedID(s, idfac.getIDQuotationString()); }
/** * creates attribute ID from the database record (as though it is a quoted name) * * @param s * @return */ public static QuotedID createIdFromDatabaseRecord(QuotedIDFactory idfac, String s) { // ID is as though it is quoted -- DB stores names as is return new QuotedID(s, idfac.getIDQuotationString()); }