Examples of RowDescriptorBuilder


Examples of org.apache.cayenne.access.jdbc.RowDescriptorBuilder

    @Override
    protected RowDescriptorBuilder configureRowDescriptorBuilder(
            SQLStatement compiled,
            ResultSet resultSet) throws SQLException {

        RowDescriptorBuilder builder = super.configureRowDescriptorBuilder(
                compiled,
                resultSet);

        // override numeric Java types based on JDBC defaults for DbAttributes, as Oracle
        // ResultSetMetadata is not very precise about NUMERIC distinctions...
        // (BigDecimal vs Long vs. Integer)
        if (dbEntity != null) {
            for (DbAttribute attribute : dbEntity.getAttributes()) {

                if (!builder.isOverriden(attribute.getName())
                        && TypesMapping.isNumeric(attribute.getType())) {

                    builder.overrideColumnType(attribute.getName(), TypesMapping
                            .getJavaBySqlType(attribute.getType()));
                }
            }
        }
View Full Code Here

Examples of org.apache.cayenne.access.jdbc.RowDescriptorBuilder

    @Override
    protected RowDescriptorBuilder configureRowDescriptorBuilder(
            SQLStatement compiled,
            ResultSet resultSet) throws SQLException {

        RowDescriptorBuilder builder = super.configureRowDescriptorBuilder(
                compiled,
                resultSet);

        return builder;
    }
View Full Code Here

Examples of org.apache.cayenne.access.jdbc.RowDescriptorBuilder

    @Override
    protected RowDescriptorBuilder configureRowDescriptorBuilder(
            SQLStatement compiled,
            ResultSet resultSet) throws SQLException {

        RowDescriptorBuilder builder = super.configureRowDescriptorBuilder(
                compiled,
                resultSet);

        return builder;
    }
View Full Code Here

Examples of org.apache.cayenne.access.jdbc.RowDescriptorBuilder

    @Override
    protected RowDescriptorBuilder configureRowDescriptorBuilder(
            SQLStatement compiled,
            ResultSet resultSet) throws SQLException {

        RowDescriptorBuilder builder = super.configureRowDescriptorBuilder(
                compiled,
                resultSet);

        // override numeric Java types based on JDBC defaults for DbAttributes, as Oracle
        // ResultSetMetadata is not very precise about NUMERIC distinctions...
        // (BigDecimal vs Long vs. Integer)
        if (dbEntity != null) {
            for (DbAttribute attribute : dbEntity.getAttributes()) {

                if (!builder.isOverriden(attribute.getName())
                        && TypesMapping.isNumeric(attribute.getType())) {

                    builder.overrideColumnType(attribute.getName(), TypesMapping
                            .getJavaBySqlType(attribute.getType()));
                }
            }
        }
View Full Code Here

Examples of org.apache.cayenne.access.jdbc.RowDescriptorBuilder

    @Override
    protected RowDescriptorBuilder configureRowDescriptorBuilder(
            SQLStatement compiled,
            ResultSet resultSet) throws SQLException {

        RowDescriptorBuilder builder = super.configureRowDescriptorBuilder(
                compiled,
                resultSet);

        return builder;
    }
View Full Code Here

Examples of org.apache.cayenne.access.jdbc.RowDescriptorBuilder

    @Override
    protected RowDescriptorBuilder configureRowDescriptorBuilder(
            SQLStatement compiled,
            ResultSet resultSet) throws SQLException {

        RowDescriptorBuilder builder = super.configureRowDescriptorBuilder(
                compiled,
                resultSet);

        return builder;
    }
View Full Code Here

Examples of org.apache.cayenne.access.jdbc.RowDescriptorBuilder

    @Override
    protected RowDescriptorBuilder configureRowDescriptorBuilder(
            SQLStatement compiled,
            ResultSet resultSet) throws SQLException {

        RowDescriptorBuilder builder = super.configureRowDescriptorBuilder(
                compiled,
                resultSet);

        return builder;
    }
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.