Examples of quotedFullyQualifiedName()


Examples of org.apache.cayenne.dba.QuotingStrategy.quotedFullyQualifiedName()

                        buf.append(context.quotedSourceName(join));
                        refBuf.append(context.quotedTargetName(join));
                    }

                    buf.append(") REFERENCES ");
                    buf.append(context.quotedFullyQualifiedName((DbEntity) rel.getTargetEntity()));
                    buf.append(" (");
                    buf.append(refBuf.toString());
                    buf.append(')');

                    // also make sure we delete dependent FKs
View Full Code Here

Examples of org.apache.cayenne.dba.QuotingStrategy.quotedFullyQualifiedName()

            }
        }

        buf
                .append(" FROM ")
                .append(strategy.quotedFullyQualifiedName(updateQuery.getDbEntity()))
                .append(" WHERE ");

        it = qualifierAttributes.iterator();
        while (it.hasNext()) {
            DbAttribute attribute = (DbAttribute) it.next();
View Full Code Here

Examples of org.apache.cayenne.dba.QuotingStrategy.quotedFullyQualifiedName()

        Entity sourceEntity = incomingDB.getSourceEntity();
        String tableName;

        if (sourceEntity instanceof DbEntity) {
            tableName = quoter.quotedFullyQualifiedName((DbEntity) sourceEntity);
        }
        else {
            tableName = sourceEntity.getName();
        }
View Full Code Here

Examples of org.apache.cayenne.dba.QuotingStrategy.quotedFullyQualifiedName()

                context.append(" ");

                for (int i = 1; i < joinRelationships.size(); i++) {
                    DbRelationship dbRelationship = joinRelationships.get(i);

                    String subquerySourceTableName = quoter.quotedFullyQualifiedName((DbEntity) dbRelationship
                            .getSourceEntity());
                    String subquerySourceAlias = context.getTableAlias(
                            subquerySourceTableName,
                            subquerySourceTableName);
View Full Code Here

Examples of org.apache.cayenne.dba.QuotingStrategy.quotedFullyQualifiedName()

                            .getSourceEntity());
                    String subquerySourceAlias = context.getTableAlias(
                            subquerySourceTableName,
                            subquerySourceTableName);

                    String subqueryTargetTableName = quoter.quotedFullyQualifiedName(
                            (DbEntity) dbRelationship.getTargetEntity());
                   
                    String subqueryTargetAlias = "";
                    if(i==joinRelationships.size()-1){
                        // it's the last table alias
View Full Code Here

Examples of org.apache.cayenne.dba.QuotingStrategy.quotedFullyQualifiedName()

                    while (dbPathIterator.hasNext()) {
                        CayenneMapEntry next = dbPathIterator.next();
                        if (next instanceof DbRelationship) {
                            DbRelationship rel = (DbRelationship) next;
                            context.append(" LEFT OUTER JOIN ");
                            String targetEntityName = quoter.quotedFullyQualifiedName((DbEntity) rel.getTargetEntity());
                            String subqueryTargetAlias = context.getTableAlias(id.getEntityId(), targetEntityName);
                            context.append(targetEntityName).append(' ').append(subqueryTargetAlias);
                            generateJoiningExpression(
                                    rel,
                                    context.getTableAlias(id.getEntityId(),
View Full Code Here

Examples of org.apache.cayenne.dba.QuotingStrategy.quotedFullyQualifiedName()

                            String subqueryTargetAlias = context.getTableAlias(id.getEntityId(), targetEntityName);
                            context.append(targetEntityName).append(' ').append(subqueryTargetAlias);
                            generateJoiningExpression(
                                    rel,
                                    context.getTableAlias(id.getEntityId(),
                                            quoter.quotedFullyQualifiedName((DbEntity) rel.getSourceEntity())),
                                    subqueryTargetAlias);
                        }

                    }
                }
View Full Code Here

Examples of org.apache.cayenne.dba.QuotingStrategy.quotedFullyQualifiedName()

        }

        QuotingStrategy strategy = getAdapter().getQuotingStrategy();

        StringBuffer query = new StringBuffer("UPDATE ");
        query.append(strategy.quotedFullyQualifiedName(batch.getDbEntity()));
        query.append(" SET ").append(strategy.quotedIdentifier(batch.getDbEntity(), deletedFieldName)).append(" = ?");

        applyQualifier(query, batch);

        return query.toString();
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.