Package org.apache.openjpa.lib.log

Examples of org.apache.openjpa.lib.log.Log.trace()


            }
            Log log = store.getConfiguration().
                getLog(JDBCConfiguration.LOG_JDBC);
            if (log.isTraceEnabled()){
                if (found)
                    log.trace(_loc.get("cache-hit", field, this.getClass()));                       
                else
                    log.trace(_loc.get("cache-missed", field, this.getClass()));
            }

            parmList = new ArrayList();
View Full Code Here


                getLog(JDBCConfiguration.LOG_JDBC);
            if (log.isTraceEnabled()){
                if (found)
                    log.trace(_loc.get("cache-hit", field, this.getClass()));                       
                else
                    log.trace(_loc.get("cache-missed", field, this.getClass()));
            }

            parmList = new ArrayList();
            ClassMapping mapping = field.getDefiningMapping();
            Object oid = sm.getObjectId();
View Full Code Here

            return false;

        String name = attrs.getValue("name");
        Log log = getLog();
        if (log.isTraceEnabled())
            log.trace(_loc.get("parse-native-query", name));

        QueryMetaData meta = getRepository().getCachedQueryMetaData(null, name);
        if (meta != null && log.isWarnEnabled())
            log.warn(_loc.get("override-query", name, currentLocation()));
View Full Code Here

                stmnt.setQueryTimeout(fetch.getLockTimeout() / 1000);
            }
            catch(SQLException e) {
                if(_dict.ignoreSQLExceptionOnSetQueryTimeout) {
                    if (log.isTraceEnabled()) {
                        log.trace(_loc.get("error-setting-query-timeout",
                            new Integer(timeout), e.getMessage()), e);
                    }  
                }
                else {
                    throw e;
View Full Code Here

     */
    protected void resolveMeta(boolean runtime) {
        boolean embed = _owner != null && _owner.getDeclaredType() == _type;
        Log log = _repos.getLog();
        if (log.isTraceEnabled())
            log.trace(_loc.get((embed) ? "resolve-embed-meta" : "resolve-meta",
                this + "@" + System.identityHashCode(this)));

        if (runtime && !_type.isInterface() &&
            !ImplHelper.isManagedType(getRepository().getConfiguration(),_type))
            throw new MetaDataException(_loc.get("not-enhanced", _type));
View Full Code Here

     * Resolve mapping data. Logs resolve message and resolves super by default.
     */
    protected void resolveMapping(boolean runtime) {
        Log log = _repos.getLog();
        if (log.isTraceEnabled())
            log.trace(_loc.get("resolve-mapping", this + "@"
                + System.identityHashCode(this)));

        // make sure superclass is resolved first
        ClassMetaData sup = getPCSuperclassMetaData();
        if (sup != null)
View Full Code Here

     * Initialize mapping. Logs init message by default.
     */
    protected void initializeMapping() {
        Log log = _repos.getLog();
        if (log.isTraceEnabled())
            log.trace(_loc.get("init-mapping", this + "@"
                + System.identityHashCode(this)));
    }

    /**
     * Validate data cache settings.
View Full Code Here

            sel = (Select) obj;

        Log log = _conf.getLog(JDBCConfiguration.LOG_JDBC);
        if (log.isTraceEnabled()) {
            if (!found)
                log.trace(_loc.get("cache-missed", mapping, this.getClass()));
            else
                log.trace(_loc.get("cache-hit", mapping, this.getClass()));
        }

        if (sel == null)
View Full Code Here

        Log log = _conf.getLog(JDBCConfiguration.LOG_JDBC);
        if (log.isTraceEnabled()) {
            if (!found)
                log.trace(_loc.get("cache-missed", mapping, this.getClass()));
            else
                log.trace(_loc.get("cache-hit", mapping, this.getClass()));
        }

        if (sel == null)
            return null;
       
View Full Code Here

                    buf.append(entry.getKey()).append(": ").
                        append(entry.getValue());
                    if (itr.hasNext())
                        buf.append(lineSep);
                }
                log.trace(_loc.get("factory-properties", buf.toString()));
            }

            // setup transient state
            setup();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.