Package org.jpox.store.mapped

Examples of org.jpox.store.mapped.MappedStoreData


        Iterator it = pm.getExtent(org.jpox.store.rdbms.SchemaTable2.class).iterator();
        while (it.hasNext())
        {
            org.jpox.store.rdbms.SchemaTable2 st = (org.jpox.store.rdbms.SchemaTable2) it.next();
            StoreData data = new MappedStoreData(st.getClassName(), st.getTableName(),
                st.getOwner().equals("1") ? true : false,
                st.getType().equalsIgnoreCase("FCO") ? MappedStoreData.FCO_TYPE : MappedStoreData.SCO_TYPE,
                st.getInterfaceName());

            schema_data.add(data);       
View Full Code Here


        assertIsOpen();
        if( hasClass(data.getName()))
        {
            return;
        }
        MappedStoreData tableData = (MappedStoreData)data; // We only support TableStoreData
        org.jpox.store.rdbms.SchemaTable2 st = new org.jpox.store.rdbms.SchemaTable2();
        st.setClassName(tableData.getName());
        st.setInterfaceName(tableData.getInterfaceName());
        st.setOwner(tableData.isTableOwner()? "1" : "0");
        st.setTableName(tableData.getTableName());
        st.setType(data.isFCO() ? "FCO" : "SCO");
        // TODO Sort out version
        st.setVersion("JPOX");
       
        pm.makePersistent(st);
View Full Code Here

     * Method to add a class to the supported list.
     * @param data Data for the class to add.
     **/
    public void addClass(StoreData data)
    {
        MappedStoreData tableData = (MappedStoreData)data; // We only support MappedStoreData
        assertIsOpen();
        try
        {
            schemaTable.addClass(tableData, mconn);
        }
View Full Code Here

                ResultSet rs = sqlControl.executeStatementQuery(conn, fetchAllStmt, ps);
                try
                {
                    while (rs.next())
                    {
                        StoreData data = new MappedStoreData(rs.getString(1), rs.getString(2), rs.getString(4).equals("1") ? true : false,
                                rs.getString(3).equals("FCO") ? StoreData.FCO_TYPE : StoreData.SCO_TYPE, rs.getString(6));
                        schema_data.add(data);
                    }
                }
                finally
View Full Code Here

TOP

Related Classes of org.jpox.store.mapped.MappedStoreData

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.