/** * Initialize any platform-specific operators */ protected void initializePlatformOperators() { super.initializePlatformOperators(); addOperator(ExpressionOperator.simpleFunction(ExpressionOperator.ToUpperCase, "UCASE")); addOperator(ExpressionOperator.simpleFunction(ExpressionOperator.ToLowerCase, "LCASE")); }
/** * Access do not support millisecond well, truncate the millisecond from the timestamp */ public java.sql.Timestamp getTimestampFromServer(AbstractSession session, String sessionName) { if (getTimestampQuery() == null) { java.sql.Timestamp currentTime = new java.sql.Timestamp(System.currentTimeMillis()); currentTime.setNanos(0); return currentTime; } else { getTimestampQuery().setSessionName(sessionName); return (java.sql.Timestamp)session.executeQuery(getTimestampQuery()); } }
/** * PUBLIC: * Set the database platform to be Access. */ public void useAccess() { if (getPlatform().isAccess()) { return; } DatabasePlatform newPlatform = new AccessPlatform(); getPlatform().copyInto(newPlatform); setPlatform(newPlatform); }
/** * PUBLIC: * Set the database platform to be Access. */ public void useAccess() { if (getPlatform().isAccess()) { return; } DatabasePlatform newPlatform = new AccessPlatform(); getPlatform().copyInto(newPlatform); setPlatform(newPlatform); }
/** * Initialize any platform-specific operators */ protected void initializePlatformOperators() { super.initializePlatformOperators(); addOperator(ExpressionOperator.simpleFunction(ExpressionOperator.ToUpperCase, "UCASE")); addOperator(ExpressionOperator.simpleFunction(ExpressionOperator.ToLowerCase, "LCASE")); }
/** * PUBLIC: * Set the database platform to be Access. */ public void useAccess() { if (getPlatform().isAccess()) { return; } DatabasePlatform newPlatform = new AccessPlatform(); getPlatform().copyInto(newPlatform); setPlatform(newPlatform); }
/** * Access do not support millisecond well, truncate the millisecond from the timestamp */ public java.sql.Timestamp getTimestampFromServer(AbstractSession session, String sessionName) { if (getTimestampQuery() == null) { java.sql.Timestamp currentTime = new java.sql.Timestamp(System.currentTimeMillis()); currentTime.setNanos(0); return currentTime; } else { getTimestampQuery().setSessionName(sessionName); return (java.sql.Timestamp)session.executeQuery(getTimestampQuery()); } }
/** * Initialize any platform-specific operators */ protected void initializePlatformOperators() { super.initializePlatformOperators(); addOperator(ExpressionOperator.simpleFunction(ExpressionOperator.ToUpperCase, "UCASE")); addOperator(ExpressionOperator.simpleFunction(ExpressionOperator.ToLowerCase, "LCASE")); }
/** * Access do not support millisecond well, truncate the millisecond from the timestamp */ public java.sql.Timestamp getTimestampFromServer(AbstractSession session, String sessionName) { if (getTimestampQuery() == null) { java.sql.Timestamp currentTime = new java.sql.Timestamp(System.currentTimeMillis()); currentTime.setNanos(0); return currentTime; } else { getTimestampQuery().setSessionName(sessionName); return (java.sql.Timestamp)session.executeQuery(getTimestampQuery()); } }