private static boolean tryInsert(Clase input){
        boolean result = false;
        Connection tdb = null; 
        try {
            tdb = DatabaseInstance.getTransactedInstance();
            Statement query = tdb.createStatement();
            String queryString = input.print();
            result= query.executeUpdate(queryString) != 0;
        } catch (SQLException ex) {
            Logger.getLogger(ClasesController.class.getName()).log(Level.SEVERE, null, ex);
            
        }finally{
            try {
                if(tdb!=null)tdb.rollback();
            } catch (SQLException ex) {
                Logger.getLogger(ClasesController.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        
        return result;
    }