if (stringValue.length() > config.getDateFormat().length())
public static String getDateFormat() { final ODatabaseDocumentInternal db = ODatabaseRecordThreadLocal.instance().getIfDefined(); if (db != null && !db.isClosed()) return db.getStorage().getConfiguration().getDateFormat(); else return DEF_DATE_FORMAT; }
if (((String) iValue).length() > config.getDateFormat().length()) { } catch (ParseException pe) { final String dateFormat = ((String) iValue).length() > config.getDateFormat().length() ? config.getDateTimeFormat() : config.getDateFormat(); throw OException.wrapException( new OQueryParsingException("Error on conversion of date '" + iValue + "' using the format: " + dateFormat), pe);
resultSet.add(new ODocument().field("NAME", "Date-Format").field("VALUE", dbCfg.getDateFormat())); resultSet.add(new ODocument().field("NAME", "Datetime-Format").field("VALUE", dbCfg.getDateTimeFormat())); resultSet.add(new ODocument().field("NAME", "Timezone").field("VALUE", dbCfg.getTimeZone().getID()));
private Object toResult(OStorageConfiguration configuration) { OResultInternal result = new OResultInternal(); result.setProperty("charset", configuration.getCharset()); result.setProperty("clusterSelection", configuration.getClusterSelection()); result.setProperty("conflictStrategy", configuration.getConflictStrategy()); result.setProperty("dateFormat", configuration.getDateFormat()); result.setProperty("dateTimeFormat", configuration.getDateTimeFormat()); result.setProperty("localeCountry", configuration.getLocaleCountry()); result.setProperty("localeLanguage", configuration.getLocaleLanguage()); result.setProperty("recordSerializer", configuration.getRecordSerializer()); result.setProperty("timezone", String.valueOf(configuration.getTimeZone())); result.setProperty("properties", toResult(configuration.getProperties())); return result; }
return getMetadata().getImmutableSchemaSnapshot().existsClass("V") ? "graph" : "document"; case DATEFORMAT: return storage.getConfiguration().getDateFormat();