Examples of quoteFullyQualifiedName()


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

                StringBuilder sqlBuffer = new StringBuilder();
                QuotingStrategy context = adapter.getQuotingStrategy(getEntity()
                        .getDataMap()
                        .isQuotingSQLIdentifiers());
                sqlBuffer.append("ALTER TABLE ");
                sqlBuffer.append(context.quoteFullyQualifiedName(getEntity()));
                sqlBuffer.append(" DROP ");
                sqlBuffer.append(context.quoteString(getColumn().getName()));

                return Collections.singletonList(sqlBuffer.toString());
            }
View Full Code Here

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

        StringBuffer sqlBuffer = new StringBuffer();
        QuotingStrategy context = adapter.getQuotingStrategy(entity
                .getDataMap()
                .isQuotingSQLIdentifiers());
        sqlBuffer.append("ALTER TABLE ");
        sqlBuffer.append(context.quoteFullyQualifiedName(entity));
        sqlBuffer.append(" MODIFY ");
        adapter.createTableAppendColumn(sqlBuffer, column);

        return sqlBuffer;
    }
View Full Code Here

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

     */
    protected String getTableName(DbEntity entity) {
        QuotingStrategy context = getQuotingStrategy(entity
                .getDataMap()
                .isQuotingSQLIdentifiers());
        return context.quoteFullyQualifiedName(entity);
    }

    /**
     * Generate fully-qualified name for 1.8 and on. Subclass generates unqualified name.
     *
 
View Full Code Here

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

            status = false;
        }
        QuotingStrategy context = getQuotingStrategy(status);
        StringBuilder buf = new StringBuilder();
        buf.append("CREATE TABLE ");
        buf.append(context.quoteFullyQualifiedName(ent));
        buf.append(" (");

        // columns
        Iterator<DbAttribute> it = ent.getAttributes().iterator();
        boolean first = true;
View Full Code Here

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

        } else {
            status = false;
        }
        QuotingStrategy context = getQuotingStrategy(status);
        StringBuffer buf = new StringBuffer("DROP TABLE ");
        buf.append(context.quoteFullyQualifiedName(table));           

        buf.append(" CASCADE");
        return Collections.singleton(buf.toString());
    }
View Full Code Here

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

                .getDataMap()
                .isQuotingSQLIdentifiers());
        StringBuilder buf = new StringBuilder();

        buf.append("CREATE TABLE ");
        buf.append(context.quoteFullyQualifiedName(ent));
        buf.append(" (");

        // columns
        Iterator<DbAttribute> it = ent.getAttributes().iterator();
        boolean first = true;
View Full Code Here

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

       
        List<DbAttribute> qualifierAttributes = updateBatch.getQualifierAttributes();
        List<DbAttribute> updatedDbAttributes = updateBatch.getUpdatedAttributes();

        StringBuffer query = new StringBuffer("UPDATE ");
        query.append(strategy.quoteFullyQualifiedName(batch.getDbEntity()));
        query.append(" SET ");

        int len = updatedDbAttributes.size();
        for (int i = 0; i < len; i++) {
            if (i > 0) {
View Full Code Here

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

            && batch.getDbEntity().getDataMap().isQuotingSQLIdentifiers();
       
        QuotingStrategy strategy =  getAdapter().getQuotingStrategy(status);
      
        StringBuffer query = new StringBuffer("DELETE FROM ");
        query.append(strategy.quoteFullyQualifiedName(batch.getDbEntity()));

        applyQualifier(query, batch);

        return query.toString();
    }
View Full Code Here

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

            status = false;
        }
        QuotingStrategy strategy =  getAdapter().getQuotingStrategy(status);

        StringBuilder query = new StringBuilder("INSERT INTO ");
        query.append(strategy.quoteFullyQualifiedName(batch.getDbEntity()));
        query.append(" (");

        int columnCount = 0;
        for (DbAttribute attribute : dbAttributes) {
View Full Code Here

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

            && batch.getDbEntity().getDataMap().isQuotingSQLIdentifiers();
       
        QuotingStrategy strategy = getAdapter().getQuotingStrategy(status);
      
        StringBuffer query = new StringBuffer("UPDATE ");
        query.append(strategy.quoteFullyQualifiedName(batch.getDbEntity()));
        query.append(" SET ").append(strategy.quoteString(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.