Package org.apache.cayenne.access.types

Examples of org.apache.cayenne.access.types.ExtendedTypeMap


    protected void cleanup(DataContext context) {
        DataDomain domain = getDomain();
        domain.removeDataMap(testMap.getName());
        DataNode node = domain.lookupDataNode(domain.getDataMap("people"));

        ExtendedTypeMap map = node.getAdapter().getExtendedTypes();
        map.unregisterType(CAY_207String1.class.getName());
        map.unregisterType(CAY_207String2.class.getName());
    }
View Full Code Here


        list.addAll(keys);
        return list;
    }

    public static String[] getRegisteredTypeNames() {
        String[] explicitList = new ExtendedTypeMap().getRegisteredTypeNames();
        Set<String> nonPrimitives = new HashSet<String>(Arrays.asList(explicitList));

        // add types that are not mapped explicitly, but nevertheless supported by Cayenne
        nonPrimitives.add(Calendar.class.getName());
        nonPrimitives.add(BigInteger.class.getName());
View Full Code Here

        list.addAll(keys);
        return list;
    }

    public static String[] getRegisteredTypeNames() {
        String[] explicitList = new ExtendedTypeMap().getRegisteredTypeNames();
        Set<String> nonPrimitives = new HashSet<String>(Arrays.asList(explicitList));

        // add types that are not mapped explicitly, but nevertheless supported by Cayenne
        nonPrimitives.add(Calendar.class.getName());
        nonPrimitives.add(BigInteger.class.getName());
View Full Code Here

        this.setSupportsUniqueConstraints(true);
        this.setSupportsFkConstraints(true);

        this.pkGenerator = this.createPkGenerator();
        this.typesHandler = TypesHandler.getHandler(findAdapterResource("/types.xml"));
        this.extendedTypes = new ExtendedTypeMap();
        this.configureExtendedTypes(extendedTypes);
    }
View Full Code Here

            OperationObserver callback,
            long startTime) throws Exception {

        boolean iteratedResult = callback.isIteratedResult();

        ExtendedTypeMap types = adapter.getExtendedTypes();
        RowDescriptor descriptor = (compiled.getResultColumns().length > 0)
                ? new RowDescriptor(compiled.getResultColumns(), types)
                : new RowDescriptor(resultSet, types);
               
           if (query.getColumnNamesCapitalization() != null) {
View Full Code Here

        this.resourceLocator = new ClassLoaderResourceLocator();

        this.pkGenerator = createPkGenerator();
        this.ejbqlTranslatorFactory = createEJBQLTranslatorFactory();
        this.typesHandler = TypesHandler.getHandler(findResource("/types.xml"));
        this.extendedTypes = new ExtendedTypeMap();
        initExtendedTypes(defaultExtendedTypes, userExtendedTypes, extendedTypeFactories);
        initIdentifiersQuotes();
    }
View Full Code Here

            OperationObserver callback,
            long startTime) throws Exception {

        boolean iteratedResult = callback.isIteratedResult();

        ExtendedTypeMap types = getAdapter().getExtendedTypes();
        RowDescriptorBuilder builder = configureRowDescriptorBuilder(compiled, resultSet);

        JDBCResultIterator result = new JDBCResultIterator(
                connection,
                statement,
View Full Code Here

        rs.addColumn("a", new Object[] {
                "1", "2", "3"
        });
        RowDescriptor descriptor = new RowDescriptorBuilder()
                .setResultSet(rs)
                .getDescriptor(new ExtendedTypeMap());

        JDBCResultIterator it = new JDBCResultIterator(c, s, rs, descriptor, new MockQueryMetadata());

        assertFalse(rs.isClosed());
        assertFalse(s.isClosed());
View Full Code Here

                "1", "2", "3"
        });

        RowDescriptor descriptor = new RowDescriptorBuilder()
                .setResultSet(rs)
                .getDescriptor(new ExtendedTypeMap());
        return new JDBCResultIterator(c, s, rs, descriptor, new MockQueryMetadata());
    }
View Full Code Here

TOP

Related Classes of org.apache.cayenne.access.types.ExtendedTypeMap

Copyright © 2018 www.massapicom. 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.